lib/facebox_render.rb in facebox-render-0.9.0 vs lib/facebox_render.rb in facebox-render-0.9.5
- old
+ new
@@ -1,8 +1,8 @@
module FaceboxRender
def render_to_facebox( options = {} )
- options[:template] = "#{controller_name}/#{action_name}.html.erb" if options.empty? #default
+ options[:template] = "#{default_template_name}.html.erb" if options.empty?
action_string = render_to_string(:action => options[:action], :layout => false) if options[:action]
template_string = render_to_string(:template => options[:template], :layout => false) if options[:template]
render :update do |page|
\ No newline at end of file