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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -