On 8/4/06, Emil Sj?blom <esjoblom@gmail.com>
wrote:> 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?
Yes. That would be easiest.
Joe