MonoForge

ctcherry / modalbox_confirm

modalbox_confirm

Public

This Rails plugin overrides the :confirm message of links to display inside of a ModalBox

16 filesupdated Jun 18, 2026

README

modalbox_confirm Plugin

modalbox_confirm Plugin hooks into the default rails link_to helpers to implement ModalBox (a javascript message display library) when using a :confirm message

ModalBox website: http://www.wildbit.com/labs/modalbox/

INSTALL

  • Install this plugin $ ruby script/plugin install git://github.com/ctcherry/modalbox_confirm.git

  • Install the modalbox library $ ruby script/generate modalbox_install

USAGE

  • On pages where you use confirm messages make sure you are using <%= javascript_include_tag :defaults %> and <%= stylesheet_link_tag 'modalbox.css' %>

  • Any :confirm message you use is now replaced with the ModalBox

Copyright (c) 2008 Chris Cherry (ctcherry@gmail.com), released under the MIT license