Class: Playmo::Recipes::ApplicationControllerRecipe
- Inherits:
-
Playmo::Recipe
- Object
- Rails::Generators::Base
- Playmo::Recipe
- Playmo::Recipes::ApplicationControllerRecipe
- Defined in:
- lib/playmo/recipes/application_controller_recipe.rb
Instance Attribute Summary
Attributes inherited from Playmo::Recipe
#application_name, #question_instance, #silents
Instance Method Summary collapse
Methods inherited from Playmo::Recipe
#cook!, #question, #retrieve, #silently, #store
Instance Method Details
#setup ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/playmo/recipes/application_controller_recipe.rb', line 6 def setup silently do remove_file 'app/controllers/application_controller.rb' copy_file 'application_controller.rb', 'app/controllers/application_controller.rb' empty_directory "app/views/application" copy_file "internal_error.html.erb", "app/views/application/internal_error.html.erb" copy_file "not_found.html.erb", "app/views/application/not_found.html.erb" # To catch routing errors route 'match "*catch_all" => "application#not_found"' end end |