Rails 101
Rails 101
关于本书
本書停止維護與販售,已改版成線上免費課程
书籍目录
- CHANGELOG
-
作者介紹
- Logdown
- 如何排除障礙
- 本書使用方法
-
學習 Rails 前置所需要的技能
- Git 學習資源
- 編輯器學習資源
- Linux Command Line 學習資源
-
Ruby on Rails 安裝最佳實踐
- 安裝步驟
-
練習作業 0 - Hello World
- 吸收觀念
- 建立 Hello World 頁面
- Rails 的 Routing
-
練習作業 1 - 建立 Group - CRUD 與 RESTful
- Ch 1.0 CRUD
- Ch 1.0 (補充) CRUD 懶人大法 Scaffold
- Ch 1.0 (補充) 建站懶人包 Bootstrappers
- Ch 1.1 建立 Group
- Ch 1.1 (補充) RESTful
- Ch 1.1.1 建立 Groups Controller 裡的 index
- Ch 1.1.2 建立 Groups Controller 裡的 show
- Ch 1.1.3 建立 Groups Controller 裡的 new
- Ch 1.1.4 建立 Groups Controller 裡的 create
- Ch 1.1.4 (補充) Strong Parameters
- Ch 1.1.5 建立 Groups Controller 裡的 edit
- Ch 1.1.6 建立 Groups Controller 裡的 update
- Ch 1.1.7 建立 Groups Controller 裡的 destroy
- 補充章節:RESTful on Rails
- 補充章節:More about RESTful on Rails
-
練習作業 2 - 在 Group 裡面發表文章 - 雙層 RESTFul
- Ch 2.1 建立 Post
- Ch 2.1.1 在 Groups controller 的 show 裡面撈出相關的 Post
- Ch 2.1.2 建立 Posts Controller 裡的 new
- Ch 2.1.3 建立 Posts Controller 裡的 create
- Ch 2.1.4 建立 Posts Controller 裡的 edit
- Ch 2.1.5 建立 Posts Controller 裡的 update
- Ch 2.1.6 建立 Posts Controller 裡的 destroy
- Ch 2.1.7 以 before_action 整理重複的程式碼
-
練習作業 3 - 為 Group 與 Post 加入使用者機制
- Ch 3.0 devise 與 Rails 4
- Ch 3.1 對需要登入才能使用的 Action 加入限制
- Ch 3.2 讓 Group 與 User 產生關聯:
- Ch 3.3 讓 Post 與 User 產生關聯:
-
練習作業 4 - User 可以加入、退出社團
- Ch 4.1 使用者必須要是這個社團的成員才能發表文章
- Ch 4.1.2 model method 與 after create
- Ch 4.1.3 join 與 quit action
-
練習作業 5 - 實作簡單的 Account 後台機制
- Ch 5.1 User 必須要在使用者後台可以看到自己參加的 Group
- Ch 5.2 User 必須要在使用者後台可以看到自己發表的文章
- Ch 5.3 文章列表的排序要以發表時間 DESC 排序
- Ch 5.4 Group 的排序要以文章數量的熱門度 DESC 排序
-
練習作業 6 - Refactor code
- Ch 6.1 使用系統 helper 整理 code
- Ch 6.2 自己撰寫的 helper 包裝 html
- Ch 6.3 使用 partial 整理 html
- Ch 6.4 使用 scope 整理 query
-
練習作業 7 - 撰寫自動化 Rake 以及 db:seed
- Ch 7.1 Rake
-
練習作業 8 - 將專案 deploy 到租來的 VPS
- Ch 8.1 佈署 Rails Production 所需要的環境
- Ch 8.2 Capistrano
- Ch 8.3 Capistrano 常用指令
- Ch 8.4 Deploy with Rails 4
-
補充章節: Asset Pipeline
- SCSS
- CoffeeScript
- Asset Pipeline 的架構
- Rails 4 with Asset Pipeline
- 總複習
-
推薦書單
- 初階基礎網頁設計
- 初階 Ruby on Rails
- 測試 Testing
- 進階基礎網頁設計
- 重構 Ruby / Rails code
- 寫出更漂亮的 Ruby code
- Object-oriend Design in Ruby on Rails
- 如何更瞭解 Rails 底層
-
附錄
- Resources of latest Ruby
Leanpub 无条件、无风险的 100% 保证满意
從付款之後的 60 天內,只要點個兩下,你就可以完成退書並且取回先前支付的全數金額。退書是採用人工作業,因此可能需要花幾天的時間才能完成整個程序。
See full terms.
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them