Class: Atreides::HomeController

Inherits:
PublicController show all
Includes:
Extendable
Defined in:
app/controllers/atreides/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#errorObject



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

#feedsObject



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_foundObject



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

#robotsObject



31
32
33
34
35
# File 'app/controllers/atreides/home_controller.rb', line 31

def robots
  respond_to do |wants|
    wants.txt
  end
end

#searchObject



8
9
# File 'app/controllers/atreides/home_controller.rb', line 8

def search
end

#sitemapObject



22
23
24
25
26
27
28
29
# File 'app/controllers/atreides/home_controller.rb', line 22

def sitemap
  @posts = collection
  @countdowns = live_posts.tagged_with('countdown').limit(500)
  @pages = Atreides::Page.published.limit(500)
  respond_to do |wants|
    wants.xml
  end
end