Created
March 21, 2013 04:27
-
-
Save mxstrand/5210676 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Managing states Marking a state as default | |
Failure/Error: click_link "States" | |
ActionView::Template::Error: | |
undefined method `make_default_admin_state_path' for #<#<Class:0x000000071e0e90>:0x00000006be1260> | |
# ./app/views/admin/states/index.html.erb:7:in `block in _app_views_admin_states_index_html_erb___433868852152387488_63319760' | |
# ./app/views/admin/states/index.html.erb:4:in `each' | |
# ./app/views/admin/states/index.html.erb:4:in `_app_views_admin_states_index_html_erb___433868852152387488_63319760' | |
# (eval):2:in `click_link' | |
# ./spec/integration/managing_states_spec.rb:12:in `block (2 levels) in <top (required)>' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just for clarity here is the full code in your routes.rb
namespace :admin do
root :to => "base#index"
resources :users do
resources :permissions
end
resources :states do
member do
get :make_default
end
end
end