On 7 January 2016 at 11:32, fugee ohu <fugee...@gmail.com> wrote: > I have users has_one profile, profiles has_many schools, schools has_many > teams I'm trying to write the new and create actions for the teams > controller i'm not sure what they should be, i have something like @team= > current_user.profile.build_team(team_params) which i've been trying > different variations of
You are making the same mistake you did before. You cannot use profile.build_team because there is not an appropriate relation between profile and team. Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/2707c91a-bda1-4c6e-a378-59b8eee96d89%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt%2BJjxfN1O%2BWG7UEmD4B1Gt3zv%3D%3DYmdd2gSkqaSx8O7Cg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.