When inspecting it I get [#,#,#,#] and my title reads "Your Interests (4)" and the print out is # # # #
What is # all about? Is that an object filled with objects? Colin Law wrote: > On 2 April 2010 15:07, Jason Newport <[email protected]> wrote: >> class ApplicationController < ActionController::Base >> �end >> � �<% @user_interests.each do |interest| -%> >> >> seems to be counting the number of posts on the specific pages (index or >> show) and totaling those up as a users interests. �And if for one user I >> add two interests and view the single post page then the title will read >> "You have 3 interests", thus counts the two interests I really am >> interested in plus the one for the Post page I am even though I have yet >> to click/select it as an interest. > > I would suggest installing ruby-debug, then you can break into the > controller or the view and inspect the variables and work out what is > going wrong. > > See the rails guide on debugging at http://guides.rubyonrails.org/ > > Colin -- 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 [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.

