Skip to content

Instantly share code, notes, and snippets.

@LTe
Created July 19, 2010 14:22
Show Gist options
  • Save LTe/481463 to your computer and use it in GitHub Desktop.
Save LTe/481463 to your computer and use it in GitHub Desktop.
- form_for :user, :url => user_profile_path(@user), :html => { :method => :put } do |f|
- f.fields_for @user.user_profile do |pf|
%p
= pf.label t("profile.name")
= pf.text_field :name
%p
= pf.label t("profile.surname")
= pf.text_field :surname
%p
= pf.label t("profile.bday")
= pf.date_select :bday
%p
= pf.label t("profile.homepage")
= pf.text_field :homepage
%p
= pf.label t("profile.city")
= pf.text_field :city
%p
= pf.label t("profile.current_city")
= pf.text_field :current_city
%p
= pf.label t("profile.how_i_trip")
%br
= pf.text_area :how_trip
%p
= pf.label t("profile.about_me")
%br
= pf.text_area :about_me
%p
= pf.label t("profile.the_best_trip_experince")
%br
= pf.text_area :best_trip_exp
%p
= pf.label t("profile.the_worst_trip_experince")
%br
= pf.text_area :worst_trip_exp
%p
= pf.label t("profile.items_always_with_me")
%br
= pf.text_area :my_items
%p
= pf.label t("profile.trip_because")
%br
= pf.text_area :trip_because
- fields_for :languages do |lang|
%p
= lang.label t("profile.languages")
= lang.check_box :eng
= f.submit "Zapisz"
Sth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment