- tag_cloud @tags, %w(css_class1 css_class2 css_class3 css_class4)
do |tag, css_class|
    = link_to tag.name, { :action => :tag, :id => tag.name }, :class
=> css_class

Is the offending line(s)

That is taken directly from the github page (translated into HAML)

I assume it is something I am doing wrong, but I can't see what it is,
since I appear to be doing everything the instructions say to do.

On Nov 16, 12:14 pm, Marnen Laibow-Koser <[email protected]> wrote:
> aperture science wrote in post #961901:
>
> > I've tried out 'acts_as_taggable', 'acts_as_taggable_on' and
> > 'acts_as_taggable_on_steroids'  and all of them output "undefined
> > method 'empty?'" with the tag_cloud action.
>
> Then the error is probably not in their code...
>
> [...]
>
> > the error is:
> > "ActionView::TemplateError (undefined method `empty?' for
> > nil:NilClass)"
>
> > and stack trace:
> >     app/views/blog/index.haml:21:in
>
> It pays to read stack traces: they tell you right where the error is.
> What's there?
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to