Answer the question
In order to leave comments, you need to log in
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
[#<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">]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question