Class: ThemeController

Inherits:
ContentController show all
Defined in:
app/controllers/theme_controller.rb

Instance Method Summary collapse

Methods included from BlogHelper

#blog_base_url, #this_blog

Instance Method Details

#errorObject



23
24
25
# File 'app/controllers/theme_controller.rb', line 23

def error
  head :not_found
end

#fontsObject



19
20
21
# File 'app/controllers/theme_controller.rb', line 19

def fonts
  render_theme_item(:fonts, params[:filename])
end

#imagesObject



15
16
17
# File 'app/controllers/theme_controller.rb', line 15

def images
  render_theme_item(:images, params[:filename])
end

#javascriptsObject



11
12
13
# File 'app/controllers/theme_controller.rb', line 11

def javascripts
  render_theme_item(:javascripts, params[:filename], "text/javascript; charset=utf-8")
end

#static_view_testObject



27
# File 'app/controllers/theme_controller.rb', line 27

def static_view_test; end

#stylesheetsObject



7
8
9
# File 'app/controllers/theme_controller.rb', line 7

def stylesheets
  render_theme_item(:stylesheets, params[:filename], "text/css; charset=utf-8")
end