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
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
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
Sounds like you're trying to do this from an irb console. Why not do
it from the command prompt ? (if you do want to shell out and execute
something from irb you should have a look at `` or system)