I’m OK with the idea of a help button that is a
link_to (… :popup
that produce a modal box.
Q1: Can I make it produce a non-modal box?
So the help text stays up but the user can continue working?
But I’m trying to to deal with modal dialogue boxes.
The most obvious one is a logo box. I’d like to do the login without
actually changing the page behind the dialogue box.
Q2: Can :popup produce dialogue boxes? I presume they would be based
partial, but would they need special actions
Its nice to have a ‘login’ pop-up from a link_to button but suppose I
need that same UI popup generated programatically.
else redirect and return here”
Q4: Will things in the controller actually be updated by a modal
dialogue box? Or would I have to re-scan the database to
update @current_user? How would I cope with non-database
variables? Suppose the modal dialogue box asked for a discount
Q5: Can I link error handling to dialogue boxes?
If so, how can I hand over more parameters (e.g. a redirect to
as opposed to a ‘stay where you are’)?
I know that’s a lot for one post, but as you see the questions are
related and I’m sure this is something a lot of other people would find
Five exclamation marks, the sure sign of an insane mind.
– Terry Pratchett Reaper Man