|| at Feb 23, 2012 at 8:35 pm
On 24.02.2012, at 0:20, M.SH wrote:
i'm a bigginer in rails, i used before a j2ee
there was a method
that return array of parameters values than have the same name
is there like that method in rails
What exactly do you mean 'the same name' ?
In Rails we have
request.path_parameters - the Hash of parameters generating a url actually, like :controller, :action, :host, :subdomain, :id or any other due to your routing settings. ex.: http://yoursite.com/articles/1
(:host => 'yoursite.com', :controller => 'articles', :action => 'show', :id => '1')
request.query_parameters - the Hash of additional parameters, it can be whatever. ex. :http://yoursite.com/articles&q="love" (:q => 'love')
combined accessor 'params' - the Hash of all parameters.
Since it Hash, there is no duplicate keys. Each key is uniq, but the values individual.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.