Try fb from override and generated page

This commit is contained in:
Christophe Vilayphiou committed 2012-08-08 11:04:19 +08:00
1 parent acf4446523
commit 4bed925e0f
6 files changed
+79 -3

No files matched your search

@@ -106,6 +106,13 @@ class ApplicationController < ActionController::Base
render :text => '404 Not Found'
end
end
def render_share
object_class = params[:model].classify.constantize
@object = object_class.find(params[:id])
@orig_url = params[:orig_url]
render 'shared/render_share', :layout => false
end
protected