search for: user_firstnam

Displaying 4 results from an estimated 4 matches for "user_firstnam".

Did you mean: user_firstname
2009 Jul 01
2
Nested Forms - how to displayed the attributes content ?
...lt;Account id: 4, user_id: 1, title: 0, first_name: "Yves", ... my view ... <% form_for :user, :url => { :action => "update" } do |user_form| %> <% user_form.fields_for :account_attributes do |account_fields| %> <li> <label for="user_firstname">First Name</label> <%= account_fields.text_field :first_name, :size => "30" %> </li> ..... what am I missing ? thanks for your help erwin
2006 Aug 17
6
NameError in AdminController#index building scaffold
...----+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----------------+ | user_id | int(11) | NO | PRI | NULL | auto_increment | | user_login | varchar(50) | NO | | | | | user_firstname | varchar(50) | NO | | | | | user_lastname | varchar(50) | NO | | | | | user_role | varchar(50) | NO | | | | +----------------+-------------+------+-----+---------+----------------+ 5 rows in set (0.18 sec...
2006 Jan 15
0
update_attributes not working
...quot;success"] = "Updated Successfully" redirect_to :action => "list" else flash["success"] = "no good" redirect_to :action => "list" end end and in my edit.rhtml view, I have a form with fields such as: <input id="user_firstname" name="user[firstname]" size="30" type="text" value="<%=@user.firstname %>" /> I can manually update each column in the table by writing @user.update_attribute(:firstname, @params[''user'']["firstname"]) etc, but up...
2010 Jan 26
2
accepts_nested_attributes_for :has_many :through => 'bug?'
Hey guys & ladies! I''ve got the following relationship which i''m trying to get accepts_nested_attributes to work with. But when i submit my form, it looks as if its expecting a Company object, rather than an array of companies. which really doesn''t make sense considering its a has_many :relationship. So what i''m after, is a way to