Feeds:
Posts
Comments

Archive for January 21st, 2011

Hai since im currently working with Ruby on Rails 3, day by day im exploring new things in it

Here’s my experience on how to create and delete a model

Creating a model


rails generate model User name:string email:string

The above command will create four files as seen in the below screenshot

Deleting a model


rails destroy model User

The above command removes the four created files

Advertisements

Read Full Post »