It is just I want to see objects attributes I have from my model classes in the output, this is why I do the "puts" or "p", but it does not work. For example, I have a SearchEngine class, I have a def search() function that returs some results, and I want to see these results before sending them to the controller...
Älphä Blüë wrote: > Well, there are a few different ways to debug your app. What are you > trying to find out? > > In the model you can put: > > class ModelName < ActiveRecord::Base > puts caller > > .. > .. > end > > That will give you the call stack everytime the model is hit. > > If you want to debug params within your views you can place: > > <%= debug params %> > > Which will list all of the params in your views... > > The list goes on and on.. > > What do you need to check? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---