I have a Garb model:
class Visits
extend Garb::Model
metrics :visits, :new_visits, :pageviews
dimensions :month, :hostname, :network_domain, :country, :region, :source
end
And I have this line in my controller:
for visit in Visits.results(profile, :start_date => (Date.today-numdays), :filters => { :hostname.eql => "#{@brand.subdomain}.mysite.com" })
This has worked fabulously. But all of a sudden, even though none of the actual code has been modified:
NoMethodError in AnalyticsController#index
undefined method `eql' for :hostname:Symbol
What could be causing this?
Did you install right_http_connection-1.3.0 gem? It will cause the garb/lib/support.rb not to be loaded if you require ‘right_http_connection’ before ‘garb’. If that you could fix this by installing a lower right_http_connection, such as right_http_connection-1.2.4.
After all you can use command
to find what files cause your garb/lib/support.rb was not loaded anymore.
This link http://kayakjang.github.com/2011/05/27/garb.html may be helpful to you for this problem.