the documentation is here: https://github.com/mbleigh/acts-as-taggable-on

and i do get the same error when I use html.erb syntax instead of haml

On Nov 16, 12:32 pm, aperture science <mekkagoj...@gmail.com> wrote:
>   - 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 <li...@ruby-forum.com> 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
> > mar...@marnen.org
>
> > --
> > 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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to