i have a simple cms on ROR 3.2. with this folder scheme:
app |controllers |my controllers
but i wanted to have an "admin" section where i could have some controllers too. so i created
rails generate controller admin/Users
app | controllers |admin & my admin controllers
so my file is:
users_controller.rb
class Admin::UsersController < ApplicationController
def index
render(:text => "sou o index!")
end
def list
render(:text => "sou o list")
end
end
On my routes i have:
namespace :admin do
resources :users
end
match ':controller(/:action(/:id))(.:format)'
Im new to rails and i cant figure out the solution. Cant find it anywhere.
The PROBLEM is i try do acess:
and i get this error:
Unknown action The action 'show' could not be found for Admin::UsersController