Skip to content

Instantly share code, notes, and snippets.

@andresgutgon
Created April 29, 2010 20:38
Show Gist options
  • Save andresgutgon/384206 to your computer and use it in GitHub Desktop.
Save andresgutgon/384206 to your computer and use it in GitHub Desktop.
<% form.inputs :name => "Datos de acceso" do %>
<%= form.input :email %>
<%= form.input :password %>
<%= form.input :password_confirmation %>
<% end %>
<% @user.build_profile(:contact_email => @user.email) unless @user.profile %>
<% form.semantic_fields_for :profile do |profile| %>
<% profile.semantic_fields_for :address do |address| %>
<%= address.input :address, :as => :select, :label_method => :name %>
<% end %>
<%#= profile.collection_select :address_id, Address.all, :id, :name %>
<% form.inputs :name => "Tu perfil" do %>
<%= profile.input :name %>
<%= profile.input :family_name %>
<%= profile.input :second_family_name %>
<%= profile.input :job_category,:as => :select, :collection => job_categories, :prompt => I18n.t("prompt_job_categories") %>
<%= profile.input :contact_email %>
<%= profile.input :phone %>
<%= profile.input :fax %>
<%= profile.input :floor %>
<%= profile.input :room %>
<%= profile.input :avatar %>
<% end %>
<% form.inputs :name => "Interés científico" do %>
<%= profile.input :research_interest %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment