Class: TemplatesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- TemplatesController
- Defined in:
- lib/generators/angular_velocity/install/templates/templates_controller.rb
Instance Method Summary collapse
-
#file ⇒ Object
this is deprecated in rails 4 caches_page :file.
Instance Method Details
#file ⇒ Object
this is deprecated in rails 4 caches_page :file
6 7 8 9 |
# File 'lib/generators/angular_velocity/install/templates/templates_controller.rb', line 6 def file @path = params[:path] render :file => "app/assets/javascripts/<%= application_name %>/views/#{@path}" #, :layout => nil end |