Ruby on Rails Friday, February 10, 2017

On Friday, February 10, 2017 at 12:31:17 PM UTC+1, Colin Law wrote:
On 10 February 2017 at 11:02, 'krfg' via Ruby on Rails: Talk
<> wrote:
> 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}}")

Did you understand my previous post when I suggested that you should
quote the previous message when replying?

Put some debug code to check that it is getting to the line above. You
can use and the result will be printed in the log. So
something like"atp tournaments count = #{@atp_tournaments.count}"


Ok, I will quote.
I would need information about
When I try to open test.log Atom warns me that if it opens large files it might become unresponsive.
Shall I take for granted that you are interested it test.log?

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