Skip to content

Commit

Permalink
Translate password_digest into Password
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Schneider committed Feb 17, 2012
1 parent f78fce6 commit ab176e3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
11 changes: 6 additions & 5 deletions app/models/user.rb
Expand Up @@ -2,11 +2,12 @@
#
# Table name: users
#
# id :integer not null, primary key
# name :string(255)
# email :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# name :string(255)
# email :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# password_digest :string(255)
#

class User < ActiveRecord::Base
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -19,6 +19,7 @@

<%= render 'layouts/footer' %>
<%= debug(params) if Rails.env.development? %>
<%= t "helloworld" %>
</div>
</body>
</html>
5 changes: 4 additions & 1 deletion config/locales/en.yml
Expand Up @@ -2,4 +2,7 @@
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.

en:
hello: "Hello world"
activerecord:
attributes:
user:
password_digest: "Password"
11 changes: 6 additions & 5 deletions spec/models/user_spec.rb
Expand Up @@ -2,11 +2,12 @@
#
# Table name: users
#
# id :integer not null, primary key
# name :string(255)
# email :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# name :string(255)
# email :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# password_digest :string(255)
#

require 'spec_helper'
Expand Down

0 comments on commit ab176e3

Please sign in to comment.