Whats the best way of grabbbing this data into a variable without the
Since it appears that the date is not destined for a (DB-backed) model
attribute of type Date, but for a plain instance variable, use
instead, with its prefix option set to ‘max’. Then in your controller:
m = params[:max] @pMax = Date.new(m[:year], m[:month], m[:day])
We develop, watch us RoR, in numbers too big to ignore.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.