How to insert a new record in to table

hi all,
I want to insert new records into table but i dont konw how
to use it using rails methods
as far i know was
Model.save
Model.update
is there any ways to insert new records with params

plz help me…

Wasim Akram wrote:

hi all,
I want to insert new records into table but i dont konw how
to use it using rails methods
as far i know was
Model.save
Model.update
is there any ways to insert new records with params

plz help me…

Wasim

visit http://www.classifiedscript.in and download railslist. It is a
wonderful working application that you can follow very easily. for your
question, look into classifieds controller’s methods.

2009/8/19 Kart [email protected]:

hi all,
    I want to insert new records into table but i dont konw how
to use it using rails methods
as far i know was
Model.save
Model.update
is there any ways to insert new records with params

Have a look at the rails guides at http://guides.rubyonrails.org/
particularly Getting Started, and also look at the railscasts (use
google I can’t remember the url).

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs