Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
how to do the equivalent of PHP's "$_GET" in Ruby?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="John Zorko, post: 4606427"] [Note: parts of this message were removed to make it a legal post.] Matthew, Indeed, this is a Rails question ... i'm new to this :-) My next question is -- what is the structure of the params hash i.e. how do I access it's name / value pairs without knowing in advance what the name will be? To use your example: GET /controller/action/1?question_id=forsure I want to do something like this: params.each { | param | do url << param[ :name ] << "=" << param[ :value ] << "&" end ... but I don't know how to refer to the name / value (I used :name and :value here to get the point across). Regards, John Falling You - exploring the beauty of voice and sound [URL]http://www.fallingyou.com[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
how to do the equivalent of PHP's "$_GET" in Ruby?
Top