Rails 101
Rails 101
關於本書
本書停止維護與販售,已改版成線上免費課程
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
Authors have earned$9,883,643writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
Leanpub 無條件、無風險的 100% 滿意保證
從付款之後的 45 天內,只要點個兩下,你就可以完成退書並且取回先前支付的全數金額。退書是採用人工作業,因此可能需要花幾天的時間才能完成整個程序。
See full terms.
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
Top Books
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Functional Design and Architecture
Alexander GraninSoftware Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
I am a Software Engineer and I am in Charge
Alexis Monville and Michael DoyleI am a Software Engineer and I am in Charge is a real-world, practical book that helps you increase your impact and satisfaction at work no matter who you work with.
In the book, we will follow Sandrine, a fictional character who learns to think in a new way enabling her to take a different course of action.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Invest In Digital Health - The Medical Futurist's Guide
Dr. Bertalan MeskoArtificial Intelligence and Digital Health are booming. In this book, we explain why now it's a good time to invest in Digital Health and give recommendations on where to invest by looking at the top 24 technological trends we find the most promising.
The Hundred-Page Machine Learning Book
Andriy BurkovEverything you really need to know in Machine Learning in a hundred pages.
Mastering STM32
Carmine NovielloWith more than 600 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the first guide around that introduces the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #3
The Future of Digital Health
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy and how technology giants such as Amazon or Google want to conquer... - #4
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #5
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #6
"The C++ Standard Library" and "Concurrency with Modern C++"
2 Books
Get my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library... - #7
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #8
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #9
Programming with Ease
3 Books
Alle drei Bände der Serie Programming with Ease in einem Paket. Darin findest du alles, was ich dir zu den wichtigsten Phasen der Softwareentwicklung im Hinblick auf Clean Code Development für langfristig hohe Produktivität sagen kann.Im Band Slicing findest du die Anforderungsanalyse im Rahmen eines iterativ-inkrementellen Vorgehensmodells aus... - #10
Vagrant Ansible
2 Books
Unveil the power of Ansible and Vagrant with this bundle at a special price. You'll have everything you need to get started with Vagrant - learn the basics and how to create your virtual development environments, using Ansible as provisioner! About Vagrant Cookbook Vagrant Cookbook is a complete guide to get started with Vagrant and create your...