Skip to Content
Rails 4 in Action
book

Rails 4 in Action

by Yehuda Katz, Rebecca Skinner, Stephen Klabnik, Ryan Bigg
August 2015
Intermediate to advanced content levelIntermediate to advanced
576 pages
18h 13m
English
Manning Publications
Content preview from Rails 4 in Action

Chapter 4. Oh, CRUD!

This chapter covers

  • Building read, update, and delete functionality for projects
  • Creating test data with Factory Girl
  • Handling errors and rescuing exceptions
  • Working with Sass and the asset pipeline
  • Styling the application using Bootstrap
  • Simplifying form markup with Simple Form

In chapter 3 you began writing stories for a CRUD (create, read, update, delete) interface for your Project model. Here you’ll continue in that vein, beginning with writing a story for the R part of CRUD: reading. We often refer to reading as viewing in this and future chapters—we mean the same thing, but sometimes viewing is a better word.

In the remainder of the chapter, you’ll round out the CRUD interface for projects, providing your ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Rails Crash Course

Rails Crash Course

Anthony Lewis

Publisher Resources

ISBN: 9781617291098Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link