Rails Tutorial å ¨é¨èªãã ã®ã§ææ³ã¨ãã¾ã¨ãã¨ã
Ruby on Rails ãã¥ã¼ããªã¢ã« ã1ã¶æã»ã©ããã¦å
¨ã¦èªã¿çµããã®ã§ï¼å
容ãç°¡åã«ã¾ã¨ãã¦ããã¾ãï¼
ãã¥ã¼ããªã¢ã«ãèªãéã«åèã«ãããã¼ã¸ãã¾ã¨ãã¦ãããã®ã§ï¼ããããèªã¾ããæ¹ã®åèã«ãªãã°å¹¸ãã§ãï¼
Ruby on Rails ãã¥ã¼ããªã¢ã« ã¨ã¯ï¼
Ruby on Rails ãã¥ã¼ããªã¢ã«ä»¥ä¸ã®ãã¼ã¸ããè¦ããã¨ãã§ãã¾ãï¼
ä¸è¨ã®ãã¼ã¸ãå¼ç¨ããã¦ãããã¨ï¼
SNSã®éçºãé¡æã«ããç¡æã®å¤§åãã¥ã¼ããªã¢ã«ã§ãã¦ã§ããµã¼ãã¹ã®éçºããå ¬éã¾ã§ã®æµããå®ä¾ãéãã¦å¦ã¹ã¾ãã
ã¨ãããã®ã§ãï¼
ã¡ãªã¿ã«ãRuby on Railsãã¨ã¯ï¼Rubyã§å®è£
ãããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã®ãã¨ã§ãï¼
æåã©ããã ã¨ï¼Twitterï¼GitHubï¼ã¯ãã¯ããããªã©ãå®éã«å©ç¨ããã¦ããï¼æ¬æ ¼çãªWebãµã¼ãã¹ã®éçºã«ãç¨ãããã¨ãã§ãã¾ãï¼
ãã®ãã¥ã¼ããªã¢ã«ã§ã¯Twitterãã©ããå®è£
ãã¾ãï¼
ãã©ãã¨è¨ã£ã¦ãï¼çµæ§æ¬æ ¼çãªSNSã§ãï¼
ã¦ã¼ã¶ã¼ç»é²ï¼ãã°ã¤ã³ï¼ãã¤ã¯ãã½ããã®æ稿ï¼ã¦ã¼ã¶ã¼ã®ãã©ãã¼ãªã©ã¯ãã¡ããï¼ã»ãã¥ãªãã£ã«é¢ãããã¨ãï¼Gitãç¨ããéçºææ³ï¼ãã¹ãé§åéçºãªã©ï¼ããªãçã沢山ãªå
容ã«ãªã£ã¦ãã¾ãï¼
æå¾ã¾ã§ããçµããã¨ä»¥ä¸ã®ãããªã¢ããªãå®æãã¾ãï¼
https://shun-rails-sample.herokuapp.com/
ï¼è²ã
ããã£ã¦é ãã¦æ§ãã¾ãããï¼ããããã¯ããã¦ä¸ããm(__)mï¼
ã¡ãªã¿ã«å®æããã¢ããªã®ã³ã¼ãã¯ä»¥ä¸ã«ç½®ãã¦ããã¾ãï¼
ãã¥ã¼ããªã¢ã«ã¨è¨ãã¤ã¤ï¼æ·å±
ã¯å°ãé«ãããªã¨æãã¾ãï¼
å§ãããªãå°ãè¦æãæã£ãã»ããããããããã¾ããï¼ã¾ãã¾ãéããã§ã^^;
ãã®åï¼å¾ããããã®ãããªã大ããã§ãï¼
æ¬æ ¼çãªWebã¢ããªãéçºããããã®ãã¦ãã¦ãä¸éãç¥ããã¨ãã§ãã¾ãï¼
ãç¥ããã強調ãã¾ãããï¼ãã®ãã¥ã¼ããªã¢ã«ã1åããçµããã ãã§æ¬æ ¼çãªWebã¢ããªãå®éã«éçºã§ããããã«ã¯ãªãã¾ããï¼
1åãã£ãç¨åº¦ã§Railsã使ãããªããããã«ã¯ãªãã¾ãããï¼ãã¹ãé§åéçºãã©ããããã®ãã¯åãã£ããã©çµå±ãã¹ãã£ã¦ã©ããã£ã¦æ¸ãã®ï¼ã¿ãããªæãã«ãªãã¾ãï¼
ä½ããã¬ãã£ããªãã¨ã°ã£ããæ¸ããæ°ããã¾ããï¼æéã¨è¦æããããªãä¸åº¦èªç ´ãããã¨ãæ¬å½ã«ãªã¹ã¹ã¡ãã¾ãï¼
以ä¸ï¼åç« ã§å¤§äºã ã¨æã£ãé¨åãè¶
ç°¡åã«ã§ããã¾ã¨ãã¾ããï¼
ã¾ãï¼åããã¥ã¼ããªã¢ã«ãé²ããä¸ã§åèããããã¼ã¸ãããã¦ããã¾ãï¼
第1ç« ã¼ããããããã¤ã¾ã§
- Ruby on Rails ã®ã¤ã³ã¹ãã¼ã«
- Rails ã¢ããªã®ãã£ã¬ã¯ããªæ§é
- Rails ã¢ã㪠(first_app) ãåãã
rails
ã³ãã³ã- Bundler
- Model-View-Controller (MVC)
- Git ã®ä½¿ãæ¹
- Heroku ã¸ã®ãããã¤æ¹æ³
第2ç« ãã¢ã¢ããªã±ã¼ã·ã§ã³
- demo_app ã®å®è£
- scaffold
rake
ã³ãã³ã- ãã¼ã¿ãã¼ã¹ã® migrate
- REST ã¢ã¼ããã¯ãã£
- Rails ã® controller 㨠model ãã¡ã¤ã«
第3ç« ã»ã¼éçãªãã¼ã¸ã®ä½æ
- éçãã¼ã¸ã®ä½æ
generate
ã³ãã³ã- ãã¹ãé§åéçº (RSpec, Capybara)
- Rails ã® view ãã¡ã¤ã« (.html.erb)
第4ç« Rails風å³ã®Ruby
- Rails ã¢ããªéçºã«å¿ è¦ãª Ruby è¨èªã®ç¥è
rails console
ã³ãã³ã
第5ç« ã¬ã¤ã¢ã¦ããä½æãã
- Bootstrap
- ãã¼ã·ã£ã« (partial)
- Rails ã®ã«ã¼ãã£ã³ã°
- ååä»ãã«ã¼ã
- Asset Pipeline
- Sass
第6ç« ã¦ã¼ã¶ã¼ã®ã¢ãã«ãä½æãã
- ã¢ãã«ã®ä½æ
- Rails ã®ãã°ã¤ã³ã¨èªè¨¼ã®ã·ã¹ãã
- Active Record
- ã¢ãã«ã®ããªãã¼ã·ã§ã³ (validation)
has_secure_password
第7ç« ã¦ã¼ã¶ã¼ç»é²
- view ããã®æ å ±éä¿¡
debug()
ã¡ã½ãã- Factory Girl
form_for
ãã«ãã¼- Strong Parameters
pluralize
ã¡ã½ãã- flash
第8ç« ãµã¤ã³ã¤ã³ããµã¤ã³ã¢ã¦ã
- ã»ãã·ã§ã³
- HTTP ã¯ã¹ãã¼ãã¬ã¹
- ã»ãã·ã§ã³ãã¤ã¸ã£ãã¯
SecureRandom.urlsafe_base64
ã¡ã½ããcookies
ã¦ã¼ãã£ãªãã£- æ¯èé§åéçº (Cucumber)
第9ç« ã¦ã¼ã¶ã¼ã®æ´æ°ã»è¡¨ç¤ºã»åé¤
- ãã¼ã¸ãã¼ã·ã§ã³
- ãã¬ã³ããªã¼ãã©ã¯ã¼ãã£ã³ã°
- Faker
第10ç« ã¦ã¼ã¶ã¼ã®ãã¤ã¯ããã¹ã
- ã¢ãã«ã®é¢é£ä»ã (
has_many
,belongs_to
) - SQLã¤ã³ã¸ã§ã¯ã·ã§ã³
第11ç« ã¦ã¼ã¶ã¼ããã©ãã¼ãã
- Ajax
- ãµãã»ã¬ã¯ã (subselect)
- RailsCastsã¢ã¼ã«ã¤ã
åèãã¼ã¸
â Rails Tutorial ã®é²ãæ¹ã«ã¤ãã¦ï¼å§ããåã«èªãã§ãããã¨ããªã¹ã¹ã¡ãã¾ãï¼
http://yaimapp.com/tagged/tutorial â åç« æ«ã®æ¼ç¿ã®è§£çã¨è§£èª¬ï¼
â Rails Tutorial ãã£ã¦ã¦è©°ã¾ããã¡ãªã¨ãããã¾ã¨ãã¦ããï¼
â ã¿ã¤ãã«ã®éãï¼å®éã«è©°ã¾ãã¾ããâ¦