IMHO The biggest problem with rails is the fact that it makes working easy and fun as long as your work can follow the MVC system. If you try to do it your way it won't be the rails way (at least as far as I know).
If you want to track any more information other then number of pages views, create a page_view model and give it some logic to do the rest of your magic. If you want to track views of a specific model, add a page_views field to that model. If you just want to track the number of page views on your entire website.... use an analytics program :) Brian On Sep 4, 1:26 pm, Shea Barton <[email protected]> wrote: > What would be the best way in rails to store a single variable and have > it persist. Like a have a variable that says "total_visits" that counts > the total number of page loads. > > The only solution I can think of is having a table with a single row. > -- > 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 [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.

