My model is being created but isn't saving. 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",
"finish_time(1i)"=>"2009", "start_time(2i)"=>"1",
"finish_time(2i)"=>"1", "start_time(3i)"=>"21", "role"=>"Team Leader",
"finish_time(3i)"=>"21", "start_time(4i)"=>"01",
"finish_time(4i)"=>"01", "start_time(5i)"=>"18",
"finish_time(5i)"=>"18", "email"=>"[email protected]"},
"authenticity_token"=>"1a745e26f1bf45dd1a1bf15f45b29da69e4b8a15"}
Redirected to http://volunteers.local/volunteers
Completed in 14ms (DB: 0) | 302 Found
[http://volunteers.local/volunteers]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to