search for: for_object

Displaying 1 result from an estimated 1 matches for "for_object".

Did you mean: foo_object
2012 Jan 20
3
Fields_for adding html (text) for hidden field
...early on. I''m using nested_attributes_for and fields_for: (also HAML) ============================================================= = form_for @user, :url => {:action => ''update''} do |f| # removed fields here = f.fields_for :roles do |r| - unless r.object.for_object.nil? = r.label :role, r.object.for_object.name = r.select :role, Role::Roles.options_for_select = f.submit "Update User" ============================================================= Any thoughts would be appreciated. Thank you Attachments: http://www.ruby-forum.com/atta...