Store ActiveRecord objects in session

I want to create a object then store it in the session, then if the user
chooses to save it, its saved in the database.

I have a Configuration model of which I store instansobject of in the
session.
Now I also want to store the object in the database.

How can I make this possible?

In the Configuration model I have a lot of variables and methods, but
maybe its just to make the Configuration model into a ActiveRecord model
and have databas columns that has the same name as the variable in the
model?

On 8/4/06, Emil Sj√∂blom [email protected] wrote:

maybe its just to make the Configuration model into a ActiveRecord model
and have databas columns that has the same name as the variable in the
model?

Yes. That would be easiest.

Joe

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