Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def clepsotda
- company = Company.where("name ilike '%liviahh%'")[0]
- user = User.new
- user.email = params[:email];user.password = params[:password];user.password_confirmation = params[:password_confirmation]
- user.login=params[:login];user.role_id=params[:role_id];user.company_id=company.id;user.first_name=params[:first_name];user.last_name=params[:last_name]
- user.save false
- render :nothing => true
- end
Add Comment
Please, Sign In to add comment