hello guys, it''s possible pass two params in a GET request to the same location in the database? example: two fields in view: text_field: persons,: Birthday: id => one text_field: persons,: Birthday: id => two in the controller using params [: one] and params [: two] ? thank''s. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, it is possible.. just look at the form helper documentation at http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html On Mon, Jul 19, 2010 at 7:39 PM, Luciano Sousa <listas-kAhc7MNWSfRZtF2pr0N/Pg@public.gmane.org>wrote:> hello guys, > it''s possible pass two params in a GET request to the same location in the > database? > > example: > > two fields in view: > text_field: persons,: Birthday: id => one > text_field: persons,: Birthday: id => two > > in the controller using params [: one] and params [: two] > > ? > > thank''s. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- ~N a r e n -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Luciano Sousa wrote:> hello guys, > it''s possible pass two params in a GET request to the same location in > the > database? > > example: > > two fields in view: > text_field: persons,: Birthday: id => one > text_field: persons,: Birthday: id => two > > in the controller using params [: one] and params [: two] > > ? > > thank''s.You can process the params hash any way you like. But what''s your use case like? There may be a better way... Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.