Sunday, December 12, 2010

Re: [Rails] [SOLVED] Re: Up argument '= model.save' needs to be a number error -- Debugging in server - Rails 3, 1.9.2

On 11 December 2010 23:00, David Kahn <dk@structuralartistry.com> wrote:
> Never mind, it seems that I can not assign to a single char variable in the
> debugger:
>
> u = User.new

That is because 'up' is a debugger command, and 'u' is the short form
of this command. So the debugger assumes you want the command u with
parameter = User.new.

If you want to use the variable u you can say
eval u=User.new
or
e u=User.new

Type help in the debugger to see all the commands.
The only reason that you can type things like user=User.new is because
autoeval has been set via
set autoeval

Colin

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate