class NgOnRails::LayoutGenerator
Public Instance Methods
copy_app_controller()
click to toggle source
# File lib/generators/ng_on_rails/layout_generator.rb, line 18 def copy_app_controller if options[:app_controller] option_copy_file "#{LayoutGenerator.source_root}/app_controller_template.js.coffee", "app/assets/javascripts/#{module_path}angular_app/controllers/app_controller.js.coffee", "app controller" end end
copy_layout()
click to toggle source
# File lib/generators/ng_on_rails/layout_generator.rb, line 12 def copy_layout option_template "#{LayoutGenerator.source_root}/#{options[:format]}/layout_template.html.#{options[:format]}.erb", "app/views/layouts/#{module_path}#{options[:layout_name]}.html.#{options[:format]}", "layout file" end