ensl.org/app/controllers/custom_urls_controller.rb
2017-11-12 18:02:53 +01:00

22 lines
367 B
Ruby

class CustomUrlsController < ApplicationController
def administrate
end
def create
end
def show
custom_url = CustomUrl.find_by_name(params[:name])
@article = custom_url.article
raise AccessError unless @article.can_show? cuser
@article.read_by! cuser if cuser
render 'articles/show'
end
def update
end
def destroy
end
end