Skip to content
Appending Rails code to support multiple confirms
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
README
init.rb

README

Adds the support for adding multiple confirm boxes in Rails.

User will be prompted with multiple confirm boxes one after the other.

Example:
<%= link_to 'Delete User', user_path(@current_user), 
			:method => :delete, 
			:confirm => ["Are you sure you want to delete this user?", "Your action will be reported to the system administrator. Do you want to continue?"]




Something went wrong with that request. Please try again.