13 lines
244 B
Ruby
13 lines
244 B
Ruby
|
class UserController < ApplicationController
|
||
|
def register
|
||
|
|
||
|
data = Invite.where(:email => params[:email], :code => params[:code]).first
|
||
|
|
||
|
unless data.nil?
|
||
|
@code = data.code
|
||
|
else
|
||
|
redirect_to '/'
|
||
|
end
|
||
|
end
|
||
|
end
|