Hi, I'd like to make the :confirm option in my link_to/button_to erb elements conditional. So, if the page is in some state, no confirmation is requested, but not otherwise, etc.
So far, my only (ugly) approach is to replace the linker html itself depending on changes in state, but I believe there must be an easier way to 'toggle' the confirmation option on/off. Can anyone recommend an approach? Thanks, Lille -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

