devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
DeviseController#set_flash_message
Sets the flash message with :key, using I18n. By default you are able
to set up your messages using specific resource scope, and if no message is
found we look to the default scope. Set the "now" options key to a true
value to populate the flash.now hash in lieu of the default flash hash (so
the flash message will be available to the current action instead of the
next action).
Example (i18n locale file):
en:
devise:
passwords:
#default_scope_messages - only if resource_scope is not found
user:
#resource_scope_messages
Please refer to README or en.yml locale file to check what messages are
available.Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open app/controllers/devise_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-DeviseController-set_flash_message-for-pr
# Commit to gitgit add app/controllers/devise_controller.rbgit commit -m "better docs for DeviseController#set_flash_message"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-DeviseController-set_flash_message-for-pr
hub pull-request
# Celebrate!