Skip to content

Instantly share code, notes, and snippets.

@livando
Created November 16, 2012 14:40
Show Gist options
  • Save livando/4087810 to your computer and use it in GitHub Desktop.
Save livando/4087810 to your computer and use it in GitHub Desktop.
Pull Devise messages from YAML
msgs = YAML::load(File.open("#{::Rails.root.to_s}/config/locales/devise.en.yml"))
 
msgs['en']['devise']['failure']['unauthenticated']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment