L
L
lavezzi12015-09-09 13:11:32
Ruby on Rails
lavezzi1, 2015-09-09 13:11:32

Is debug enabled or what is it?

Hello. Created a new application, rails new APPNAME. Everything is as usual. I start creating a basic CRUD, on the posts/index.html page I create a loop:

= @posts.each do |post|
  %h1= link_to post.title, post
  %p= post.content
  %small= post.created_at

On the page, after the posts, here is the code:
[#<Post id: 2, title: "aaaaaaaaaaa", content: "bbbbbbbbbb", created_at: "2015-09-09 10:00:56", updated_at: "2015-09-09 10:00:56">, #<Post id: 1, title: "aaaaaaaaaaaaaa", content: "bbbbbbbbbbbbbb", created_at: "2015-09-09 09:50:16", updated_at: "2015-09-09 09:50:16">]

Looks like a debug, but didn't include anything. This is the first time I've come across something like this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Tkachenko, 2015-09-09
@lavezzi1

<% @posts.each do |post| %>
trouble in zank "="(equal)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question