module MorseControllerHelpers::FlashHelpers
module FlashHelpers
Public Instance Methods
flash_404_error()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 28 def flash_404_error flash[:error] = 'Unable to locate record.' end
flash_create_no()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 8 def flash_create_no flash[:warning] = 'Failed to create, please check the form for errors.' end
flash_create_yes()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 4 def flash_create_yes flash[:success] = "#{klass_humanized} succesfully created." end
flash_destroy_no()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 16 def flash_destroy_no flash[:warning] = "#{klass_humanized} failed to delete." end
flash_destroy_yes()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 12 def flash_destroy_yes flash[:notice] = "#{klass_humanized} succesfully deleted." end
flash_update_no()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 24 def flash_update_no flash[:warning] = 'Failed to update, please check the form for errors.' end
flash_update_yes()
click to toggle source
# File lib/morse_controller_helpers/flash_helpers.rb, line 20 def flash_update_yes flash[:notice] = "#{klass_humanized} succesfully updated." end