ã³ã³ããã¼ã©å ¨ä½ã®å ±æã®ã¡ã½ããã追å ãã ç°ãªãã³ã³ããã¼ã©éã§å ±éã«ä½¿ç¨ããã¡ã½ããã¯, ApplicationControllerã¯ã©ã¹ã§å®ç¾©ãã¾ãã åã³ã³ããã¼ã©ã¯, ååã¨ãã¦ApplicationControllerãç¶æ¿ãã¦ããã®ã§ãã(app/controllers/application.rb)ã§å®ç¾©ããã°ã©ã®ã³ã³ããã¼ã©ã§ã使ãã¾ãã ãªã«ãããã®ã¢ããªã±ã¼ã·ã§ã³ã§ã®ã¢ã«ã¦ã³ã, ãã°ã¤ã³æ å ±ãªãããå¤å¥ããã¨ãã«ä½¿ãã¨ä¾¿å©ã§ãã ä¾ï¼ã»ãã·ã§ã³ã® :user_id ããã¨ã«ãã°ã¤ã³ãã¦ãã¦ã¼ã¶æ å ±ãåå¾ããcurrent_userã¡ã½ãããä½ãã¨ãããªæãã§ãã class ApplicationController < ActionController::Base protect_from_forgery def current_user @current_use
{{#tags}}- {{label}}
{{/tags}}