form.select(:list, @lists)
NameError: undefined local variable or method `form’ for
#Object:0xb7f4a9f4
from (irb):20
I’m running Rails 1.2.2. Any suggestions to what I do wrong, or which
pages I should read better in the API?
This doesn’t address the problem you’re having per se, but I thought you
should know that you’re definitely not going to be able to test a Rails
problem in irb. irb is interactive Ruby, not Rails. I don’t know
whether
you can test a form interactively, but if you can, you’re going to have
to
be using script\console which loads Rails and your development
environment,
not irb. Personally, I’d be using a sandbox app to debug a problem with
a
view.
Best regards,
Bill
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.