Some small problems. I''m still newbe
I had set up valid models. user has_one profile,
and profile belongs_to user.
Saving in db works fine, but I can''t figured out why in register.rhtml
<%= error_message_on("profile", "pseudo") %>
doesn''t work,
it shows NoMethodError.
And all validates_* doesn''t work in profile.rb model.
def create
@user = User.new(params[:user])
@user.profile = Profile.new(@params[:user])
if @user.save
end
end
Is''t a proper way to insert relational data in 2 tables ?
Any help will be apreciated.
Best greatings to Everyone doing Everyting in Ruby On Rails