Rails - Update attributes using rake task. Need help troubleshooting model method code
问题 I am trying to use a rake task that will run every night (using Heroku Scheduler) and update some attributes if some certain criteria is met. A little logic about the application: The application allows users to "take the challenge" and read a book a week over the course of a year. It's pretty simple: users sign up, create the first book that they will read for their first week, then can enter what they're going to read next week. After they've "queued" up next week's book, that form is then