I think it makes most sence to have a "stock" field in the database, 
instead of having one record per stock item.

> how to pass such nonmodel html/javascript fields from view 
> to rails and then back to the view
You mean "non database" fields, right?

Add this to the model:
attr_accessor :attribute_name
Then you can use this field like any other field, except that it wont be 
stored in the database.
-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to