Ruby on Rails Friday, February 10, 2017

In app/controllers/static_pages_controller.rb the following variables (among others) are defined:

  def home
        if logged_in? && !current_user.gamer?
    elsif logged_in? && current_user.gamer?
            @week_num ="%W").to_i
            @atp_tournaments = AtpCalendar.where("week @> ?", "{#{@week_num}}")
            @wta_tournaments = WtaCalendar.where("week @> ?", "{#{@week_num}}")

The AtpCalendar and WtaCalendar fixtures are empty.
Therefore, any? should return an empty array

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment