[Rails] updating database on show

Jens-Christian Fischer jcf at invisible.ch
Tue Nov 16 14:14:55 GMT 2004


> > but that doesn't seem to work...
> What about:
> def show
> @room = Room::find(@params['id'])
> @session['person'].room = @room
> @session['person'].save
> end

thanks - I'm slowly wrapping my head around the things one can do with Rails. I'll give that a try later and see if this works for me.

jc


More information about the Rails mailing list