Skip to content

Commit

Permalink
Fixed _links.erb for device user_password
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Dec 14, 2013
1 parent c004c1d commit a6043b7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ruby '2.0.0'
# Application gems
gem 'rails', '4.0.0'
gem 'jquery-rails'
gem 'devise', '~> 3.1.1'
gem 'devise'
gem 'simple_form', '~> 3.0.0.rc'
gem "paperclip", "~> 3.0"
gem "paperclip-dropbox"
Expand All @@ -21,6 +21,7 @@ end

group :development, :test do
gem 'sqlite3'
gem "better_errors"
end


Expand Down
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ GEM
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
bcrypt-ruby (3.1.2)
better_errors (1.0.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
bootstrap-sass (3.0.3.0)
sass (~> 3.2)
bootstrap-will_paginate (0.0.10)
Expand All @@ -43,6 +46,7 @@ GEM
activesupport (>= 3.0)
cocaine (0.5.3)
climate_control (>= 0.0.3, < 1.0)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
Expand Down Expand Up @@ -170,10 +174,11 @@ PLATFORMS
DEPENDENCIES
acts_as_follower
aws-sdk (~> 1.5.7)
better_errors
bootstrap-sass (~> 3.0.3.0)
bootstrap-will_paginate
coffee-rails (~> 4.0.0)
devise (~> 3.1.1)
devise
faker (~> 1.2.0)
jbuilder (= 1.2)
jquery-rails
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable, #:recoverable,
devise :database_authenticatable, :registerable, :recoverable,
:rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :provider, :uid, :as => [:default, :admin]

Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/shared/_links.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<% end -%>

<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
<%= link_to "Forgot your password?", new_user_password_path(resource_name) %><br />
<% end -%>

<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
Expand Down

0 comments on commit a6043b7

Please sign in to comment.