Rails controller
Posted
by Asso
on Stack Overflow
See other posts from Stack Overflow
or by Asso
Published on 2010-03-30T14:05:34Z
Indexed on
2010/03/30
18:23 UTC
Read the original article
Hit count: 308
rails
|controller
Hello everyone!
Newb in Rails
i Have this problem that i cannot figure out. I've followed the sample blog dimostration form the ruby doc but now i have a problem.
Let's say that in the app index page for each post i also want to show the first comment of that post.
sure i need to cycle all the post to get the post id but how can i get the first comment of that post?
how can i manage the homeController and the view ?
thanks since now!
© Stack Overflow or respective owner