I've created a new page and for some reason i cannot find it.
I've used rails generate controller dashboard index Which worked fine. I then went into the routes file and added this
namespace :dashboard do
get 'dashboard' => 'dashboard#index'
end
My file tree is like this views --> dashboard --> index.html.erb
My helper is just this
module DashboardHelper
end
my controller has just got the def index end inside
Any ideas what im doing wrong?
if i go to /dashboard i get this error
No route matches [GET] "/dashboard"
Cheers