docbrown/app/controllers/social_previews_controller.rb
Ben Halpern 576132179d
Adjust profile styling and widget style updates (#312)
* Modify profile design

* Make profile design adjustments

* Minor profile adjustments

* Adjust padding on profile box
2018-05-14 16:42:31 -04:00

24 lines
No EOL
480 B
Ruby

class SocialPreviewsController < ApplicationController
def article
@article = Article.find(params[:id])
not_found unless @article.published
render layout: false
end
def user
@user = User.find(params[:id]) || not_found
render layout: false
end
def organization
@user = Organization.find(params[:id]) || not_found
render "user", layout: false
end
def tag
@tag = Tag.find(params[:id]) || not_found
render layout: false
end
end