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 <<a href="mailto:transfire@gmail.com">
transfire@gmail.com</a>> 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 <
<a href="mailto:r...@robmela.com">r...@robmela.com</a>> wrote:<br>> Problem found. The correct fix for OgAdminController#save is not in<br>> OgAdminController. It's in Cgi#parse_params<br>><br>> Before a fix can be implemented there should be a decision as to whether
<br>> post and get params should be hash or dictionary.<br>><br>> Plain old POST request bodies are parsed using Cgi#parse_query_string (<br>> sic ) and that returns a Dictonary:<br>><br>> context.post_params
= parse_query_string(data)<br>><br>> Multipart form data is parsed using Cgi#parse_multipart, which returns a<br>> Hash<br>><br>> context.post_params = parse_multipart(context, boundary)<br>><br>> ... and which also conveniently contains the comment
<br>><br>> #--<br>> # TODO: RECODE THIS CRAP!<br>> #++<br>><br>> If a decision is reached that Dictionary is to be used for form data<br>> then the following initializations in Context#initialize would need to
<br>> be changed:<br>><br>> @post_params = {}<br>> @get_params = {}<br>><br>> So, having no shame, I'll ask a stupid question: Why Dictionary for<br>> request params? Also, does using Dictionary for some collection (
<br>> post/get params ) and Hash for others ( headers) risk being<br>> counterintuitive? I think it's reasonable to think of headers and<br>> params as collections, and for a programmer to expect them to expose the
<br>> 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>