Slideshare
http://www.slideshare.net/yasulab/presentations
https://ide.c9.io/yasulab/rails-tutorial
https://rails-tutorial-yasulab.c9users.io/
URL “Collaborate” → “Group Chat”
• Sessions
• Session
• Session new / create Session $ rails routes ✅
8.1. (sessions )
•
• /
• (authenticate) user && user.authenticate(…)
🔧
• 🉑 current_user : etc …
:
• 👤 current_user nil .- log out - log in
• ✅
: current_user
• session.delete(:user_id) @current_user = nil
• log_out :DELTE 📨→ Sessions → destroy
• ✅
log_out
• Test→Commit→Merge→Push 💨
…
⚠ Heroku push !
🔧 DB
• Heroku migrate console 💻 ☁$ heroku run rails db:migrate $ heroku run console --sandbox
Action Controller http://railsguides.jp/action_controller_overview.html
Action View http://railsguides.jp/form_helpers.html
Rails http://railsguides.jp/security.html
• :)
• : http://railstutorial.jp/seminars
• :) ,
.
• , .