class DashboardController < ApplicationController def index @posts = Post.find(:all) respond_to do |format| format.html # index.html.erb format.js end end end