Class: Litera::MessagesController

Inherits:
ApplicationController show all
Includes:
Pagy::Backend
Defined in:
app/controllers/litera/messages_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/litera/messages_controller.rb', line 5

def index
  @pagy, @messages = pagy(Message.ordered)
end

#showObject



9
10
11
# File 'app/controllers/litera/messages_controller.rb', line 9

def show
  @message = Message.find(params[:id])
end