Method: Jax::Generators::ControllerGenerator#create_view_file

Defined in:
lib/generators/jax/controller/controller_generator.rb

#create_view_fileObject



25
26
27
28
29
30
31
# File 'lib/generators/jax/controller/controller_generator.rb', line 25

def create_view_file
  for action in actions
    @action_name = action
    coffee_template_with_fallback "view.js",
      File.join('app/assets/jax/views', file_name, "#{action}.js")
  end
end