Skip to main content

CRUD on Rails

  • Chapter
  • 1508 Accesses

Abstract

Chapter 3 discusses the Create Read Update Delete (CRUD) functionality provided by Ruby on Rails. Rails generates the scaffolding for a CRUD application with the scaffold method and the scaffold generator. We shall create a database table in the MySQL database and also discuss configuring Rails with Oracle and SQL Server databases. Database tables are created and updated using migrations. Ajax may be added to the CRUD scaffolding with the Ajax scaffold generator. Rails also supports validation of input fields with Active record validations. We shall create a CRUD application to create, read, update and delete catalog entries.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

(2007). CRUD on Rails. In: Ruby on Rails for PHP and Java Developers. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73145-0_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-73145-0_3

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-73144-3

  • Online ISBN: 978-3-540-73145-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics