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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50b02-4490f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50b02-4490f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?