How can I route the root of a Rails app to a specific controller? -
right have path 'localhost:3000/boards'. example 'boards/new', 'boards/1', etc. how can route root. 'localhost:3000/new', 'localhost:3000/1' , route 'boards'?
thanks!
try resources :board, path: "/"
in config/routes.rb
Comments
Post a Comment