Yeap,<br><br>I think it is needed for making this work:<br><br>def my_action(param1, param2)<br>end<br><br>I am not sure though...<br><br>-g.<br><br><br><div class="gmail_quote">On Nov 2, 2007 5:45 AM, Trans &lt;<a href="mailto:transfire@gmail.com">
transfire@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><br><br>On Nov 1, 10:52 pm, Robert Mela &lt;
<a href="mailto:r...@robmela.com">r...@robmela.com</a>&gt; wrote:<br>&gt; Problem found. &nbsp; The correct fix for OgAdminController#save is not in<br>&gt; OgAdminController. &nbsp;It&#39;s in Cgi#parse_params<br>&gt;<br>&gt; Before a fix can be implemented there should be a decision as to whether
<br>&gt; post and get params should be hash or dictionary.<br>&gt;<br>&gt; Plain old POST request bodies are parsed using Cgi#parse_query_string (<br>&gt; sic ) and that returns a Dictonary:<br>&gt;<br>&gt; &nbsp; context.post_params
 = parse_query_string(data)<br>&gt;<br>&gt; Multipart form data is parsed using Cgi#parse_multipart, which returns a<br>&gt; Hash<br>&gt;<br>&gt; &nbsp; &nbsp; context.post_params = parse_multipart(context, boundary)<br>&gt;<br>&gt; ... and which also conveniently contains the comment
<br>&gt;<br>&gt; &nbsp; #--<br>&gt; &nbsp; # TODO: RECODE THIS CRAP!<br>&gt; &nbsp; #++<br>&gt;<br>&gt; If a decision is reached that Dictionary is to be used for form data<br>&gt; then the following initializations in Context#initialize would need to
<br>&gt; be changed:<br>&gt;<br>&gt; &nbsp; &nbsp; @post_params = {}<br>&gt; &nbsp; &nbsp; @get_params = {}<br>&gt;<br>&gt; So, having no shame, I&#39;ll ask a stupid question: &nbsp;Why Dictionary for<br>&gt; request params? &nbsp; Also, does using Dictionary for some collection (
<br>&gt; post/get params ) and Hash for others ( headers) risk being<br>&gt; counterintuitive? &nbsp;I think it&#39;s reasonable to think of headers and<br>&gt; params as collections, and for a programmer to expect them to expose the
<br>&gt; same syntax.<br><br></div></div>Is there a reason for these to maintain order?<br><br>T.<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" target="_blank">http://rubyforge.org/mailman/listinfo/nitro-general</a><br></blockquote></div><br><br clear="all"><br>-- <br>
<a href="http://me.gr">http://me.gr</a><br><a href="http://joy.gr">http://joy.gr</a><br><a href="http://cull.gr">http://cull.gr</a><br><a href="http://nitroproject.org">http://nitroproject.org</a><br><a href="http://phidz.com">
http://phidz.com</a><br><a href="http://joyerz.com">http://joyerz.com</a>