Skip to content

Instantly share code, notes, and snippets.

@thbar
Created December 11, 2009 16:41
layout do |path, wish|
if (path !~ /feed/ && path !~ /show/)
mobile_rendering? ? :mobile : :main
else
nil
end
end
private
def self.mobile_rendering?
(request.host =~ /m\.learnivore/) ? true : false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment