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
> 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
2 matches
Mail list logo