Thursday, April 22, 2010

[Rails] Re: ActionController::RoutingError after using scaffold

Sharagoz wrote:
> My guess is that you havent specified what the primary_key of the
> users table is. Rails expect it do be "id" if you dont specify it.
> Try adding "set_primary_key(:user_id)" to your user model if you
> havent already.

That fixed it! Thanks so much!
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate