Sha256: 2e97a4cc0e2953cecb26f70a0363365753d0c10a2ed15977ea265ec1345306dc
Contents?: true
Size: 995 Bytes
Versions: 3
Compression:
Stored size: 995 Bytes
Contents
en: flash_messages: # # These are the translations for the different headings. # headings: success: "Success!" info: "Info!" warning: "Warning!" error: "Error!" # # Add default flash messages: # defaults: # success: "This is a notification" # error: "Something went wrong" # create: # success: "Successfully created!" # error: "Something went wrong. Please take a look at the form to see what went wrong." # # Add flash messages for controller actions: # products: # create: # success: "This is a notification" # error: "Something went wrong" # # Inside controller: # def create # flash!(:success, :error) # redirect_to(:root) # end # # OR # # def create # redirect_to(:root, :flash => [:success, :error]) # end # # OR # # def create # flash_now!(:success, :error) # render("new") # end
Version data entries
3 entries across 3 versions & 1 rubygems