class BlogController < ApplicationController

  def index
  end

  def view
    if (params[:id])
      @post = Post.find(params[:id])
    else    
      redirect_to home_url
    end
  end
end