title: RoR 3 Limiting users to 2 posts per day
body: <p>I am looking for away to limit my users from posting more than twice per day and have no more than 5 posts per week. I have a users and posts model/controller.</p>
  
  <p>I have been looking at these questions but they are not quite what I am looking for.</p>
  
  <p><a href="https://stackoverflow.com/questions/7863618/rails-3-1-limit-user-created-objects">Rails 3.1 limit user created objects</a></p>
  
  <p><a href="https://stackoverflow.com/questions/5467638/how-do-i-validate-a-time-in-rails-limiting-a-user-to-post-once-a-day">How do I validate a time in Rails? Limiting a user to post once a day</a></p>
  
  <p>Error @ 20:44 13/03/2012 with the code from KandadaBoggu</p>
  
  <pre><code>NoMethodError in PostsController#create
  
  undefined method `beginnning_of_day' for 2012-03-13 20:36:11 +0000:Time
  </code></pre>