Created
October 14, 2010 02:10
-
-
Save bishopandco/625417 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
map.namespace :admin do |admin| | |
admin.resources :news, :collection => {:post_data => :post, :sort => :post, :search => :post} | |
end | |
$ rake routes | grep news | |
search_admin_news POST /admin/news/search(.:format) {:controller=>"admin/news", :action=>"search"} | |
post_data_admin_news POST /admin/news/post_data(.:format) {:controller=>"admin/news", :action=>"post_data"} | |
sort_admin_news POST /admin/news/sort(.:format) {:controller=>"admin/news", :action=>"sort"} | |
admin_news_index GET /admin/news(.:format) {:controller=>"admin/news", :action=>"index"} | |
POST /admin/news(.:format) {:controller=>"admin/news", :action=>"create"} | |
new_admin_news GET /admin/news/new(.:format) {:controller=>"admin/news", :action=>"new"} | |
edit_admin_news GET /admin/news/:id/edit(.:format) {:controller=>"admin/news", :action=>"edit"} | |
admin_news GET /admin/news/:id(.:format) {:controller=>"admin/news", :action=>"show"} | |
PUT /admin/news/:id(.:format) {:controller=>"admin/news", :action=>"update"} | |
DELETE /admin/news/:id(.:format) {:controller=>"admin/news", :action=>"destroy"} | |
admin_news_url failed to generate from {:controller=>"admin/news", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["admin", "news", :id] - are they all satisfied? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inflect.uncountable %w( news )