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).
On Wed, May 14, 2008 at 3:39 PM, John Zorko <jmzorko@mac.com> wrote:
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).
Indeed, this is a Rails question ... i'm new to this
Rails is a program that someone wrote using the Ruby programming
language. The program does certain things. Someone may be an expert in
the Ruby programming language, yet not have any idea what Rails does or
how it works. How is that possible? Well, suppose you wrote a program
using Ruby and called it DogCatcher. Would it make sense to come to a
Ruby forum and ask if anyone can tell you how you can access certain
data in DogCatcher? Just because someone knows the Ruby programming
language does not mean they know what every program ever written in Ruby
does or how it works.