Frederick Cheung wrote:
> On 17 Feb 2008, at 08:43, Issam Alameh wrote:
>
>>
>> I figured out it is a naming convention issue, I have renamed
>> variables
>> in my partial to list instead of classified (as per the partial name)
>> and it worked
>>
>> but is there any way around that
> Nope, that's pretty much the way partials work - you get a local
> variable with the same name as the partial
>
> Fred
i tried to run hello.rb which contains puts "HAI DEEPESH"
>>ruby hello.rb but i am getting
NameError: undefined local variable or method `hello' for main:Object
from (irb):6
--
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
-~----------~----~----~----~------~----~------~--~---