Skip to content

Instantly share code, notes, and snippets.

@superchris
Created September 28, 2010 18:36
Show Gist options
  • Save superchris/601511 to your computer and use it in GitHub Desktop.
Save superchris/601511 to your computer and use it in GitHub Desktop.
class GotsController < ApplicationController
def new
@got = Got.new
end
def create
@got = Got.new(params[:got])
@got.user = current_user
if @got.save
redirect_to "/my_splogna"
end
end
def index
@gots = Got.search(params[:search])
end
def show
@got = Got.find(params[:id])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment