On 18 August 2011 14:50, Angelo Cordova <[email protected]> wrote:
>> > I tried this
>>
>> >  def before_create
>> >     debugger
>> >    stg = Storage.create!(:product_id =>
>> > self.product_id, :current_quantity
>> >  => self.quantity, :stg_data => purchase.prc_data)
>> > end
>>
>> > and when I "inspect" the variable "stg" I got  "stg => nil" as result
>>
>> That is not surprising since you have broken *before* the line that
>> allocates stg.
>>
>> Colin
>
> If I break after that line... "stg" does not appear

what do you mean it does not appear?

Remember that you can inspect data and evaluate expressions in the debugger.

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