Method: EffectivePages::Generators::InstallGenerator#setup_routes
- Defined in:
- lib/generators/effective_pages/install_generator.rb
#setup_routes ⇒ Object
30 31 32 |
# File 'lib/generators/effective_pages/install_generator.rb', line 30 def setup_routes inject_into_file 'config/routes.rb', "\n # if you want EffectivePages to render the home / root page\n # uncomment the following line and create an Effective::Page with slug == 'home' \n # root to: 'Effective::Pages#show', id: 'home'\n", :before => /root (:?)to.*/ end |