Title / Description
Code class SnippetsController < ApplicationController before_action :authenticate_user!, except: :index def index @snippets = Snippet.all.limit(10) end def show @snippet = Snippet.find(params[:id]) end def new end def create end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code