ruby

Ruby code posted by Me
created at 18 Mar 02:01

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
283 Bytes in 2 ms with coderay