Ruby on Rails Sunday, July 8, 2012

On 7 July 2012 21:24, David M. <lists@ruby-forum.com> wrote:
> I know you guys seem to be sticking to the RTFM hardline, but it seems
> as though debugging in the model has very few options without importing
> a bunch of gems.
>
> Even on the page recommended there are 35 mentions of controller, and
> only 4 mentions of model.
>
> I installed debugger 'gem install debugger', but it doesn't integrate at
> all with webrick ('rails s') and there apparently is no ruby-debug for
> 1.9.3 (ughh..)
>
> I've put a bunch of logger.info in my model, but I now know no more than
> I did before.
>
> When store_docfile is called before after_save, it never even gets to
> the first line containing the logger.info "we are now in store_docfile"
> message.

That is the clue then, but you are misinterpreting what you are
seeing. If it is not getting to the first line then it is not in fact
calling the method at all. Check out how you are calling it.

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-US.

No comments:

Post a Comment