hi, ive just started learning rails and im trying to make a simple blog
app

i have the following code on my index page

i can add articles ok but i cant display them

everything ive tried to put between the h1 tags fails?
what should I put between the tags to display the data stores in the
body and title fields

<%= link_to 'New Article', :action => 'new' %>

<% for article in @articles %>
  <tr>
<h1>

</h1>
    <td><%= link_to 'Show', article %></td>
    <td><%= link_to 'Edit', edit_article_path(article) %></td>
    <td><%= link_to 'Destroy', article, :confirm => 'Are you sure?',
:method => :delete %></td>
  </tr>
<% end %>

Thanks for any help
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to