Class: RawPiecesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/raw_pieces_controller.rb

Overview

Controller for raw snippet pieces.

Instance Method Summary collapse

Instance Method Details

#indexObject


3
4
5
# File 'app/controllers/raw_pieces_controller.rb', line 3

def index
  render plain: snippet.pieces.first.body
end

#showObject


7
8
9
# File 'app/controllers/raw_pieces_controller.rb', line 7

def show
  render plain: piece.body
end