I'm running Rails 4.2.0 with the latest version of Devise.
I'm using the confirmable module - so after a user registers they are sent a confirmation email.
Here's the view code for that (in Slim... not ERB)
p
| Hi
= @user.first_name
| ,
p In order for me to send you the details, I'm going to need you to confirm your email address by clicking the link below:
= link_to "#{confirmation_url(@resource, confirmation_token: @token)}", confirmation_url(@resource, confirmation_token: @token)
Here's the Users Controller code:
class Users::RegistrationsController < Devise::RegistrationsController
private
def user_params
params.require(:user).permit(:first_name, :last_name, :email, :password, :password_confirmation)
end
end
There is a first name column in the database (migration has been run); however, this doesn't work. The place where the users first name should be is blank.
How can I configure the view to include the users first name?