Hi, Im developing an application in Rails 2.02.
Everything seems to work fine but the problems begin when I try to put
some data in the session.
I have a model in proyect/models:
class Result
attr_accessor :names, :urls, :images
def initialize
@names = Array.new
@urls = Array.new
@images = Array.new
end
end
Controller:
@variable = Result.new
#code that fills up the values in the result arrays.
session[:result] = @result
I fill these attributes from a controller. At the end, if I try to put
the variable into the session I get the msg:
Status: 500 Internal Server Error Content-Type: text/html
500 Internal Server Error
Any ideas? thanks!