title: How to debug in Model?
body: <p>Does anybody know how to debug in rails in the Model? I have a method  that is now working and I was trying to check the variable's value in between typing 
  <code>logger.debug val_name</code> 
  that's working in the controllers but not in the models does anyone know why? The model is not inherited from Active Record if it can be the problem. Is there any way to debug it?</p>