On Friday, February 10, 2017 at 12:50:19 PM UTC+1, krfg wrote: > > > > 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 >> <[email protected]> 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 = Time.now.strftime("%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 logger.info >> <http://www.google.com/url?q=http%3A%2F%2Flogger.info&sa=D&sntz=1&usg=AFQjCNGOfWV_MqSEYOUyz77vBSYyM6smOg> >> >> and the result will be printed in the log. So >> something like >> logger.info("atp tournaments count = #{@atp_tournaments.count}" >> >> Colin >> > > > Ok, I will quote. > I would need information about logger.info > 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? >
My application test.log file is 107 MB -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/856ef2b7-1b7a-4daa-a146-9296cfb79a25%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

