Displaying 1 result from an estimated 1 matches for "campusescontrol".
2013 Dec 10
2
form_tag + fields_for Rails 4
...gt; <%= b.text_field :city %>
> <%= b.text_field :state %>
> <%= b.text_field :zip_code %>
> <% end %>
>
> <input type=''submit'' value=''Save'' >
> <% end %>
my controller
> class CampusesController < ApplicationController
> def new
> @campus = Campus.new
> end
>
> 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
&...