Displaying 1 result from an estimated 1 matches for "volunteerscontroller".
Did you mean:
volunteer_controller
2009 Jan 21
4
Having troubles saving a new model
...ing. It''s like it skips straight
past saving. Any ideas why it might do this? Updating works fine.
def create
@volunteer = Volunteer.new(params[:volunteer])
@volunteer.save
redirect_to(volunteers_url)
end
And here''s what the console reads upon create:
Processing VolunteersController#create (for 127.0.0.1 at 2009-01-21
11:33:00) [POST]
Parameters: {"commit"=>"Create", "volunteer"=>{"name"=>"test",
"job_id"=>"2", "accepted"=>"0", "start_time(1i)"=>"2009&qu...