Topic: How to create comments
I'm new to this forum and Rails in general. I'm trying to build a site that has items which can be commented on, much like a blog. I have it to the point where I can create comments for each item, however I cannot figure out a way to set up an admin page to edit and delete them. I can only do it through terminal with SQL commands, not very practical. Right now I have 2 tables, one for the items and another for the comments.
This is the code for the page where people can add comments and it will display them, however for some reason this code only works on the page I have it, I can't even get it to just show the comments on the admin page much less edit each one.
<% for comment in @site.comments %>
<%= comment.body %>
<% end %>
<%= form_tag :action => "comment", :id => @site %>
<%= text_area "comment", "body" %><br />
<%= submit_tag "Submit" %>
Can anybody help me with this or know of a place to learn how to do this sort of thing?