I have an app in which I am attempting to add a blog to.
I have the blog and commenting system working. It has 2 tables:
1: blogposts (stores the actual blog topics/stories)
2: blogcomments (stores the comments for each blog created)
so - I've been playing around with the layout, as I think having the
most recent posts at the top would be more logical.
Below is the code I have which creates the comment: (and attempts to
order the comments accordingly)
@blogcomment = Blogcomment.find(:all, :order => "created_at
@user = User.find(session[:user_id])
flash[:notice] = "Added your comment"
redirect_to :action => "show", :id => params[:id]
Thanks for reading...