seems to be a 3.1 <-> mysql issue. Here is what I have trimmed it
# create a 3.1 app
rails new playing
# Change Gemfile to use mysql instead of sqlite (following lines in
# Edit config/database.yml to configure for mysql.
rails generate scaffold race name:string distance:decimal
# Now navigate to http://localhost:3000/races, select "New race" and
fill in the fields and then select "Create race"
The race is created in the database table, but the browser navigates
to an error page that reports.
"Couldn't find Race with id=0" and indeed the url in the browser is
This works just fine with sqlite, but fails with mysql.
It looks like the save action is not updating the id value for the
saved record so the redirect sees an id of 0 and builds the URL. Just
wondering if anyone else has seen this and has a solution?
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@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.