Forum: Ruby Inject two more values to an HashWithIndifferntAccess

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
76e8faf979c86f8cc462e9d2b4d52fce?d=identicon&s=25 Sijo k. (sijo)
on 2008-10-07 09:11
Hi
  I have
@search_sd_ticket=ServiceDeskTicket.record_paginate(params[:sd_ticket],params[:page])

Here class of params[:sd_ticket] is HashWithIndifferntAccess   for
example
{"number"=>"2", "primary_assignee_id"=>"", "service_desk_status_id"=>""}

      I am also passing params[:start_date] and params[:end_date]  So my
problem is how can I inject this start_date and end_date also into the
above params[:sd_ticket]   then it becomes like

{"start_date"=>"","end_date"=>"","number"=>"2",
"primary_assignee_id"=>"", "service_desk_status_id"=>"",
"service_desk_priority_id"=>""}

Thanks in advance
Sijo
686ff759a5882c193c9bd0af32a2f0d0?d=identicon&s=25 Brian C. (candlerb)
on 2008-10-07 09:17
This sounds like a Rails / ActiveSupport / ActionPack question, which
would be better asked on a Rails mailing list.
This topic is locked and can not be replied to.