Displaying 2 results from an estimated 2 matches for "css4".
Did you mean:
  css
  
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
...{ render :action => "new" }
        format.xml  { render :xml => @book.errors, :status =>
:unprocessable_entity }
      end
    end
  end
def tag_cloud
      @tags = Books.tag_counts
    end
In the new.html.erb I have added these lines :
<% tag_cloud @tags, %w(css1 css2 css3 css4) do |tag, css_class| %>
    <%= link_to tag.name, { :action => :tag, :id => tag.name }, :class
=> css_class %>
  <% end %>
After I restarting the server, When I want to create a new book entry it
shows error as below:
"You have a nil object when you didn''t ex...
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
...edit view, and I can view them either from the console or as a simple
list in my index.
"include ActsAsTaggableOn::TagsHelper" is inside my application_helper
  def tag_cloud
    @tags = Blog.tag_counts_on(:tags)
  end
is in my controller, and
<% tag_cloud(@tags, %w(css1 css2 css3 css4)) do |tag, css_class| %>
    <%= link_to tag.name, { :action => :tag, :id => tag.name }, :class
=> css_class %>
<% end %>
is in my view
the error is:
"ActionView::TemplateError (undefined method `empty?'' for
nil:NilClass)"
and stack trace:
    app/view...