ruby on rails 4 - Why it's showing in the final of the page the parameters? -


i'm doing hash of agenda concerts , in index.html.erb showing in final of page parameters of @agendas. parameters showed in final:

[#<agenda id: 12, title: "test show past shows", info: "testando se aparece shows passados!", date_concert: "2015-05-13", begin_time: "2000-01-01 21:11:00", end_time: "2000-01-01 00:11:00", created_at: "2015-07-20 23:13:05", updated_at: "2015-07-20 23:13:05", user_id: nil>, #<agenda id: 8, title: "festival mpb goiânia, brasil", info: "festival de música popular brasileira em goiânia, ...", date_concert: "2015-07-20", begin_time: "2000-01-01 00:43:00", end_time: "2000-01-01 22:40:00", created_at: "2015-07-20 22:43:17", updated_at: "2015-07-20 22:43:17", user_id: nil>, #<agenda id: 9, title: "mota live project @ disco bataplan.", info: "mota live project @ disco bataplan. \r\nin fest...", date_concert: "2015-07-20", begin_time: "2000-01-01 00:03:00", end_time: "2000-01-01 01:10:00", created_at: "2015-07-20 22:46:23", updated_at: "2015-07-20 22:46:23", user_id: nil>, #<agenda id: 1, title: "heineken jazz festival - donostia", info: "heineken jazz festival in donostia-san sebastian w...", date_concert: "2015-07-23", begin_time: "2000-01-01 20:30:00", end_time: "2000-01-01 00:00:00", created_at: "2015-07-19 22:06:01", updated_at: "2015-07-20 16:54:19", user_id: 3>, #<agenda id: 13, title: "oahspkdbasbd", info: "sdfñsdñf", date_concert: "2015-07-24", begin_time: "2000-01-01 12:27:00", end_time: "2000-01-01 14:55:00", created_at: "2015-07-21 00:28:05", updated_at: "2015-07-21 00:28:05", user_id: nil>, #<agenda id: 10, title: "show teste", info: "show teste, sample!", date_concert: "2015-07-27", begin_time: "2000-01-01 23:00:00", end_time: "2000-01-01 01:00:00", created_at: "2015-07-20 22:54:23", updated_at: "2015-07-20 22:58:31", user_id: nil>, #<agenda id: 5, title: "show brasil skol event", info: "concert event skol beer", date_concert: "2015-08-02", begin_time: "2000-01-01 10:40:00", end_time: "2000-01-01 13:00:00", created_at: "2015-07-20 16:56:30", updated_at: "2015-07-20 16:56:30", user_id: nil>, #<agenda id: 2, title: "mota project live - disco gu", info: "concierto del grupo mota project live en la disco ...", date_concert: "2015-08-03", begin_time: "2000-01-01 21:00:00", end_time: "2000-01-01 00:00:00", created_at: "2015-07-19 23:49:56", updated_at: "2015-07-20 16:53:07", user_id: 3>, #<agenda id: 6, title: "bbk - bilbao live", info: "concierto en el bbk live!", date_concert: "2015-08-07", begin_time: "2000-01-01 19:00:00", end_time: "2000-01-01 20:00:00", created_at: "2015-07-20 17:01:14", updated_at: "2015-07-20 17:01:14", user_id: nil>, #<agenda id: 7, title: "show donosti indie festival", info: "festival indie en la ciudad de donosti-san sebasti...", date_concert: "2015-08-09", begin_time: "2000-01-01 22:30:00", end_time: "2000-01-01 23:40:00", created_at: "2015-07-20 22:36:11", updated_at: "2015-07-20 22:36:11", user_id: nil>] 

enter image description here

i don't want show parameters. why occurs this?

my file index.html.erb is:

<p id="notice"><%= notice %></p> <div class="distance"> <div class="container"> <div class="row">     <div class="agenda_concerts">       <h1> agenda concerts </h1>       <hr class="featurette-divider">            <%= @agendas.each |agenda| %>              <% if agenda.date_concert.past? %>              <% else %>               <span class="title"><%= link_to agenda.title, agenda %></span>               </br>               <span class="info"><%= agenda.info %></span>               </br>               <span class="date">date: <%= agenda.date_concert.to_formatted_s(:rfc822)  %></span>               </br>               <span class="begin_time">begin: <%= agenda.begin_time.to_s(:time) %></span>               </br>               <span class="end_time">end: <%= agenda.end_time.to_s(:time) %></span>               </br>               <% if user_signed_in? %>                 <%= link_to 'edit', edit_agenda_path(agenda) %></td>                 <%= link_to 'destroy', agenda, method: :delete, data: { confirm: 'are sure?' } %></td>               <% end %>               <hr class="featurette-divider">             <% end %>           <% end %>     </div>   </div> </div> </div> 

in agendas_controller.erb is:

def index     @agendas = agenda.all end 

<%= ...... %>  

the code written between display in ui as

<%  ...... %>  

the code written between doesn't display in ui

try work

 <p id="notice"><%= notice %></p>  <div class="distance">  <div class="container">  <div class="row">    <div class="agenda_concerts">   <h1> agenda concerts </h1>   <hr class="featurette-divider">        <% @agendas.each |agenda| %>          <% if agenda.date_concert.past? %>          <% else %>           <span class="title"><%= link_to agenda.title, agenda %></span>           </br>           <span class="info"><%= agenda.info %></span>           </br>           <span class="date">date: <%= agenda.date_concert.to_formatted_s(:rfc822)  %></span>           </br>           <span class="begin_time">begin: <%= agenda.begin_time.to_s(:time) %></span>           </br>           <span class="end_time">end: <%= agenda.end_time.to_s(:time) %></span>           </br>           <% if user_signed_in? %>             <%= link_to 'edit', edit_agenda_path(agenda) %></td>             <%= link_to 'destroy', agenda, method: :delete, data: { confirm: 'are sure?' } %></td>           <% end %>           <hr class="featurette-divider">         <% end %>       <% end %>    </div>   </div>   </div>   </div> 

hope helps you


Comments