image facebook

This commit is contained in:
Nicolas Bally 2012-07-21 09:25:36 +02:00
parent 2e8cc8c289
commit 8bda0d550b
2 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class Public::ArticlesController < ApplicationController
if @article and @article.enabled
@title = @article.title
@thumbnail_image = @article.image_file.file.large.medium.small.thumb.url if @article.image_file
else
redirect_to "/", :notice => "La page que vous demandez n'a pas pu être trouvée.<br /><br />Vous avez donc été redirigé sur notre page d'accueil"

View File

@ -9,6 +9,8 @@
= csrf_meta_tag
= '<link rel="image_src" href="'+@thumbnail_image.to_s+'" />' if @thumbnail_image
<meta name="viewport" content="width=device-width,initial-scale=1">