Wednesday, May 14, 2014

Persistence(ORM) /Scaffold (CRUD)

http://en.wikipedia.org/wiki/Persistence_(computer_science)
http://en.wikipedia.org/wiki/Scaffold_(programming)
http://en.wikipedia.org/wiki/Ruby_on_Rails
http://en.wikipedia.org/wiki/Grails_(framework)
http://hibernate.org/orm/what-is-an-orm/
http://docs.railsbridge.org/intro-to-rails/CRUD_with_scaffolding

In computer science, persistence refers to the characteristic of state that outlives the process that created it. 

Scaffolding is a technique supported by some model-view-controller frameworks, in which the programmer may write a specification that describes how the application database may be used. 

Scaffolding in RoR:
$ rails generate scaffold User name:string email:string
$ rake db:migrate

The route&controller for User model will be automatically generated:




No comments:

Related Posts Plugin for WordPress, Blogger...