6 ms·
Incorporate your site into the app. Generate a "site" controller and then populate the views for your main page with the site. Use the controller if you want
by bherms 16y ago
Incorporate your site into the app. Generate a "site" controller and then populate the views for your main page with the site. Use the controller if you want anything to be dynamic. Then set your routes so that the root is site/index. "map.root :action => 'index', :controller => 'site'" etc. Then you can use the rails app as a sort of CMS while maintaining the domain.