Build beautiful, usable products faster. Material Design is an adaptable systemâbacked by open-source codeâthat helps teams build high quality digital experiences.
devise ã¨ã¯ Rails ã§ãã°ã¤ã³èªè¨¼ç®¡çãè¡ãéã®ã¡ã¸ã£ã¼ãª Gem ã 以ä¸ã®10åã®ã¢ã¸ã¥ã¼ã«ãããªãã Database Authenticatable: DB ã«ä¿åãããã¹ã¯ã¼ãã®æå·åãã»ã¼å¿ é ã®ã¢ã¸ã¥ã¼ã«ã POST ãªã¯ã¨ã¹ãã Basic èªè¨¼ã§ä½¿ãããã Omniauthable: OmniAuth ãµãã¼ãã®ããã®ã¢ã¸ã¥ã¼ã«ã Twitter ãªã©ã®å¤é¨ãµã¼ãã¹ã®ã¢ã«ã¦ã³ãã§ã¦ã¼ã¶ã¼ç»é²ããããå ´åã«è¿½å ããã Confirmable: ã¢ã«ã¦ã³ãä½æã®éã®ã¡ã¼ã«èªè¨¼ã¢ã¸ã¥ã¼ã«ã ã¡ã¼ã«ä¸ã®ãªã³ã¯ãã¯ãªãã¯ããªãã¨ãã°ã¤ã³ã§ããªãããã«ã§ããã Recoverable: ãã¹ã¯ã¼ããªã»ãããå¯è½ã«ãªãã Registerable: ãµã¤ã³ã¢ããå¦çãå¯è½ã«ãªãã Rememberable: ã¯ããã¼ã«ä¿åããããã¼ã¯ã³ã®çæã»åé¤ãè¡ãã Trackable
Deviseã使ã£ã¦ããRailsã¢ããªã«2段éèªè¨¼ãå ¥ããæ©ä¼ããã£ãã 調ã¹ã¦ã¿ãã¨ãdevise-two-factorããã使ããã¦ããããã ã GitLabããã®gemãçµã¿è¾¼ãã§ããã ãã®gemãå¬ãããã¨ã«demoã¢ããªã¾ã§ç¨æãã¦ããã¦ããã ãã ããã¡ãã£ã¨ä¸è¬çãªæåã¨ã¯éãâ¦ã ããããæ©è½ãç´¹ä»ããããã«ä¸çªã·ã³ãã«ãªæ§æã«ãã¦ããã®ã ã¨ã¯æããã©ã ãã®ã¾ã¾å°å ¥ããã®ã¯ã¡ãã£ã¨å³ããã ID/PASS/èªè¨¼ã³ã¼ããä¸åº¦ã«å ¥åããããã«ãªã£ã¦ãããã 2段éèªè¨¼æå¹åãã¿ã³ãæ¼ãã¨åçç¡ç¨ã§æå¹åããããã ããã§ãDeviseã使ã£ãRailsã¢ããªã«ä¸è¬çãªæåã®2段éèªè¨¼ãå°å ¥ããéç¨ãæ¸ãã¦ããã å®è£ ã«ããã£ã¦ã¯ãGitLabã®ã³ã¼ããåèã«ããã ç®æãã¨ãã ID/PASSã¨èªè¨¼ã³ã¼ãã®å ¥åã2段éã« ãID/PASSãå ¥å -> èªè¨¼ã³ã¼ããå ¥åãã®
Deviseã使ã£ã¦ã¦ã¼ã¶ã¼èªè¨¼æ©è½ãä½ã£ãã¨ãã«ãããã¡ãã£ã¨ããããããã®æ¹æ³ã¡ã¢ãDeviseã¯æ®éã®å®è£ ããã¨ãã°ã¤ã³å¾ã¯/ã«ãªãã¤ã¬ã¯ããããããããå¥ã®URLã«ããæ¹æ³ã¯ããã«æ¸ããã Deviseã§ãã°ã¤ã³å¾ã®URLãå¤ããæ¹æ³ - PILOG ã§ã¯ããã°ã¤ã³ã«å¿ è¦ãªãã¼ã¸ã®URLã«ç´æ¥ã¢ã¯ã»ã¹ããã£ãã¨ãã¯ã©ãããããæµãã¨ãã¦ã¯ãããªãã®ãæã¾ããã ãã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ã«ã¢ã¯ã»ã¹ããã ã¦ã¼ã¶ã¼ã«ãã°ã¤ã³ãã©ã¼ã ãè¦ãã ãã°ã¤ã³ãå®äºãããæåã«ã¢ã¯ã»ã¹ããURLã¸ãªãã¤ã¬ã¯ã ãã°ã¤ã³ãå¿ è¦ãã©ããã¯ã³ã³ããã¼ã©ã¬ãã«ã§å¶å¾¡ãããããã¯ã¾ããããããã¤ã # application_controller.rb class ApplicationController < ActionController::Base private def sign_in_requi
ã¯ããã« ã¢ããªã®ç®¡çç»é¢ã¯ã¦ã¼ã¶ã¼ã«è¦ããªããããRails ãã©ã°ã¤ã³ã§ãµã¯ãã¨ä½ã£ã¦ãã¾ããããRails ã§ç®¡çç»é¢ãçæã§ãããã©ã°ã¤ã³ã¯ TypusãActiveAdmin ã¨ããããã©ãå人çã« RailsAdmin ã§æ±ºã¾ãããªãã£ã¦æã£ã¦ãã RailsAdmin ã®ä½ãããã RailsAdmin ã§æ°ã«å ¥ã£ã¦ããã®ã¯ RailsEngine ã¨ãã¦å®è£ ãã¦ããã®ã§ããã¦ã³ãããã ãã§çµã¿è¾¼ãã æ°ãã追å ããã¢ãã«ãä½ãããã« RailsAdmin ã§ç®¡çã§ãã ã®2ç¹ãç¹ã«ãã¢ãã«ãå¢ãããã³ã«ã¸ã§ãã¬ã¼ã¿ãå®è¡ãã¦ç®¡çç»é¢ç¨ã®ã¯ã©ã¹ãçæããªãã¦ãããã¨ããã®ã¯ãã¤ã³ãé«ãã RailsAdmin ã®å°å ¥ã¯ README ã®éãã«ããã°ç°¡å â¦ã¨æã£ã¦ãããã©ã2æ¥ã»ã©ããã£ã¦ãã¾ã£ãã RailsAdmin ã§ã¯èªè¨¼ã« AdminUser ã使ããªãï¼ - pr
調ã¹ãå½æè¦ã¤ãããã¨ãã§ããªãã£ãã®ã§æ®æ®µã¯ Typus ã使ã£ã¦ãããã ãã©ãRails 3.2 ã§åããªãã£ã½ãã®ã¨ãMongoid ã¨çµã¿åããã¦ä½¿ã£ã¦ã¿ããã¨æã£ãã Typus ã¯ã¦ã¼ã¶ã¼DBã ActiveRecord ãå©ç¨ããåæã«ãªã£ã¦ã ã®ã«ã¬ãã¯ãªã㦠RailsAdmin ã試ãã¦ã¿ãã ã¨ããããã§ä»¥ä¸ã¯ç°¡åãªæ¯è¼ã Typushttp://www.typuscmf.com/ Model ã«å¯¾å¿ãã admin ç¨ã® Controller ãä½ãå¿ è¦ãããå ã㦠Model ã«å¯¾ããç·¨é権éãèªã¿æ¸ãã§ãã field ã YAML ã§å®ç¾©ããå¿ è¦ãããYAML ãä½ãã¨ãããã¨ããåããã°ã«ã¹ã¿ãã¤ãºã¯æ¥½ã«ã§ããããçã® Controller ãã§ããã®ã§ããããããã°åããå¤ããããã¨ãããã¨ãç°¡åã«æ³åã§ããã æéã¯å¤ããã©ã©ãããã°ã«ã¹ã¿ãã¤ãºã§ããã
Devise ã® README ã¯æåä¸å¯§ã ãããã®åã¯ã½é·ãã®ã§ãèªãã®ã«ç²ãããå¾ç¶ã®ããã«è¨³ãã¦ã¿ããã¨ã«ãããç¡ä¿è¨¼ãOAuth2 ã®é¨åã¯é£ã°ãããé·ãããå·®ãè¿«ã£ãã訳ãã¾ãã Devise Devise 㯠Warden ããã¼ã¹ã«ãã Rails ã®ããã®ãã¬ãã·ãã«ãªèªè¨¼ã½ãªã¥ã¼ã·ã§ã³ã§ãã Rackãã¼ã¹ Rails ã¨ã³ã¸ã³ã«åºã¥ããå®å ¨ãª MVC ã½ãªã¥ã¼ã·ã§ã³ 1åã®èªè¨¼ã§è¤æ°ã®ãã¼ã«ãæããããã¨ãã§ãã¾ã ããªããå¿ è¦ãªé¨åã ã使ããã¢ã¸ã¥ã©ã¼æ§é ã¨ããã³ã³ã»ããã«åºã¥ãã¦ãã¾ã 以ä¸ã®11ã®ã¢ã¸ã¥ã¼ã«ã§æ§æããã¦ãã¾ãï¼ Database Authenticatable ã¦ã¼ã¶ã¼ããµã¤ã³ã¤ã³ããæã«èªè¨¼ããããã«ãã¹ã¯ã¼ãããã¼ã¿ãã¼ã¹ã«æå·åãä¿åãã¾ãããã®èªè¨¼ã¯ POST ãªã¯ã¨ã¹ãã¾ãã¯Basicèªè¨¼ãéãã¦è¡ããã¾ãã Token Authenti
210: Deviseã®ã«ã¹ã¿ãã¤ãºÂ (view original Railscast) Other translations: Other formats: Written by Naomi Fujimoto ååã®ã¨ãã½ã¼ã[åç»ãè¦ã, èªã]ã§ãRailsã¢ããªã±ã¼ã·ã§ã³ã§ã¦ã¼ã¶èªè¨¼ãè¡ãããã«deviseãè¨å®ããæ¹æ³ãç´¹ä»ãã¾ãããä»åã¯ãååããå¼ãç¶ãã¦deviseãã«ã¹ã¿ãã¤ãºããæ¹æ³ãè¦ã¦ããã¾ãã ååã¨åãã¢ããªã±ã¼ã·ã§ã³ã使ãã®ã§ãç»é²ããã°ã¤ã³ããã°ã¢ã¦ãã®ãã¼ã¸ãããããã§ã«ããç¨åº¦ã®èªè¨¼ã®ããã¿ãã§ãã¦ãã¾ãã ã¢ã¯ã»ã¹ãå¶éãã 次ã®ã¹ãããã§ã¯ããã°ã¤ã³ã¦ã¼ã¶ã®ã¿ã«ç¹å®ã®ã¢ã¯ã·ã§ã³ã¸ã®ã¢ã¯ã»ã¹ãå¶éãã¾ãããã°ã¤ã³ããã¦ã¼ã¶ã ããããã¸ã§ã¯ããä½æãç·¨éãåé¤ã§ããããã«ãã¾ãããã®ããã«ProjectsControllerãä¿®æ£ãbefore_fi
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}