In the profile creation form there were user fields (mail, name) so that you can send a confirmation to the mail:

= form_for @profile, html: { multipart: true } do |f| .field = f.label :Photo = f.file_field :photo .field = f.label :Cv = f.file_field :cv .field = f.label :fio = f.text_field :fio .field = f.label :name = f.text_field :name .field = f.label :description = f.text_field :description .field = f.label :money_from = f.text_field :money_from .field = f.label :money_to = f.text_field :money_to .field = f.label :location = f.text_field :location .field = f.label :category = f.text_field :category .field = f.label :expectations = f.text_field :expectations .field = f.label :skype = f.text_field :skype .field = f.label :site = f.text_field :site .field = f.label :linkedin = f.text_field :linkedin  = f.fields_for :users do |users_form| if user_singed_in? .field = f.label :current_user.email else .field = f.label :name = f.text_field :name .field = f.label :email = f.text_field :email end end .actions = f.submit end 

Error creating profile:

 `Slim::Parser::SyntaxError at /profiles/new Unknown line indicator /home/igorrize/juniorjobs/app/views/profiles/_form.html.slim, Line 43, Column 0 fields_for :users do |users_form| ^ 

It also highlights the 2nd line in views/profile/new.html.slim :

 h1 New profile == render 'form' = link_to 'Back', profiles_path 
  • end ? In Slim something? And why is the second form indented with one space? Of course, Rails can't do anything with syntactically incorrect code :) - D-side
  • Capsibo, it is possible that the chopper did it, in the other end there is no end . actually did this = f.fields_for :user do |builder| = builder.label :name = builder.text_field :name = builder.label :email = builder.text_field :email = f.fields_for :user do |builder| = builder.label :name = builder.text_field :name = builder.label :email = builder.text_field :email earned - Knock Nevis

0