I'd like to replace the :year, :month and :day parameters with a hash containing the three parameters. @date is an instance of a Date class, and the trouble with that is Date.month is a single character. I'd like it to be null-padded, but it seems messy to put .rjust(2, '0') against all three parameters everywhere in the code.
def show_rrr
if params[:year_entry_access] # here you can get params_hash format
params[:year_entry_access].each_value do |get_date|
get_date[:date]
get_month[:month]
get_year[:year]
end
end
end