[Rails] Re: Mass Assigment in simple assossiation

2012-04-17 Thread Miguel A.
Problem solved. To anyone who has the same issue, added to the new controller: @facility=@hotel.build_facility And in the nested form, the correct syntax is: <%= f.fields_for :facility do |fc|%> Instead of ... :@facility do ... -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Mass Assigment in simple assossiation

2012-04-16 Thread Miguel A.
> The problem lies here I think, it should possibly be fields_for > :facility do ... Apologies for the new thread. It now shows up in the form, the problem now is when I submit, it gives out an error. If i change to what you suggested, the same error apears, but for the @facility ActiveModel::Ma