List Info

Thread: Re: creating multiple objects on the same page




Re: creating multiple objects on the same page
user name
2008-01-21 12:17:42
Thanks but what if I have 10 of that same item on the page. 
Would I
then change my convention to:

<input name="item1[description][]" />
<input name="item2[description][]" />

and if so, how would I process that on the controller end?

 - Dave

On Jan 18, 6:36 pm, Keynan Pratt <rails-mailing-l...andreas-s.net>
wrote:
> sounds like the naming convention you would want would
be something like
>
> object[attribute][]
>
> ie.
>
> <input name="item[description][]" />
>
> --
> Posted viahttp://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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )