Skip to content

Instantly share code, notes, and snippets.

@ehrenmurdick
Created November 3, 2010 22:51
Show Gist options
  • Save ehrenmurdick/661859 to your computer and use it in GitHub Desktop.
Save ehrenmurdick/661859 to your computer and use it in GitHub Desktop.
class FooController
FanlinePaths = process_view_path("somewhere")
RingadocPaths = process_view_path("somewhere else")
before_filter do
case request.host
when 'fanline'
prepend_view_path FanlinePaths
when 'ringadoc'
prepend_view_path RingadocPaths
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment