Yes, please use the dup method for copy values.
Sometimes ,most programmers change to use the ROR because of the
Rails. So many of them can't use the Ruby very well.
So I suggest you can study the Ruby now.
<Programming Ruby>
<The Ruby Programming Language>

On Apr 22, 5:07 pm, Santosh Turamari <rails-mailing-l...@andreas-
s.net> wrote:
> Dmitry Sokurenko wrote:
> > Use:
>
> >   params_copy = params.dup
>
> > then you can change/add/delete items in both hashes (and in nested
> > hashes if any), they are complitely independent.
>
> > Dmitry
>
> Thank You.
> --
> Posted viahttp://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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to