Two fields for same

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.

Yes, it is possible… just look at the form helper documentation at

On Mon, Jul 19, 2010 at 7:39 PM, Luciano S.
[email protected]wrote:

in the controller using params [: one] and params [: two]
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


~N a r e n

Luciano S. 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
[email protected]