Class: FaqsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- FaqsController
- Defined in:
- app/controllers/faqs_controller.rb
Instance Method Summary collapse
Instance Method Details
#faq_per_category ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/faqs_controller.rb', line 15 def faq_per_category collection respond_to do |format| format.html { render :index } end end |
#feed ⇒ Object
22 23 24 25 26 27 28 |
# File 'app/controllers/faqs_controller.rb', line 22 def feed max_age = 4.hours response.headers['Cache-Control'] = 'public, max-age=' + max_age.to_i.to_s response.headers['Expires'] = max_age.from_now.httpdate response.content_type = 'application/atom+xml' fresh_when :last_modified => Faq.feed_last_modified end |
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/faqs_controller.rb', line 5 def index collection respond_to { |format| format.html } end |
#show ⇒ Object
10 11 12 13 |
# File 'app/controllers/faqs_controller.rb', line 10 def show resource respond_to { |format| format.html } end |