Hello, I am very ill and I don't remember how does map.root.
I have this in the routes.rb:
ActionController::Routing::Routes.draw do |map|
map.signup 'signup', :controller => 'users', :action => 'new'
map.logout 'logout', :controller => 'sessions', :action => 'destroy'
map.login 'login', :controller => 'sessions', :action => 'new'
map.root :controller => 'index', :action => 'index'
And the controller is app/controllers/index.rb and it have the class
Index and the def Index. This is the code:
class Index < ActiveRecord::Base
If I put this in my rails project, say me this the localhost:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it
Can someone explain me how does the map.root?
Thanks for your attention.