Whats the best way of grabbbing this data into a variable without the
extra titles?
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
select_date
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.