Wrong number of arguments (given 1, expected 0) ruby on rails

when I finish typing my password, press submit screenshot 2018-08-21 4.53.10 pm
clipboard.png

2018-08-21 4.54.06
clipboard.png
this is the code I think is wrong
class AdminController < ApplicationController
def log_in

  @note = session[:note]

end

def log_out

  session[:note]=nil

end

def create_session

  user=User.find_by(email:params[:email],password:encryption(params[:password]))
  if user
  session[:note]=user.name
  end 
  redirect_to action: :log_in

end



def encryption
    return "aaa"+password
    
end 

end

Apr.29,2021

Change

to

def encryption(password)
    return "aaa"+password
    
end
Menu