#RubyOnRails - 08 October 2018
« Back 1 day Forward 1 day »
[03:53:44] orpl: What resources exist for server side rendering of React pages without using any gems like react_on_rails?
[11:04:34] tbuehlmann: maryo_: there are several ways to install ruby, I personally recommend using ruby-install (for installing rubies) and chruby (for switching between installed rubies)
[11:04:46] tbuehlmann: I recommend this: https://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[11:22:28] maryo_: I have tried rbenv for installing ruby on CentOS7, however it looks like it is in the same state showing installing for more than 10 minutes now https://dpaste.de/KfoH does any has any any idea on what could be the issue?
[11:28:06] tbuehlmann: maryo_: installing ruby can take quite some time, give it a few more minutes and check back
[11:40:16] maryo_: tbuehlmann, yep after sometime it got installed. But while trying to run "ruby -v" command it gives an error https://dpaste.de/BGTO any idea?
[11:43:03] dionysus69: Rails.application.secret_key_base returns some random secret_key_base which is not in rails credentials. where is it coming from?
[11:43:38] dionysus69: also, changing Rails.application.credentials.secret_key_base doesnt invalidate cookies in my development env, shouldn
[11:56:30] tbuehlmann: dionysus69: it returns `secrets.secret_key_base || Digest::MD5.hexdigest(self.class.name)` in development
[12:00:41] tbuehlmann: I can't help with rbenv. have you read this? https://github.com/rbenv/rbenv/blob/v1.1.1/README.md
[12:02:53] tbuehlmann: yes, it does: https://github.com/rails/rails/blob/v5.2.1/railties/lib/rails/application.rb#L432-L434
[13:54:09] tbuehlmann: yes. `bundle install` installs the gems mentionend in your Gemfile. `bundle exec <some command>` run the given command in the context of your Gemfile's gems
[17:43:13] yiadom: status page says no but I've been trying to install bundler for the last 15 minutes without success
[17:43:17] yiadom: Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
[18:31:52] samort7: when I examine log/test.log, it's filled with a bunch of squares. Anyone know why this might be happening
[18:33:21] samort7: hmm, if I open it with vim, I see this: ^[[1m^[[35m (0.1ms)^[[0m ^[[1m^[[34mSELECT COUNT(*) FROM "users"^[[0m
[20:33:24] tycoon177: is there a way to get an activerecord #touch to also call after_save callbacks? i'd prefer to avoid having the two separate callbacks in case they were to change in the future
[20:40:56] tycoon177: it doesn't appear like that's possible in the docs...I'll just put some comments around these callbacks in our code to let anyone in the future know that they belong together