Ruby on Rails Saturday, September 4, 2010

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 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment