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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -