Class: Atreides::HomeController
- Inherits:
-
PublicController
- Object
- ApplicationController
- ApplicationController
- PublicController
- Atreides::HomeController
- Includes:
- Extendable
- Defined in:
- app/controllers/atreides/home_controller.rb
Instance Method Summary collapse
- #error ⇒ Object
- #feeds ⇒ Object
- #not_found ⇒ Object
- #robots ⇒ Object
- #search ⇒ Object
- #sitemap ⇒ Object
Instance Method Details
#error ⇒ Object
37 38 39 40 41 42 43 |
# File 'app/controllers/atreides/home_controller.rb', line 37 def error respond_to do |wants| wants.html { render "atreides/errors/500" } end end |
#feeds ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/atreides/home_controller.rb', line 11 def feeds respond_to do |wants| wants.rss { render :template => "atreides/posts/index" } wants.atom { render :template => "atreides/posts/index" } end end |
#not_found ⇒ Object
45 46 47 48 49 50 51 |
# File 'app/controllers/atreides/home_controller.rb', line 45 def not_found respond_to do |wants| wants.html { render "atreides/errors/404" } end end |
#robots ⇒ Object
31 32 33 34 35 |
# File 'app/controllers/atreides/home_controller.rb', line 31 def robots respond_to do |wants| wants.txt end end |
#search ⇒ Object
8 9 |
# File 'app/controllers/atreides/home_controller.rb', line 8 def search end |