What version of Rails are you using? Can you give me a full backtrace of the
error?

On Mon, Jun 7, 2010 at 1:49 PM, szimek <[email protected]> wrote:

> Hey,
>
> after updating Haml from 2.x to 3 a helper from
> devise_facebook_connectable gem (http://github.com/grimen/
> devise_facebook_connectable) stopped working - it complains about
> missing << method. Here's the code:
>
> def facebook_sign_in_link(*args)
>  ...
>  content_tag(:div, :class => 'facebook_connect_link sign_in') do
>    facebook_connect_form(scope, options.slice(:method)) <<
>    if options[:button]
>      fb_login_button('devise.facebook_connectable.sign_in();',
> options)
>    else
>      fb_logout_link(options[:label],
> 'devise.facebook_connectable.sign_in_with_callback();')
>    end
>  end
> end
>
> def facebook_connect_form(scope, options = {})
>  ...
>  form_for(scope, :url => url, :html => options) { |f| }
> end
>
> Any tips how to fix this, so it works in both ERB and Haml (it would
> be great if it worked in 2.x and 3.x)?
>
> Cheers,
> Szymon
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to