Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2e2afc0ac6
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.243 kb
class PostsController < ApplicationController
def show
@post = Post.find(params[:id])
end
def new
end
def create
@post = Post.new(params[:post])
@post.save
redirect_to :action => :show, :id => @post.id
end
end
Jump to Line
Something went wrong with that request. Please try again.