Sulekha Mariam wrote:
> Ryan Bigg wrote:
>> You are trying to use a controller method like a helped method. Try
>> moving the method to applicationhelper and seeing if that works
>> 
> 
>  you mean moving
> 
>  def tag_cloud
> 
>   @tags = Story.tag_counts
> 
>  end
> 
>  to  app/helpers/application_helper.rb

i moved tag_cloud method from StoriesController  to 
app/helpers/application_helper.rb

now i am getting the error

Showing stories/index.html.erb where line #4 raised:

wrong number of arguments (2 for 0)
-- 
Posted via http://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