ensl.org/app/controllers/custom_urls_controller.rb

23 lines
367 B
Ruby
Raw Normal View History

class CustomUrlsController < ApplicationController
2017-11-09 17:25:52 +00:00
def administrate
end
def create
2017-11-10 09:42:35 +00:00
2017-11-09 17:25:52 +00:00
end
def show
2017-11-10 09:42:35 +00:00
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'
2017-11-09 17:25:52 +00:00
end
def update
end
def destroy
end
end