[Rails] Re: form_tag + fields_for Rails 4

2013-12-12 Thread Frederick Cheung
On Tuesday, December 10, 2013 9:45:15 PM UTC, Andre Mello wrote: > > def create >> @campus = Campus.new(campus_params) >> @campus.church_id = session[:church_id] >> # i'm just trying this way, because it's not creating automatic >> (accepts_nested_attributes_for) >> *@campus.add

[Rails] Re: form_tag + fields_for Rails 4

2013-12-12 Thread Guilherme Dallanol
Have you tried with form_for instead of form_tag? On Tuesday, December 10, 2013 7:45:15 PM UTC-2, Andre Mello wrote: > > Hi There, > I'm trying to user fields_for inside a form_tag, but i can't catch it > on my controller. > > I just take some html code off to makes it easy to read > >