Leanpub Header

Skip to main content

Rails 101

Free With Membership

With Membership

Free!

$12.95

You pay

$12.95

Author earns

$10.36
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
5,473
Readers
About

About

About the Book

本書停止維護與販售,已改版成線上免費課程

http://growth.xdite.net/courses/rails-101

Share this book

Author

About the Author

xdite

Contents

Table of Contents

  • 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

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, 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) and EPUB (for phones, tablets and 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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub