function call from within a controller?
There are a few instances where I want to do this. For example, suppose
I would like to know if the page to be rendered is within a frame.
evaluating either of the conditions:
parent.frames.length != 0
parent.location && (parent.location != window.location)
I don’t know how to do this within Rails, and it would be useful to be
able to render different content depending on this state.
a much more complicated “state” structure (that reacts to events and
such) that is way too transitory to store within the database.
I would love to be able to query this state from within my controller.