by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 19 2018 23:23
    kiddrew commented #14160
  • Nov 19 2018 23:23
    gmcgibbon synchronize #34468
  • Nov 19 2018 23:23
    kiddrew commented #14160
  • Nov 19 2018 23:12
    kamipo commented #34316
  • Nov 19 2018 23:10
    oniofchaos commented #34218
  • Nov 19 2018 23:09
    rafaelfranca synchronize #30320
  • Nov 19 2018 23:08
    oniofchaos commented #34236
  • Nov 19 2018 23:07
    rafaelfranca closed #34487
  • Nov 19 2018 23:07

    rafaelfranca on master

    Prevent TextHelper#word_wrap fr… Merge pull request #34488 from … (compare)

  • Nov 19 2018 23:07
    rafaelfranca closed #34488
  • Nov 19 2018 23:06
    rafaelfranca review_requested #34308
  • Nov 19 2018 23:05
    oniofchaos commented #34280
  • Nov 19 2018 23:01
    oniofchaos commented #34308
  • Nov 19 2018 22:52
    rafaelfranca synchronize #30320
  • Nov 19 2018 22:51

    rafaelfranca on master

    Indent guides as rails help com… Homogenize rails help output I… Merge pull request #34085 from … (compare)

  • Nov 19 2018 22:51
    rafaelfranca closed #34085
  • Nov 19 2018 22:51
    rafaelfranca commented #33643
  • Nov 19 2018 22:51
    rafaelfranca closed #33643
  • Nov 19 2018 22:50

    rafaelfranca on 5-2-stable

    Merge pull request #34106 from … (compare)

  • Nov 19 2018 22:49
    rafaelfranca synchronize #30320
Tom Cardoso
@tomcardoso
yeah… i've lost a day and a half to this
Daniel
@DanL12186
Any chance it's a particular item that's failing with the includes and not all of them?
(additionally, this feels like a good time to register my grievance with the fact that it's Array#include? and ActiveRecord#include instead of Array#includes? and ActiveRecord#include...)
Tom Cardoso
@tomcardoso
i've no idea, honestly. i am super out of my depth here
Daniel
@DanL12186
Just thought maybe you could test it with a query you know is only going to result in 1 or 2 records at a time. What the person was saying on that page was the query probably needed more information in order to eagerly load the association
My thinking may be poor, though :)
did you ever try the includes after the joins?
Tom Cardoso
@tomcardoso
i did… let me try again
yeah:
Search.web_search('heather').joins(:searchable).includes(:searchable)
Traceback (most recent call last):
ActiveRecord::EagerLoadPolymorphicError (Cannot eagerly load the polymorphic association :searchable)
Tom Cardoso
@tomcardoso
Ah, I figured it out! Took a totally different approach that ended up working. Thanks @DanL12186
Daniel
@DanL12186
What was it?
lucas França
@z3ro-D4y
hi guys
im new here, in rubyon rails community
I want to learn Ruby, any advices where i can find good contents about it ?
Daniel
@DanL12186
Rails Guides are good, Udemy Courses are also good
Fintan Moloney
@Josebuendia
Which is better to use Rails with, Docker or a Virtual Machine?
Kiti-nomad
@kiti-nomad
Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run bundle install to install missing gems.
how to fix it
Fintan Moloney
@Josebuendia
What happened when you ran bundle install?
Is the gem in your gemfile?
Kiti-nomad
@kiti-nomad
i am newbee
Fintan Moloney
@Josebuendia
Well check your gemfile and run that command.
Kiti-nomad
@kiti-nomad
i am tired
Fintan Moloney
@Josebuendia
??? Can't help with that!
Kiti-nomad
@kiti-nomad
I don’t really understand the ecology of ruby
So many configurations are not understood
Fintan Moloney
@Josebuendia
Just get pass this road block first.
Joseph A.
@matedemorphy
Hi
although i set config.cache_store = :file_store in development.rb nothing is added to tmp/cache folder
Eugeniu Tambur
@RTJ
hi, have you tried:
rails dev:cache
Joseph A.
@matedemorphy
yes
Development mode is now being cached.
i have = render @categories, cached: true in a view
= render 'shared/head_tags', cached: true in application.html.slim
Eugeniu Tambur
@RTJ
config.cache_store = :mem_cache_store
or
config.cache_store = :redis_cache_store
?
Joseph A.
@matedemorphy
= render 'shared/left_sidebar', cached: true
Eugeniu Tambur
@RTJ
you will need a redis or memcache server running
Joseph A.
@matedemorphy
nothing of that is being cached
@RTJ ok, but it there some cases in wich file_store wont work?
Eugeniu Tambur
@RTJ
I have never tried config.cache_store =: file_store,
But it should work
i use redis or memache normaly
config.action_controller.perform_caching is set to true ?
Joseph A.
@matedemorphy
yes
29 replies
i'm a newbie, i have no doubt that install and configure Redis will cause me another problems like everything does until now, i would prefer going for the simplest way.
Eugeniu Tambur
@RTJ
For now everything seems to be fine
Kiti-nomad
@kiti-nomad
There are a lot of problems on Windows, I am going to give up
Daniel
@DanL12186
Ruby/Rails isn't fun to use on Windows
Linux/OS X is the way to go