Reputation: 95
I recently installed Ubuntu 14.10 alongside Windows 7 to make dev in Rails easier. I got everything up and running and brought over my projects into Ubuntu. When I start the Rails server in the project folder it runs just fine, but when I go to localhost:3000 I get the "Your riding Ruby on Rails" generic placeholder, not the root home page I have set up, nor can I use any of the addresses I have setup in my routes file. If anyone has any experience or ideas of what might alleviate this issue I would be very grateful. I don't want to go back to developing in Windows... Thanks in advance.
Routes:
Rails.application.routes.draw do
root 'static_pages#home'
get 'help' => 'static_pages#help'
get 'about' => 'static_pages#about'
get 'contact' => 'static_pages#contact'
get 'signup' => 'users#new'
resources :users
end
Upvotes: 1
Views: 64
Reputation: 1795
Delete the file public/index.html, it has priority over your routes.
Upvotes: 1