19 lines
287 B
Ruby
19 lines
287 B
Ruby
class WelcomeController < ApplicationController
|
|
allow_unauthenticated_access(only: %i[index show])
|
|
def index
|
|
@latest_post = Post.order(created_at: :desc).first
|
|
|
|
end
|
|
def new
|
|
end
|
|
def edit
|
|
end
|
|
def destroy
|
|
end
|
|
def update
|
|
end
|
|
def show
|
|
end
|
|
def create
|
|
end
|
|
end
|