I must've missed this one when it came through but just for clarity if someone searches for this.
viewhints children work for the show pages. To be able to modify associated models through the new and edit forms, you need to tell the model that the assocation is accessible. Once you do that, the forms will update with a default multi-model form that should be good for common use cases. On Jul 13, 4:29 pm, spokra <[email protected]> wrote: > are view hint just for the show page? or do they auto-magicly work > in create and edit pages? > > On Jul 13, 1:56 pm, Joachim <[email protected]> wrote: > > > W dniu 13.07.2010 22:23, storitel pisze: > > > > yes it does understand. i think you need to update your viewhints > > > files... > > > > in user_hints.rb put... > > > > children :lots > > > > and in lot_hints.rb put > > > > children :users > > > > also i think your lots_users model needs to be a hobo generated one > > > too... (should have hobo_model etc..) > > > and possibly > > > ahas_many :users, :through =>'lots_users', :foreign_key =>'user_id', > > :accessible => true -- 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.
