search for: model_field

Displaying 3 results from an estimated 3 matches for "model_field".

2006 Mar 08
3
accessing form elements
Rails names its form fields as model[field] , but you can''t access the value in javascript by document.form.model[field].value. How do you escape the [''s to access the value? -- Posted via http://www.ruby-forum.com/.
2006 Jul 25
2
What to use in params[:name]
I am using the auto complete components in Rails, and if I look at the generated source I see that the id is model_field and the name is model[field]. Given that i am evaluatin params individually , and not part of one form variable, which should I use to call that value with params[:name], model_field or model[field]? Thanks for your help and time, Ben -- Posted via http://www.ruby-forum.com/.
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>