« Back to channel list

#RubyOnRails - 30 May 2019

« Back 1 day Forward 1 day »
[00:11:17] skryking: has joined #RubyOnRails
[00:12:05] planigan: has joined #RubyOnRails
[00:21:55] weteamsteve: has joined #RubyOnRails
[00:36:26] morozovm: has joined #RubyOnRails
[00:54:30] Technodrome: has joined #RubyOnRails
[00:56:59] brool: has joined #RubyOnRails
[00:57:48] planigan: has joined #RubyOnRails
[01:21:52] orbyt_: has joined #RubyOnRails
[01:45:32] morozovm: has joined #RubyOnRails
[02:01:25] ariedler: has joined #RubyOnRails
[02:24:17] siasmj: has joined #RubyOnRails
[02:25:11] _aeris: has joined #RubyOnRails
[02:58:04] gambl0re: has joined #RubyOnRails
[03:09:52] haxx0r88: has joined #RubyOnRails
[03:11:31] braincrash: has joined #RubyOnRails
[03:23:46] morozovm: has joined #RubyOnRails
[03:24:32] morozovm: has joined #RubyOnRails
[03:25:30] morozovm: has joined #RubyOnRails
[03:27:36] ebsen: has joined #RubyOnRails
[03:50:11] sevenseacat: has joined #RubyOnRails
[03:53:22] tdy: has joined #RubyOnRails
[04:36:09] srinidhi: has joined #RubyOnRails
[04:41:17] duderonomy: has joined #RubyOnRails
[05:40:57] blackmesa: has joined #RubyOnRails
[06:03:54] haxx0r: has joined #RubyOnRails
[06:09:34] schne1der: has joined #RubyOnRails
[06:26:24] beingjohnm: has joined #RubyOnRails
[06:44:36] Saukk: has joined #RubyOnRails
[06:53:37] blackmesa: has joined #RubyOnRails
[07:15:07] schne1der: has joined #RubyOnRails
[07:22:29] defsdoor: has joined #RubyOnRails
[07:23:12] lxsameer: has joined #RubyOnRails
[07:24:17] Technodrome: has joined #RubyOnRails
[07:40:33] morozovm: has joined #RubyOnRails
[07:45:37] haxx0r: has joined #RubyOnRails
[07:46:42] blackmesa: has joined #RubyOnRails
[07:51:22] conta: has joined #RubyOnRails
[08:03:43] mikecmpbll: has joined #RubyOnRails
[08:07:07] blackmesa1: has joined #RubyOnRails
[08:09:30] Ergo: has joined #RubyOnRails
[08:29:45] Dbugger: has joined #RubyOnRails
[08:39:12] conta: has joined #RubyOnRails
[08:59:04] morozovm: has joined #RubyOnRails
[09:01:37] blackmesa1: has joined #RubyOnRails
[09:19:07] ZAJDAN: hi...in html form I have: button_to "Search" , :action=> 'search' what actually arrange the action?
[09:27:31] srinidhi: has joined #RubyOnRails
[09:31:24] morozovm: has joined #RubyOnRails
[09:36:58] dionysus69: Model has_one other_model, Model.create_other_model second time causes the object to be deleted, which doesn't obey any sense of logic or intuitition
[09:42:41] jefffrails35: has joined #RubyOnRails
[10:09:01] srinidhi: has joined #RubyOnRails
[10:15:53] ravenousmoose: has joined #RubyOnRails
[10:18:05] uks: has joined #RubyOnRails
[10:36:39] haxx0r: i have a WSS with actioncable where the user gets the result of current events. now i want the user beeing able to place bets. should i use WSS for placing the bet or will it impact performance?
[10:46:11] blackmesa1: has joined #RubyOnRails
[10:58:22] lankanmon: has joined #RubyOnRails
[11:05:06] ZAJDAN: nobody here?
[11:38:10] blackmesa1: has joined #RubyOnRails
[11:42:26] morozovm: has joined #RubyOnRails
[11:42:32] cek: has joined #RubyOnRails
[11:43:15] cek: Is there any way to de-compose the aliased attributes/records when doing arel with eager loading and joins? those AS t0_r0, AS t0_r1 columns, I need them mapped back to model
[11:53:19] haxx0r: has joined #RubyOnRails
[11:54:34] FastJack: has joined #RubyOnRails
[12:04:21] xco: has joined #RubyOnRails
[12:08:57] haxx0r: has joined #RubyOnRails
[12:45:40] emachnic: has joined #RubyOnRails
[13:00:25] apparition: has joined #RubyOnRails
[13:32:23] conta: has joined #RubyOnRails
[13:43:31] kapilp: has joined #RubyOnRails
[13:53:15] Technodrome: has joined #RubyOnRails
[13:57:36] morozovm: has joined #RubyOnRails
[14:14:16] mostlybadfly: has joined #RubyOnRails
[14:14:28] ravenousmoose: has joined #RubyOnRails
[14:24:22] Ergo: has joined #RubyOnRails
[14:25:17] sirensari2: has joined #RubyOnRails
[14:33:49] schne1der: has joined #RubyOnRails
[14:38:24] ravenousmoose: has joined #RubyOnRails
[14:39:21] GodFather: has joined #RubyOnRails
[15:08:34] mrbubbles: has joined #RubyOnRails
[15:12:39] morozovm: has joined #RubyOnRails
[15:26:54] orbyt_: has joined #RubyOnRails
[15:57:18] orbyt_: has joined #RubyOnRails
[15:58:16] brandoncc: has joined #RubyOnRails
[16:25:02] morozovm: has joined #RubyOnRails
[16:30:49] octos: has joined #RubyOnRails
[16:36:57] freddykiks: has joined #RubyOnRails
[16:54:53] duderonomy: has joined #RubyOnRails
[17:05:36] dviola: has joined #RubyOnRails
[17:07:44] octos: has joined #RubyOnRails
[17:15:42] beholders_eye: has joined #RubyOnRails
[17:23:10] tdy: has joined #RubyOnRails
[17:27:18] uksio: has joined #RubyOnRails
[17:36:01] ZAJDAN: when I add into form: <%= button_to "Search", {:controller => :commissions, :action => 'search'} %> ...should I see in HTML on the input attribut action="commission/search" ...?
[18:19:59] Xogium: has joined #RubyOnRails
[18:20:39] xco: what’d be the best way to search multiple associated models with an ‘AND’? so like i’d want a AND b AND c (where a, b c are attributes on models A, B, C)?
[18:21:02] Xogium: hi people. I've been trying to get redmine to run for 3 days now
[18:21:18] xco: without* elastics search and co (like solr, sphinx etc)
[18:21:31] Xogium: I added an unicorn gem in my Gemfile.local and ran bundle install again
[18:21:54] Xogium: but now if I try to run something as simple as 'bundle exec unicorn --help' I get this
[18:22:01] Xogium: Could not find gem 'xpath (< 4.0)' in any of the gem sources listed in your Gemfile.
[18:22:28] Xogium: what am I missing ?
[18:23:16] Xogium: I don't think I've done it right either, cause the first time I tried to run 'bundle exec unicorn --help' it still said the gem was missing
[18:23:45] Xogium: I'm an absolute newb at ruby and ruby on rails
[18:24:13] Xogium: I just want to get this redmine to play nice with unicorn
[18:24:22] Xogium: and unicorn to behave
[18:25:31] xco: Xogium: have you tried running `bundle update xpath`?
[18:26:14] Xogium: I have xpath 3.2.0 installed
[18:26:19] xco: you can also try a full index with `bundle --full-index`
[18:26:20] Xogium: according to gem list
[18:27:43] xco: Another way would be to delete your Gemfile.lock and try bundle install again if the above don’t work
[18:28:07] Xogium: the one for redmine right ?
[18:28:45] Xogium: or the one for unicorn ?
[18:28:54] Xogium: I'm guessing the later
[18:28:59] xco: wherever you’re you need xpath installed
[18:29:41] xco: this has nothing to do with unicorn i think
[18:29:47] xco: it’s with the redmine app itself
[18:30:10] Xogium: but also first time I ran bundle exec on unicorn I didn't work and I had to install ruby-unicorn with my package manager, but I included it in redmine, I'm super confused
[18:30:44] Xogium: what I'm just trying torun now is 'bundle exec unicorn --help' so not calling redmine
[18:32:52] Xogium: I think I'm so confused I don't understand what I'm doing anymore
[18:33:28] xco: relax don’t be confused :P
[18:33:43] xco: i’m reading the installation guide from Redmine’s page
[18:34:00] xco: i don’t see anywhere where they ask you to run the command you’re running anyway
[18:34:23] xco: anyway are you using RVM or something to manage Ruby versions?
[18:34:28] Xogium: hmm, seems like redmine put all its gems into a vendor/bundle subdir
[18:35:02] xco: are we talking about the same “redmine” this one? https://github.com/redmine/redmine
[18:35:05] Xogium: so I have to do 'bundle exec /usr/share/webapps/redmine/vendor/bundle/ruby/2.6.0/bin/unicorn --help' OOF
[18:36:32] Xogium: xco: yes that redmine
[18:36:54] Xogium: man that's a hell of a long path
[18:37:16] xco: well if it works for you now the great new!!!
[18:37:40] Xogium: wait wait, I didn't start redmine just yet ! :D
[18:38:09] Xogium: man my head hurt after 3 days of this lol
[18:45:33] Xogium: xco: well, unicorn itself runs, that I can ask for --help, but now if I do 'unicorn -E production -D -c /etc/unicorn/redmine.ru' I get this
[18:45:36] Xogium: /usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem unicorn (>= 0.a) with executable unicorn (Gem::GemNotFoundException)
[18:45:39] Xogium: from /usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
[18:45:42] Xogium: from /usr/share/webapps/redmine/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `<main>'
[18:46:26] Xogium: what'd I mess up again ? Lol
[18:47:04] Xogium: I mean, the gem is in /usr/share/webapps/redmine/vendor/bundle…
[18:47:39] Xogium: I can pastebin my redmine.ru if that would help
[18:47:57] xco: redmine.ru is not needed
[18:48:03] xco: so basic things first
[18:48:10] xco: what are you using to manage Ruby?
[18:48:15] xco: rbenv? RVM?
[18:48:34] Xogium: packages frm archlinux
[18:48:37] Xogium: err, from
[18:48:56] Xogium: they are all put in /usr/lib/ruby, except the gems that I bundle with redmine
[18:49:14] xco: what’s your current ruby version? :)
[18:49:20] xco: do ruby -v
[18:49:58] Xogium: xco: ruby 2.6.3p62 (2019-04-16 revision 67580)
[18:50:06] xco: well there you go
[18:50:35] xco: your gem files is looking for gems in 2.6.0’s environment
[18:50:47] xco: but you’re using 2.6.3
[18:50:50] Xogium: yeah but they all get installed there
[18:50:56] Xogium: there's no ruby 2.6.3
[18:51:25] xco: you just posted “ruby 2.6.3p62 (2019-04-16 revision 67580)”
[18:51:25] Xogium: like only dir in /usr/lib/ruby is 2.6.0 with gems and stuff for 2.6.3
[18:51:50] xco: well if i were you i’d let those match first before anything
[18:52:06] Xogium: hrmm yeah
[18:52:19] havenwood: 2.6.0 is the ABI version for Ruby 2.6.3
[18:53:05] Xogium: but its trying to find unicorn in /usr/lib/ruby, right ? But its not in there, I did not install it globally, it is in the vendor/bundle stuff that is in the redmine folder
[18:53:31] havenwood: Xogium: Sanity check that Bundler is installed with your current Ruby?
[18:53:49] havenwood: Xogium: gem which bundler
[18:53:54] havenwood: Xogium: which bundle
[18:54:17] xco: do `gem install bundler`
[18:54:29] Xogium: which is exactly what I'm running… 'bundle exec /usr/share/webapps/redmine/vendor/bundle/bin/unicorn -D -E production -c /etc/unicorn/redmine.ru' is the full command I'm attempting
[18:54:37] Xogium: let me check that
[18:55:14] Xogium: gem list definitely talks about bundler
[18:55:49] Xogium: could that be that its path for gems is not the correct one ?
[18:56:08] Xogium: like 'bundle config path'
[18:56:30] Xogium: just thinking that… I might be totally wrong
[18:56:39] havenwood: Xogium: And Unicorn is in your Gemfile?
[18:56:48] Xogium: yeah, for redmine
[18:57:15] Xogium: I can do 'bundle exec $super-long-path/bin/uniclrn --help' just fine
[18:57:23] Xogium: err, unicorn --help sorry
[18:57:26] havenwood: Xogium: You see the gem with?: bundle list unicorn
[18:57:48] Xogium: its not globally instaled, its only installed in redmine/vendor/bundle folder
[18:58:32] havenwood: Xogium: Do you see it with? bundle info unicorn
[18:58:54] havenwood: or: bundle list unicorn
[18:59:02] Xogium: yes, I see it
[18:59:31] Xogium: Path: /usr/share/webapps/redmine/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1
[19:00:02] Xogium: gem list unicron doesn't show but info does
[19:00:13] Xogium: damn, unicorn
[19:00:18] Xogium: not unicron lol
[19:02:06] havenwood: Xogium: Have you run `bundle` lately?
[19:02:21] Xogium: yes, right before coming here, I made a fresh install
[19:02:22] havenwood: Xogium: What version does your Gemfile.lock say it was bundled with?
[19:02:39] Xogium: for unicorn ? Leme see
[19:02:43] havenwood: Xogium: Is it the same version as? bundle -v
[19:02:55] havenwood: Xogium: I mean: BUNDLED WITH
[19:02:59] havenwood: Xogium: I mean: BUNDLED WITH 2.0.1
[19:04:46] Xogium: yeah bundler is v 2.0.1
[19:05:43] Xogium: sorry :) I'm both blind and getting quite tired on this
[19:08:07] Xogium: I've just made sure that the path was fine
[19:08:20] Xogium: like with bundle config path, it said
[19:08:36] Xogium: Set for your local app (/usr/share/webapps/redmine/.bundle/config): "vendor/bundle"
[19:08:41] Xogium: so that at least is fine
[19:15:28] Xogium: so hmm, what is going on exactly ? Who's searching for gems at a bad place, redmine itself ?
[19:33:58] FrankDW: has joined #RubyOnRails
[19:34:55] blackmesa1: has joined #RubyOnRails
[19:43:49] mikecmpbll: has joined #RubyOnRails
[19:56:24] orbyt_: has joined #RubyOnRails
[20:25:50] morozovm: has joined #RubyOnRails
[20:37:05] octos: has joined #RubyOnRails
[20:45:04] _aeris: has joined #RubyOnRails
[20:51:36] visbe: has joined #RubyOnRails
[20:52:33] visbe: Hello is someone know what to do when that happen : [DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
[21:03:47] catbusters: has joined #RubyOnRails
[21:06:45] havenwood: visbe: Instead of `require 'RMagick'` use `require 'rmagick'`.
[21:07:16] havenwood: visbe: Or check which gem is doing that, and bump the version or make a PR.
[21:12:23] octos: has joined #RubyOnRails
[21:12:49] octos: has joined #RubyOnRails
[21:22:15] xco: has joined #RubyOnRails
[21:31:57] morozovm: has joined #RubyOnRails
[21:34:26] morozovm: has joined #RubyOnRails
[21:38:36] Stabby: has joined #RubyOnRails
[21:39:52] Stabby: Trying to set SECRET_KEY_BASE without typing it in secrets.yml for production server. Using passenger, can only insert it by setting it in nginx .conf file. Is there any way to make it an ENV variable?
[21:43:39] Stabby: Variable not read from secrets.yml when using passenger, application generates incomplete response.
[21:48:40] jhass: Rails.application.config.secret_token = ENV["SECRET_KEY_BASE"] should do I think
[21:49:06] Stabby: That's the default. It doesn't get read from ENV when using passenger.
[21:53:03] Stabby: I've already done EXPORT and it works, but for some reason it just won't run.
[21:55:35] Stabby: I can use passenger_env in app.conf, but that doesn't look like proper practice. I've read about the dot-env gem, but that looks even worse.
[21:55:48] sameerynho: has joined #RubyOnRails
[21:56:06] Stabby: Is there any other way to set the ENV var'
[21:56:08] Stabby: Is there any other way to set the ENV var?
[22:08:31] ur5us: has joined #RubyOnRails
[22:14:22] havenwood: Stabby: passenger_env_var SECRET_KEY_BASE sekret-here;
[22:14:36] havenwood: Stabby: https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_env_var
[22:14:47] Stabby: That's what I'm doing, havenwood. I am just not certain it is good practice.
[22:15:08] havenwood: Stabby: Sure, it's fine.
[22:15:27] Stabby: So, that's the right way, then? OK...
[22:16:08] Stabby: I gotta read-protect the .conf file, though, right? Otherwise, someone with my priv key could log in to the deploy account and read it without the sudo password?
[22:21:32] Stabby: Ahm nevermind. This is fine. Thank you.
[22:23:34] Astr0surf3r: has joined #RubyOnRails
[22:26:19] Astr0surf3r: has joined #RubyOnRails
[22:46:24] Frag_: has joined #RubyOnRails
[22:47:46] choke: has joined #RubyOnRails
[23:14:53] brool: has joined #RubyOnRails
[23:17:30] quazimodo: has joined #RubyOnRails
[23:41:10] weteamsteve: has joined #RubyOnRails
[23:47:38] choke: has joined #RubyOnRails