tashfeen.ekram wrote:
> Is there a way to modify the params hash?
> 
> I have an external service that is sending requests to me and I can
> not control they way they send the request. It is one flat hash and i
> would like to take some of values fromt he hash and then create a new
> record based on the remaining hash. Basically, i would like to remove
> the :action and :controller values as when i try to submit the whole
> hash to the actveirecord new method it complains by saying it does not
> recognize those as it should not.
> 
> Thanks.

Use delete_if: http://ruby-doc.org/core/classes/Hash.html#M002871
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to