Thiago Jackiw
2007-Mar-20 19:55 UTC
[ANN] SiteMeter is now Sitealizer v.1.1 Web Stats plugin
The old ''sitemeter'' plugin has been changed to Sitealizer v.1.1 Web Stats plugin for Rails. Please update your bookmarks to point to http://sitealizer.rubyforge.org This change includes: - [FIX] General bug fixes - [NEW] Added 3 new rake tasks that allows you to update the plugin, uninstall it and upgrade from the old ''sitemeter'' - [NEW] Added a link to whois under Hosts so you can see the host''s location -- Installation -- On your Rails'' root directory, just type script/plugin install http://opensvn.csie.org/sitealizer and add the following line to your config/routes.rb: map.connect ''/sitealizer/:action'', :controller => ''sitealizer'' -- Upgrading from SiteMeter -- If you had previously installed ''sitemeter'' you need to run the following command for both production and development env after installing Sitealizer, otherwise your stats will not be imported: rake sitealizer:remove_sitemeter You also need to change: * include SiteMeter TO Include Sitealizer * before_filter :use_site_meter TO before_filter :use_sitealizer * map.connect ''/sitemeter/:action'', :controller => ''sitemeter'' TO map.connect ''/sitealizer/:action'', :controller => ''sitealizer'' -- Usage -- To track the visitors on your entire application, just edit your ApplicationController(application.rb): class ApplicationController < ActionController::Base include Sitealizer before_filter :use_sitealizer end Or to track specific controllers: class ApplicationController < ActionController::Base include Sitealizer end class MyController < ApplicationController before_filter :use_sitealizer end -- Viewing the stats -- To view your stats just add "/sitealizer" to your main url: http://www.example.com/sitealizer More info => http://sitealizer.rubyforge.org -- Thiago Jackiw acts_as_solr => http://acts-as-solr.rubyforge.org Sitealizer Web Stats => http://sitealizer.rubyforge.org -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
When running Edge, you might find the following line necessary in sitealizer_controller.rb prepend_view_path("#{RAILS_ROOT}/vendor/plugins/sitealizer/lib/app/views") It goes in the class methods ... just after the before_filter. Then remove the template_root= method. Cool plugin, BTW. Andrew-153 wrote:> > > The old ''sitemeter'' plugin has been changed to Sitealizer v.1.1 Web > Stats plugin for Rails. Please update your bookmarks to point to > http://sitealizer.rubyforge.org > > This change includes: > - [FIX] General bug fixes > - [NEW] Added 3 new rake tasks that allows you to update the plugin, > uninstall it and upgrade from the old ''sitemeter'' > - [NEW] Added a link to whois under Hosts so you can see the host''s > location > > > -- Installation -- > > On your Rails'' root directory, just type > script/plugin install http://opensvn.csie.org/sitealizer > > and add the following line to your config/routes.rb: > map.connect ''/sitealizer/:action'', :controller => ''sitealizer'' > > > -- Upgrading from SiteMeter -- > > If you had previously installed ''sitemeter'' you need to run the > following command for both production and development env after > installing Sitealizer, otherwise your stats will not be imported: > rake sitealizer:remove_sitemeter > > You also need to change: > * include SiteMeter TO Include Sitealizer > * before_filter :use_site_meter TO before_filter :use_sitealizer > * map.connect ''/sitemeter/:action'', :controller => ''sitemeter'' TO > map.connect ''/sitealizer/:action'', :controller => ''sitealizer'' > > > -- Usage -- > > To track the visitors on your entire application, just edit your > ApplicationController(application.rb): > > class ApplicationController < ActionController::Base > include Sitealizer > before_filter :use_sitealizer > end > > Or to track specific controllers: > > class ApplicationController < ActionController::Base > include Sitealizer > end > > class MyController < ApplicationController > before_filter :use_sitealizer > end > > > -- Viewing the stats -- > > To view your stats just add "/sitealizer" to your main url: > http://www.example.com/sitealizer > > > More info => http://sitealizer.rubyforge.org > > -- > Thiago Jackiw > acts_as_solr => http://acts-as-solr.rubyforge.org > Sitealizer Web Stats => http://sitealizer.rubyforge.org > > -- > Posted via http://www.ruby-forum.com/. > > > > >-- View this message in context: http://www.nabble.com/-ANN--SiteMeter-is-now-Sitealizer-v.1.1-Web-Stats-plugin-tf3436193.html#a9584023 Sent from the RubyOnRails Users mailing list archive at Nabble.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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thiago Jackiw
2007-Mar-21 00:12 UTC
Re: [ANN] SiteMeter is now Sitealizer v.1.1 Web Stats plugin
Steve, Thanks for the tip and the feedback! I''ll certainly make use of that. This plugin hasn''t been tested with edge rails, just with the stable releases. -- Thiago Jackiw acts_as_solr => http://acts-as-solr.rubyforge.org Sitealizer Web Stats => http://sitealizer.rubyforge.org Steve Ross wrote:> When running Edge, you might find the following line necessary in > sitealizer_controller.rb > > prepend_view_path("#{RAILS_ROOT}/vendor/plugins/sitealizer/lib/app/views") > > It goes in the class methods ... just after the before_filter. Then > remove > the template_root= method. > > Cool plugin, BTW. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---