Topic: Var dump at the bottom of a page?
i am working with rails 3 i have the following model
class ContactController < ApplicationController def index @surveys = Survey.active endendmy controller
class ContactController < ApplicationController def index @surveys = Survey.active endendand my view
<%= @surveys.each do |p| %> <li><%=p.id %>-<%=p.name %></li><%end%>my anticipated outcome is that it for each through the surveys variable outputting the id and name in a li. which it does however it also dumps the variable out at the bottom of the page.
1-Ben Hill Voter ID
[#<Survey id: 1, name: "Ben Hill Voter ID", is_active: true, user_id: nil, open_script: "Opening Script", voicemail_script: "Voice Mail Script", closing_script: "Closing Script", email_script: "Email Script", created_at: "2012-12-19 15:17:36", updated_at: "2012-12-20 03:46:35">]