I have problems with something that should be simple.
I have two use cases ...
- User is a site directly
- User is using iframe from another site
I want to do the same in any case, except that I don’t want to use a layout for my site if it is an iframe, so I have a “simple” layout
layout "plain"
How can I dynamically assign a layout based on the case.
ie params[:iframe] == true , etc.
Nothing of the kind works.
ruby-on-rails layout ruby-on-rails-3 iframe
holden
source share