Sha256: 2b022a3ef7ae66f6f687faadec13bb5fce7ab89779687283d319050dcb1e273c
Contents?: true
Size: 1003 Bytes
Versions: 7
Compression:
Stored size: 1003 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: "Your request processed successfully" 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
7 entries across 7 versions & 1 rubygems