# This is your Articles Controller (/app/controllers/article_controller.rb) class ArticlesController < ApplicationController def show # This would be accessed at www.mysite.org/articles/show/1 @article = Article.find params[:id] end end # This is /app/views/articles/show.rhtml

<%= @article.title %>

<%= @article.body %>

<% if @article.has_comments? %> <% end %> # This is /app/views/articles/_comment.rhtml
  • <%= comment.title %>

    <%= comment.body %>

    <% if comment.has_children? %> <% end %>