ActionButton plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/vigetlabs/action_button.git
Create a delete button:
action_button 'delete-comment', 'Delete this Comment', comment_path(@post, comment), {:method => :delete, :number => comment.id}
Embed an image and use custom classes and id for easier styling:
action_button 'delete-comment', image_tag('icons/delete.png', :alt => 'Add a Comment'), new_comment_path(@post), { :id => "commentDel", :class => 'delComment', :form_class => 'delComment', :form_id => "delCommentForm" }
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (4 older versions) | Last edited by: scott, about 1 month ago

