thank u for your reply, i mean by name like <form .. <input type="text" name="street"> <input type="text" name="street"> . . </from>
i don't know the no. of elements <input> On Feb 23, 10:34 pm, Valery Kvon <[email protected]> wrote: > On 24.02.2012, at 0:20, M.SH wrote: > > > Hi all, > > i'm a bigginer in rails, i used before a j2ee > > there was a method > > request.getParameterValues(param_name) > > 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 protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

