Displaying 2 results from an estimated 2 matches for "account_field".
Did you mean:
account_fields
2009 Jul 01
2
Nested Forms - how to displayed the attributes content ?
..."yves-oHC15RC7JGRl57MIdRCFDg@public.gmane.org", ..
#<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
2011 Nov 05
13
Adding a site admin user while creating a site
...:sitename %><br />
<%= f.text_field :sitename %>
</div>
<div class="field">
<%= f.label :slogan %><br />
<%= f.text_field :slogan %>
</div>
* <h3> Site Admin Details </h3>
<% f.fields_for :users do |account_fields| %>
<%= account_fields.label :text_field, "email" %></br>
<%= account_fields.label :text_field, "password" %></br>
<%= account_fields.label :text_field, "password_confirmation" %></br>
<% end %>
**...