Sha256: 57ac7afc878b33d83715f341994c63666d532fbbce46b59596cb066a54763ea7
Contents?: true
Size: 303 Bytes
Versions: 4
Compression:
Stored size: 303 Bytes
Contents
class BlogController < ApplicationController before_filter :load_data def index if params[:tag].nil? @posts = Post.all else @posts = Post.to_tags(params[:tag]) end end def show_post @post = Post.find(params[:id]) end def load_data @tags = Tag.all end end
Version data entries
4 entries across 4 versions & 1 rubygems