Skip to main content

Working with a Database: Active Record

  • Chapter
  • First Online:
  • 1227 Accesses

Abstract

Earlier, you took a whirlwind tour through creating a basic Rails application using the built-in scaffolding feature. You sketched out a basic model for a blog application and created the project databases. You used the built-in web server to run the application locally and practiced adding and managing articles from the web browser. This chapter will take a more in-depth look at how things work, starting with what is arguably the most important part of Rails: Active Record.

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 EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Adam Gamble

About this chapter

Cite this chapter

Gamble, A., Carneiro, C., Barazi, R.A. (2013). Working with a Database: Active Record. In: Beginning Rails 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6035-6_5

Download citation

Publish with us

Policies and ethics