Quick Ruby application with Scaffolding

scaffolding is a quick way to generate most of the parts of a ROR application. If you want to create the models, views, and controllers for a new resource in a single operation, scaffolding is the tool for the job. Clearly, the code scaffolding generates is unlikely to be a perfect for your application, and in some casesĀ  Rails developers avoid scaffolding entirely.

lets create a scaffold-ed post:

$ rails generate scaffold Post name:string title:string content:text

That’s it!

you might want to take look here