Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Themeable Views In Ruby

DZone's Guide to

Themeable Views In Ruby

·
Free Resource

class ApplicationController < ActionController::Base
  before_filter :choose_theme
  
  private
  def choose_theme
    ActionController::Base.template_root = File.join(RAILS_ROOT, 'app/views', @params['theme'])
  end
end
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}