On 16 September 2011 16:07, Jonathan S. <[email protected]> wrote:
> @leoncio:
>
> I was responding to Fred's suggestion that params was being overwritten
> because it was mentioned in the if statement in the original code.
> Forget my replies to Fred, do you have any idea why the params variable
> is being made nil in the original post?

I think perhaps you are thinking that a local variable created inside
an if block will disappear at the end of the block, so that the
original variable is restored.  Wrong.

Colin

>
>
> leoncio caminha wrote in post #1022336:
>> return 3 is the right! the value dont change and never in into if,
>> because
>> you put false...its right
>>
>> 2011/9/16 Jonathan S. <[email protected]>
>
> --
> 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.
>
>



-- 
gplus.to/clanlaw

-- 
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