character is '^]'. GET / HTTP/1.1 Host: cookpad.com HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=iso-8859-1 Date: Wed, 22 Feb 2017 07:29:24 GMT Location: https://cookpad.com/ Server: Apache Content-Length: 228 Connection: keep-alive <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> )551
+ resources :memos # For details on the DSL available within this file, see http://guides.rubyon routing.html end 3BJMT3&45ͱ͍͏ߟ͑ํʹͱ͍͍ͮͯΔ ‣ 3&QSFTFOUBUJPOBM4UBUF5SBOTGFS ‣ )551ϝιου Ͳ͏͍ͨ͠ ͱύε ΫΤϦ ͳʹΛ Λͱ͍͏Έ߹ΘͤΛɺ Ϧιʔεͷૢ࡞ɺͱͯ͠நԽ͠ɺΞʔΩςΫνϟͷத৺ʹஔ͘ߟ͑ํ ‣ ͦͷϦιʔεͷૢ࡞ΛͬͯɺΞϓϦέʔγϣϯͷॲཧΛ࣮ݱ͢Δɻ ‣ ࠓճɺѻ͏ϝϞNFNPΛɺͦͷ··Ϧιʔεͱͨ͠ɻ
= User.find_by(id: params[:user_id]) if user reset_session session[:user_id] = user.id redirect_to root_path, notice: 'Login successed' else redirect_to root_path, alert: 'Login failed' end end end ճྫ
private def logged_in? current_user.present? end def current_user if session[:user_id] @current_user ||= User.find(session[:user_id]) end end end ճྫϝιουԽͯ͠