Having a dumb model object like def MyModel attr_accessor :property def initialize @property = Array.new end end when it is used for for interaction by "@object = MyModel.new" and then used in view as <%= text_field ''object'', ''property'' %> shoudn''t it be rendered as?: <input type="text" name="object[property][]"/> that is with [] at the end so params[:property] will gain array? -- Kamil
> > <%= text_field ''object'', ''property'' %> > > shoudn''t it be rendered as?: > > <input type="text" name="object[property][]"/>Should it be <%= text_field ''object'', @property %> ? Tony -- Posted via http://www.ruby-forum.com/.
Reasonably Related Threads
- "humanizing" model attributes presentation
- Instance or local vars for field helpers in partial template
- Accessing belongs_to objects from a form_for context
- Problem implementing password and password confirmation
- migration with PostgreSQL - function nextval does not exist