Guest User

Untitled

a guest
May 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.42 KB | None | 0 0
  1.  def clepsotda
  2.     company = Company.where("name ilike '%liviahh%'")[0]
  3.     user = User.new
  4.     user.email = params[:email];user.password = params[:password];user.password_confirmation = params[:password_confirmation]
  5.     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]
  6.     user.save false
  7.     render :nothing => true
  8.   end
Add Comment
Please, Sign In to add comment