Class: JqueryUiForm::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jquery_ui_form/install/install_generator.rb

Overview

Copies jquery-ui-form.sass to app/stylesheets and jquery-ui-form.js to public/javascirpts and a config initializer config/initializers/jquery-ui-form.rb

Examples:

$ rails generate formtastic:install

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



12
13
14
15
16
# File 'lib/generators/jquery_ui_form/install/install_generator.rb', line 12

def copy_files
  template        'jquery-ui-form.rb',           'config/initializers/jquery-ui-form.rb'
  template        'jquery-ui-form.css.scss',     'app/assets/stylesheets/jquery-ui-form.css.scss'
  template        'jquery-ui-form.js.coffee',    'app/assets/javascripts/jquery-ui-form.js.coffee'
end