kurenn / market_place_api

The API on Rails tutorial application
142 stars 68 forks source link

Listing 5.6 syntax issue (possibly rails 5) failing session login #68

Closed mikejagmin closed 8 years ago

mikejagmin commented 8 years ago

def create user_password = params[:session][:password] user_email = params[:session][:email]

are returning nil for me. Syntax i needed to use to is:

user_password = session[:password] user_email = session[:email]

Hope it saves someone else the headache I had and maybe contributes to the rails 5 update