Reputation: 47086
Instead of routing to index.html, I want my control to go to the login controller in rails when i go to http://localhost:3000 . How can I achieve this?
Upvotes: 0
Views: 8656
Reputation: 27901
You need to set root path in config/routes.rb
, example:
root 'login#index'
Upvotes: 11
Reputation: 498
On latest version go on config/routes.rb and replace with home#index with your default controller Rails.application.routes.draw do
root :to => 'home#index' end
Upvotes: 0
Reputation: 2160
In addition to NARKOZ's answer, you might want to check out the RailsGuides Getting Started guide.
Upvotes: -1