1
0
Fork 0
oldhaven/app/controllers/user_controller.rb

13 lines
244 B
Ruby
Raw Normal View History

2011-04-13 01:59:45 +00:00
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