ruby on rails - routing error on something/new -
i'm receiving action controller exception on 'new' path of http://bob.dev/assessments/new. added devise , sextant project , path that's giving me issue working previously. i'm doing wrong , stand little getting right. thanksyou!
the exception:
uninitialized constant errorscontroller (actioncontroller::routingerror)
the routes:
bob::application.routes.draw devise_for :users mount_sextant # sextant gem ##################### match '*not_found' => 'errors#handle404' # visit http://bob.dev/rails/routes match "*path" => 'errors#handle404' ################################### # resources :users # authentication scratch ##### # resources :sessions ################################### root :to => "assessments#index" resources :assessments end
and finally, output http://bob.dev/rails/routes via sextant:
new_user_session /users/sign_in(.:format) devise/sessions#new user_session post /users/sign_in(.:format) devise/sessions#create destroy_user_session delete /users/sign_out(.:format) devise/sessions#destroy user_password post /users/password(.:format) devise/passwords#create new_user_password /users/password/new(.:format) devise/passwords#new edit_user_password /users/password/edit(.:format) devise/passwords#edit put /users/password(.:format) devise/passwords#update cancel_user_registration /users/cancel(.:format) devise/registrations#cancel user_registration post /users(.:format) devise/registrations#create new_user_registration /users/sign_up(.:format) devise/registrations#new edit_user_registration /users/edit(.:format) devise/registrations#edit put /users(.:format) devise/registrations#update delete /users(.:format) devise/registrations#destroy user_confirmation post /users/confirmation(.:format) devise/confirmations#create new_user_confirmation /users/confirmation/new(.:format) devise/confirmations#new /users/confirmation(.:format) devise/confirmations#show rails_routes /rails/routes(.:format) rails/routes#index rails_route /rails/routes/:id(.:format) rails/routes#show /*not_found(.:format) errors#handle404 /*path(.:format) errors#handle404 root / assessments#index assessments /assessments(.:format) assessments#index post /assessments(.:format) assessments#create new_assessment /assessments/new(.:format) assessments#new edit_assessment /assessments/:id/edit(.:format) assessments#edit assessment /assessments/:id(.:format) assessments#show put /assessments/:id(.:format) assessments#update delete /assessments/:id(.:format) assessments#destroy /rails/routes(.:format) rails/routes#index /rails/routes/:id(.:format) rails/routes#show
you can safely remove lines
match '*not_found' => 'errors#handle404' match "*path" => 'errors#handle404'
they're not needed. solve error. though if want make custom error handler app check out number 3 in jose's post http://blog.plataformatec.com.br/2012/01/my-five-favorite-hidden-features-in-rails-3-2/
Comments
Post a Comment