Closed katawura closed 8 years ago
<%= @posts.first do |post|%>
this looks weird to me
propably should be sthg like <%post = @posts.first%>
or sthg similar?
What do you mean with But doesn't seem to pass
?
It was not showing anything in my view. l stopped looping it and it worked for me. cheers
l am trying to pull the first post using below:
But doesn't seem to pass please can you advise on the methods availble please?