module AuthlogicFacebookConnect module Helper def authlogic_facebook_login_button(options = {}) # TODO: Make this with correct helpers istead of this uggly hack. options[:controller] ||= "user_session" options[:js] ||= :prototype case options[:js] when :prototype js_selector = "$('connect_to_facebook_form')" when :jquery js_selector = "jQuery('#connect_to_facebook_form')" end output = "
\n" output << "\n" options.delete(:controller) output << fb_login_button("connect_to_facebook()", options) output end end end