I have my file structure set up appropriately ( I think ! ) , and claims nothing responds to show.
My file structure :
views/admin/admin_wysi/index.html.haml
My controller ( controllers/admin/admin_wysis_controller.rb )
class Admin::AdminWysisController < Admin::ApplicationController
def index
end
end
My routes.rb
map.namespace :admin do |admin|
admin.resource :admin_wysi
end
And my error when I try to access http://www.website.com/admin/admin_wysi/ :
Unknown action
No action responded to show. Actions: index
What am I doing wrong here?
Your routes are singular. But you probably want plural.
Change your route definition to this:
Or if you really want a singular route, change your controller to this:
I addition to all this i suggest you read Rails Guides about routing, it should give some more details how and what is actually going on 🙂