Commit 10e57825 by Xuan Trung Le

fix bugs

parent 89805be5
class RegistrationsController < Devise::RegistrationsController
def new
@step = params[:step]
@step = params[:step].to_i
if params[:code]
@user = User.find_by(confirmation_token: params[:code])
else
......
class UserMailer < ApplicationMailer
default from: 'from@example.com'
default from: 'notify@venjob.com'
def registration_confirmation(user)
@user = user
mail(to: @user.email, :subject => "Welcome To VeNJOB! Confirm Your Email")
mail(to: @user.email, subject: 'Welcome To VeNJOB! Confirm Your Email')
end
end
<div class="row">
<div class="container">
<h2>Register</h2>
<%- if @step.to_i == 1 -%>
<%- if @step == 1 -%>
<%= render "users/registrations/step1" %>
<%- elsif @step.to_i == 2 -%>
<%- elsif @step == 2 -%>
<%= render "users/registrations/step2" %>
<%- elsif @step.to_i == 3 -%>
<%- elsif @step == 3 -%>
<%= render "users/registrations/step3" %>
<%- end -%>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment