ruby on rails - rake routes fails because of "missing action" -


i started clean rails app, installed , migrated devise gem couple straightforward models of own. devise user controller methods not working (i error page when go localhost:3000/users/new not when got /users/sign_up). when run rake --trace routes, following output:

(in /users/tim/coding/rails_projects/libertyhive)
** invoke routes (first_time)
** invoke environment (first_time)
** execute environment
rake aborted!
missing :action
/users/tim/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/actionpack-3.0.4/lib/action_dispatch/routing/mapper.rb:167:in `default_controller_and_action'

/users/tim/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/actionpack-3.0.4/lib/action_dispatch/routing/mapper.rb:68:in `normalize_options!'

and continues many more lines of /users/tim/.rvm/gem/ruby-1.9.2-p136@rails3tutorial/gems/...

i have no idea how debug this. i'm pretty new rails. did rails 3 tutorial michael hartl, helped me through of general setup , configuration of rails.

any idea problem is?

rails uses restful interface default routing urls. means there no action called :sign_up.

the user signup urls be:

  1. the form add new user: http://localhost:3000/users/new (a request)
  2. when submit form new user: http://localhost:3000/users ( post request)

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -