Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Created March 13, 2012 14:51
Show Gist options
  • Save JeffCohen/2029246 to your computer and use it in GitHub Desktop.
Save JeffCohen/2029246 to your computer and use it in GitHub Desktop.
Some code for this sample
def show
slug_id = CGI.escape(params[:id])
@list = List.find_by_slug(slug_id)
@aha = Aha.new
@aha.list = @list
respond_to do |format|
format.html # show.html.erb
format.json { render json: @list }
end
end
def something_else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment