Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Scaffold

David Alejandro
David Alejandro
856 Points

Did the scaffold do all that?

Wow... how did we create that little form with title and everything? When... what... Did the scaffold do all that?

2 Answers

Tobias Helmrich
Tobias Helmrich
31,603 Points

Hey there David,

yes, scaffolding is a quick way to get the basic structure of a Rails application. As far as I understand it a scaffold creates everything you need to get started for you like the Model, Views, Controllers and a database migration. However the created application you can see in your browser is more of an example, it just shows you that there is a working CRUD (Create, Read, Update, Delete) structure and it's not more than a starting point. So probably you'll want to start from scratch with the scaffold as a base and not use the site the scaffold created as your own application.

And unfortunately I have to disagree with Jason, while I absolutely agree and recommend that you learn Ruby before Rails (if you haven't done so already) I think that scaffolding itself has nothing to do with the language Ruby but more with the framework Ruby on Rails so I don't think you'll learn what scaffolding is and how it works in the Ruby courses.

I hope that helps!

jason chan
jason chan
31,009 Points

https://teamtreehouse.com/tracks/learn-ruby

You better start with this course before you move to ruby on rails. rails is framework. Basically a huge written library that lets you use methods to create an app.