Listing posts

<%= link_to 'New post', :action => :new %> <% @posts.each do |post| %> <% end %>
Title Text
<%= post.title %> <%= post.text %> <%= link_to 'Show', :action => :show, :id => post.id %>