@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> &lt;<a href="mailto:rob@robmela.com">rob@robmela.com</a>&gt; 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>&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp;&nbsp;def params<br>&nbsp;&nbsp; 32&nbsp;&nbsp;&nbsp;&nbsp; if method == :post<br>&nbsp;&nbsp; 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @post_params.instance_variable_get(&quot;@hash&quot;)
<br>&nbsp;&nbsp; 34&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp; 35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @get_params.instance_variable_get(&quot;@hash&quot;)<br>&nbsp;&nbsp; 36&nbsp;&nbsp;&nbsp;&nbsp; end<br>&nbsp;&nbsp; 37&nbsp;&nbsp;&nbsp;&nbsp;end<br><br><br>@post_params is itself a hash and an instance variable on Context,&nbsp;&nbsp;and<br>@post_params.instance_variable_get( &quot;@hash&quot; ) returns nil.
<br><br>Anything wrong with doing this instead?<br><br>&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp;&nbsp;def params<br>&nbsp;&nbsp; 32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return method == :post ? @post_params : @get_params<br>&nbsp;&nbsp; 33&nbsp;&nbsp;&nbsp;&nbsp;end<br><br>If that&#39;s acceptable I&#39;ll add it to the patches I&#39;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>