> If you set :accessible => true on the belongs_to, you should be able > to just do > > <with:user> > <input:name/> > ... etc ... > </with> > > inside the form
Thanks! Yes, it helped. There is just one problem left. By default the model object doesn't have the user set. When I added the above code to the form it crashed with: The error occurred while evaluating nil.editable_by? which makes sense, as user is nil. I tried to create a user object in the console, and I assigned it to the model, then I reloaded the page and it shows the input fields correctly. One way of a work-around would be to always assign a User.new before coming into this state, but it doesn't feel right, as I would have to take care of the user validations. Is there another solution that does not require the calls to the editable_by? method? Many thanks, Andrzej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
