@post_params/@get_params are Dictionary objects. And I needed a version of them as Hash.<br><br>Dictionary is not that compatible with Hash as someone would like.<br><br>-g.<br><br><div><span class="gmail_quote">On 10/1/07,
<b class="gmail_sendername">Robert Mela</b> <<a href="mailto:rob@robmela.com">rob@robmela.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Not sure what the intent is here in request.rb, module Raw, included in<br>class Context<br><br> 31 def params<br> 32 if method == :post<br> 33 @post_params.instance_variable_get("@hash")
<br> 34 else<br> 35 @get_params.instance_variable_get("@hash")<br> 36 end<br> 37 end<br><br><br>@post_params is itself a hash and an instance variable on Context, and<br>@post_params.instance_variable_get( "@hash" ) returns nil.
<br><br>Anything wrong with doing this instead?<br><br> 31 def params<br> 32 return method == :post ? @post_params : @get_params<br> 33 end<br><br>If that's acceptable I'll add it to the patches I'm preparing.
<br><br>thx.<br><br>_______________________________________________<br>Nitro-general mailing list<br><a href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/nitro-general">
http://rubyforge.org/mailman/listinfo/nitro-general</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://gmosx.me.gr">http://gmosx.me.gr</a><br><a href="http://phidz.com">http://phidz.com</a><br><a href="http://blog.gmosx.com">
http://blog.gmosx.com</a><br><a href="http://cull.gr">http://cull.gr</a><br><a href="http://www.joy.gr">http://www.joy.gr</a><br><a href="http://nitroproject.org">http://nitroproject.org</a>