Module: SimpleCaptcha::SetupTasks
- Defined in:
- lib/simple_captcha_setup.rb
Overview
:nodoc
Class Method Summary collapse
Class Method Details
.do_setup(version = :new) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/simple_captcha_setup.rb', line 6 def self.do_setup(version = :new) @version = version begin puts "STEP 1" generate_migration write_migration_content copy_view_file puts "Followup Steps" puts "STEP 2 -- run the task 'rake db:migrate'" puts "STEP 3 -- edit the file config/routes.rb to add the route \"map.simple_captcha '/simple_captcha/:action', :controller => 'simple_captcha'\"" rescue StandardError => e p e end end |