21 lines
301 B
Ruby
21 lines
301 B
Ruby
|
|
class BlogmapController < ApplicationController
|
||
|
|
allow_unauthenticated_access(only: %i[index show])
|
||
|
|
before_action :authenticate_user!, only: [:new, :edit, :update, :create]
|
||
|
|
|
||
|
|
def index
|
||
|
|
@blogs = Blog.all
|
||
|
|
end
|
||
|
|
def new
|
||
|
|
end
|
||
|
|
def update
|
||
|
|
end
|
||
|
|
def edit
|
||
|
|
end
|
||
|
|
def create
|
||
|
|
end
|
||
|
|
def destroy
|
||
|
|
end
|
||
|
|
def show
|
||
|
|
end
|
||
|
|
end
|