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 = Time.now.strftime("%W").to_i
          @atp_tournaments = AtpCalendar.where("week @> ?", "{#{@week_num}}")
          @wta_tournaments = WtaCalendar.where("week @> ?", "{#{@week_num}}")
      end
  end

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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/51e248e3-3238-4095-a428-9201cf5385de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment