vendor/plugins/facebooker/lib/facebooker/rails/extensions/action_view.rb
# Try to find fbml version if the format is fbjs
Try to find fbml version if the format is fbjs
Try to find fbml version if the format is fbjs
def find_template_with_facebooker(original_template_path, format = nil, html_fallback = true)
    find_template_without_facebooker(original_template_path, format, html_fallback)
  rescue ActionView::MissingTemplate
    template_path = original_template_path.sub(/^\//, '')
    each do |load_path|
     if format == :fbjs && html_fallback && template = load_path["#{template_path}.#{I18n.locale}.fbml"]
        return template
      elsif format == :fbjs && html_fallback && template = load_path["#{template_path}.fbml"]
        return template
      end
      raise MissingTemplate.new(self, original_template_path, format)
    end
  end
def find_template_with_facebooker ( original_template_path , format = nil , html_fallback = true ) find_template_without_facebooker ( original_template_path , format , html_fallback ) rescue ActionView :: MissingTemplate template_path = original_template_path . sub ( / ^ \/ / , '' ) each do | load_path | if format == :fbjs && html_fallback && template = load_path [ "#{template_path}.#{I18n.locale}.fbml" ] return template elsif format == :fbjs && html_fallback && template = load_path [ "#{template_path}.fbml" ] return template end raise MissingTemplate . new ( self , original_template_path , format ) end end
Try to find fbml version if the format is fbjs
Try to find fbml version if the format is fbjs
original_template_path
<not_specific>
format
<not_specific>
html_fallback
<not_specific>