« Back to channel list

#RubyOnRails - 18 March 2017

« Back 1 day Forward 1 day »
[00:01:37] amperry: Hi folks, I've got a WorkOrder model, the table for which I created manually. In `work_orders_controller.rb#create`, I couldn't get an id even after calling `.save` manually. I see the new order in the db, with an id of 4, but when I visit `localhost:3000/work_orders/4`, I get: "Unknown primary key for table work_orders in model WorkOrder."
[00:02:10] amperry: What did I do wrong?
[00:02:25] _3dwardsharp: amperry: is work_orders in your schema.rb?
[00:03:03] amperry: _3dwardsharp: yes
[00:03:36] _3dwardsharp: what do you mean by "created manually"?
[00:03:55] pwnd_nsfw: has joined #RubyOnRails
[00:04:15] amperry: did not write a migration for it, just wrote the create table statement in the psql client;
[00:04:59] _3dwardsharp: ...and you put the entry in schema.rb yourself?
[00:05:22] WinterBluFox: has joined #RubyOnRails
[00:05:34] amperry: nope, just ran `bundle exec rake db:schema:dump`
[00:06:06] amperry: although I see something odd there that says 'id: false'
[00:06:21] amperry: I don't know what that means, but I certainly didn't write it.
[00:06:43] _3dwardsharp: why would you not write a migration?
[00:06:46] amperry: I mean, I can sorta guess what it means
[00:06:58] amperry: but I don't know why it's there.
[00:07:07] jenrzzz_: has joined #RubyOnRails
[00:07:41] npgm: has joined #RubyOnRails
[00:08:17] amperry: _3dwardsharp: it always seemed easier for me to run db:schema:dump rather than bother with them. They also seemed to be a fertile source of subtle bugs when I did.
[00:09:46] _3dwardsharp: huh, it seems like you are getting more bugs otherwise ;)
[00:10:01] amperry: haven't in the past
[00:12:27] Pumukel: has joined #RubyOnRails
[00:12:44] amperry: in any case, I tried editing it, restarting, and I still get the same error.
[00:16:02] amperry: This seems to help, but I don't know why I had to add self.primary_key = "id" for this one table: http://stackoverflow.com/a/18058207/1255874
[00:16:17] amperry: this one table/model, I should say
[00:16:59] amperry: although possibly I haven't set it up as the PK in the db. Hmmm....
[00:18:26] _djbkd: has joined #RubyOnRails
[00:19:08] amperry: Yup, was the problem.
[00:19:23] glasz: write migrations. dont screw around in the db.
[00:24:23] pwnd_nsfw`: has joined #RubyOnRails
[00:26:40] brent__: has joined #RubyOnRails
[00:26:52] amperry: has joined #RubyOnRails
[00:33:19] doodlehaus: has joined #RubyOnRails
[00:40:51] pwnd_nsfw: has joined #RubyOnRails
[00:48:52] spicerack: has joined #RubyOnRails
[01:06:26] keerthana: has joined #RubyOnRails
[01:08:14] pwnd_nsfw`: has joined #RubyOnRails
[01:08:54] AndroUser2: has joined #RubyOnRails
[01:12:34] knight33: has joined #RubyOnRails
[01:18:07] Darmani: has joined #RubyOnRails
[01:18:08] quazimodo: has joined #RubyOnRails
[01:18:17] Darmani: Does anyone here program from a Windows 10 OS?
[01:18:23] superlou: has joined #RubyOnRails
[01:22:59] rgr_: has joined #RubyOnRails
[01:24:33] havenwood: Darmani: At our local Ruby group I setup a Windows 10 user last week with Windows Subsystem for Linux, ruby-install and chruby and it went off without a hitch.
[01:24:47] havenwood: Darmani: https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
[01:25:10] Darmani: havenwood: That's awesome! That's what I'm in the process of doing. I already have the subsystem installed.
[01:26:00] Darmani: havenwood: I'm having trouble with the Linux Shell though. None of the files I'm creating from the Shell can be seen from the Windows File Explorer...
[01:39:58] pawnbox: has joined #RubyOnRails
[01:44:32] Augusto: has joined #RubyOnRails
[01:48:51] Jasaka: has joined #RubyOnRails
[01:49:44] _3dwardsharp: has joined #RubyOnRails
[01:50:12] augustoaugusto: has joined #RubyOnRails
[01:50:32] Jasaka|NA: has joined #RubyOnRails
[01:55:06] jenrzzz: has joined #RubyOnRails
[01:57:03] roflmyeggo: has joined #RubyOnRails
[02:00:02] shinnya: has joined #RubyOnRails
[02:00:09] pawnbox: has joined #RubyOnRails
[02:00:30] augustoaugusto: has joined #RubyOnRails
[02:06:09] AnomalousBit: has joined #RubyOnRails
[02:09:25] Jasaka: has joined #RubyOnRails
[02:14:12] lightheaded: has joined #RubyOnRails
[02:15:59] Jasaka|NA: has joined #RubyOnRails
[02:17:38] Jasaka|NA: has joined #RubyOnRails
[02:18:26] Rodya_: has joined #RubyOnRails
[02:20:33] coatezy: has joined #RubyOnRails
[02:29:04] webdestroya: has joined #RubyOnRails
[02:29:36] Jasaka|NA: has joined #RubyOnRails
[02:34:52] Jasaka|NA: has joined #RubyOnRails
[02:39:12] AnomalousBit: has joined #RubyOnRails
[02:41:22] duderonomy: has joined #RubyOnRails
[02:44:44] Jasaka: has joined #RubyOnRails
[02:45:06] iamayam: has joined #RubyOnRails
[02:47:50] w0bni: has joined #RubyOnRails
[02:51:15] helpa: has joined #RubyOnRails
[02:53:15] helpa: has joined #RubyOnRails
[02:54:13] pwnd_nsfw: has joined #RubyOnRails
[02:54:13] eclecticjohny: has joined #RubyOnRails
[02:54:57] ahrs: has joined #RubyOnRails
[02:56:32] iszak: has joined #RubyOnRails
[02:56:32] iszak: has joined #RubyOnRails
[02:59:26] pawnbox: has joined #RubyOnRails
[03:00:33] doodlehaus: has joined #RubyOnRails
[03:04:57] libastral: has joined #RubyOnRails
[03:11:30] machty: i am attempting a tricky refactor that involves splitting an ActiveRecord model/table into two
[03:12:19] machty: for the purpose of minimizing code changes i've attempted an approach where legacy code that i dont' want to change can still interface with a facade class that pretends to be that old style class
[03:12:26] machty: but really it delegates to the two new active record classes/models
[03:12:36] machty: it's working _pretty_ well so far
[03:12:54] machty: but now there's an `old_class_instance.update_attribute()` call
[03:13:17] machty: and basically the attribute being updated might live on one new class or the other
[03:13:28] machty: i'm wondering if rails has a built in mechanism to support this
[03:13:33] machty: this kind of refactor
[03:13:46] machty: so that i don't have to keep pulling this sweater thread
[03:14:15] Technodrome: has joined #RubyOnRails
[03:20:51] irishfromua: has joined #RubyOnRails
[03:26:03] nya: has joined #RubyOnRails
[03:32:57] quazimodo: has joined #RubyOnRails
[03:37:15] raul782: has joined #RubyOnRails
[03:38:27] raul782: Hello guys, is there a gem that can audit correctly many to many relationships or habtm w/MySQL, papertrail and audited are giving us erros, it looks like there is a limitation
[03:39:30] Limix: has joined #RubyOnRails
[03:43:28] aajjbb: has joined #RubyOnRails
[03:57:49] roflmyeggo: has joined #RubyOnRails
[03:58:36] pawnbox: has joined #RubyOnRails
[04:00:19] jenrzzz: has joined #RubyOnRails
[04:00:19] jenrzzz: has joined #RubyOnRails
[04:03:20] bga57: has joined #RubyOnRails
[04:03:23] alex88: has joined #RubyOnRails
[04:08:04] w0bni: has joined #RubyOnRails
[04:19:17] knight33: has joined #RubyOnRails
[04:23:51] Derperperd: has joined #RubyOnRails
[04:27:18] roflmyeggo: has joined #RubyOnRails
[04:28:15] pawnbox: has joined #RubyOnRails
[04:40:39] Jasaka|NA: has joined #RubyOnRails
[04:43:27] cschneid_: has joined #RubyOnRails
[04:44:20] lightheaded: has joined #RubyOnRails
[04:46:15] tomasm-: has joined #RubyOnRails
[04:49:38] bungoman: has joined #RubyOnRails
[04:51:13] pawnbox: has joined #RubyOnRails
[05:03:48] irishfromua: has joined #RubyOnRails
[05:08:20] w0bni: has joined #RubyOnRails
[05:10:50] username1: has joined #RubyOnRails
[05:10:53] username2: has joined #RubyOnRails
[05:18:27] Pumukel: has joined #RubyOnRails
[05:37:48] sung: has joined #RubyOnRails
[05:37:48] sung: has joined #RubyOnRails
[05:47:53] Jasaka|NA: has joined #RubyOnRails
[05:49:54] pwnd_nsfw`: has joined #RubyOnRails
[05:56:47] Pumukel: has joined #RubyOnRails
[05:59:27] Cohedrin: has joined #RubyOnRails
[05:59:54] loechel: has joined #RubyOnRails
[06:00:13] pawnbox: has joined #RubyOnRails
[06:09:50] Derperperd: has joined #RubyOnRails
[06:14:30] Technodrome: has joined #RubyOnRails
[06:17:37] AnoHito: has joined #RubyOnRails
[06:29:56] pawnbox: has joined #RubyOnRails
[06:30:45] pwnd_nsfw: has joined #RubyOnRails
[06:41:12] Technodrome: has joined #RubyOnRails
[06:50:52] jenrzzz: has joined #RubyOnRails
[06:52:22] kristoff_: has joined #RubyOnRails
[06:59:25] itsgokul: has joined #RubyOnRails
[06:59:47] pawnbox: has joined #RubyOnRails
[07:01:46] Qchmqs: has joined #RubyOnRails
[07:22:10] srinidhi: has joined #RubyOnRails
[07:24:15] knight33: has joined #RubyOnRails
[07:29:18] pawnbox: has joined #RubyOnRails
[07:32:03] pwnd_nsfw`: has joined #RubyOnRails
[07:42:10] otherj: has joined #RubyOnRails
[07:46:21] _3dwardsharp: has joined #RubyOnRails
[07:47:05] dionysus69: has joined #RubyOnRails
[07:49:18] pawnbox: has joined #RubyOnRails
[07:54:27] Coldblackice: has joined #RubyOnRails
[07:55:10] kernelPaniq: has joined #RubyOnRails
[08:05:14] bga57: has joined #RubyOnRails
[08:15:48] tofutoon: has left #RubyOnRails: ()
[08:22:31] gambl0re: has joined #RubyOnRails
[08:25:32] Technodrome: has joined #RubyOnRails
[08:28:38] pawnbox: has joined #RubyOnRails
[08:30:57] FoolsGambit: has joined #RubyOnRails
[08:31:27] otherj: has joined #RubyOnRails
[08:38:04] gambl0re: has joined #RubyOnRails
[08:39:21] darutoko: has joined #RubyOnRails
[08:43:18] jenrzzz: has joined #RubyOnRails
[08:43:18] jenrzzz: has joined #RubyOnRails
[08:53:19] hwang: has joined #RubyOnRails
[08:53:32] hwang: has left #RubyOnRails: ()
[08:58:07] patarr: has joined #RubyOnRails
[08:58:15] pawnbox: has joined #RubyOnRails
[09:10:13] username1: has joined #RubyOnRails
[09:10:17] username2: has joined #RubyOnRails
[09:10:19] jenrzzz: has joined #RubyOnRails
[09:10:19] jenrzzz: has joined #RubyOnRails
[09:17:48] pawnbox: has joined #RubyOnRails
[09:21:06] cschneid_: has joined #RubyOnRails
[09:29:59] jgt: has joined #RubyOnRails
[09:39:58] teddysmoker: has joined #RubyOnRails
[09:41:12] AnoHito: has joined #RubyOnRails
[09:43:49] AzaToth: has joined #RubyOnRails
[09:52:30] srinidhi: has joined #RubyOnRails
[09:58:58] brendan6: has joined #RubyOnRails
[10:01:18] cschneid_: has joined #RubyOnRails
[10:12:28] w0bni: has joined #RubyOnRails
[10:13:42] rgr_: has joined #RubyOnRails
[10:14:17] rgr_: has joined #RubyOnRails
[10:24:37] arBmind: has joined #RubyOnRails
[10:28:18] pawnbox: has joined #RubyOnRails
[10:36:10] shinnya: has joined #RubyOnRails
[10:41:04] jsrn_: has joined #RubyOnRails
[10:43:19] srinidhi: has joined #RubyOnRails
[10:49:25] nya: has joined #RubyOnRails
[10:50:40] Fernando-Basso: has joined #RubyOnRails
[10:54:44] cschneid_: has joined #RubyOnRails
[10:58:31] patarr: has joined #RubyOnRails
[11:17:11] gambl0re: has joined #RubyOnRails
[11:25:23] NoGodDamnIdea: has joined #RubyOnRails
[11:25:23] NoGodDamnIdea: has joined #RubyOnRails
[11:26:07] username1: has joined #RubyOnRails
[11:26:13] username2: has joined #RubyOnRails
[11:28:57] lightheaded: has joined #RubyOnRails
[11:34:51] r3vDev: has joined #RubyOnRails
[11:37:24] peterhil: has joined #RubyOnRails
[11:38:33] Robtop__: has joined #RubyOnRails
[11:45:47] lightheaded: has joined #RubyOnRails
[11:47:46] roamingdog: has joined #RubyOnRails
[11:50:43] superlou: has joined #RubyOnRails
[11:53:20] echosystm: has joined #RubyOnRails
[11:54:46] echosystm: whats the best way to install ruby on a server?
[11:55:02] echosystm: i've used rbenv and rvm in the past, but all the shell hacks didn't sit right with me
[11:55:11] echosystm: the last few servers i set up, i installed from source manually
[11:55:21] echosystm: but surely there is something better
[12:00:55] matthewd_: has joined #RubyOnRails
[12:02:53] roamingdog: echosystm: i like ruby-install to install, chruby to manage
[12:09:25] d0nn1e: has joined #RubyOnRails
[12:11:15] username1: has joined #RubyOnRails
[12:11:18] username2: has joined #RubyOnRails
[12:11:49] Rodya_: has joined #RubyOnRails
[12:11:51] szulak: has joined #RubyOnRails
[12:14:46] rgr: has joined #RubyOnRails
[12:14:51] brent__: has joined #RubyOnRails
[12:21:36] r3vDev: has joined #RubyOnRails
[12:26:15] blackmesa: has joined #RubyOnRails
[12:33:52] pulkit4tech: has joined #RubyOnRails
[12:37:43] rgtk: has joined #RubyOnRails
[12:42:45] pLaTo0n: has joined #RubyOnRails
[12:42:50] brent__: has joined #RubyOnRails
[12:43:57] hexkey[m]: has joined #RubyOnRails
[12:45:06] jennye: has joined #RubyOnRails
[12:46:06] jennye: Hello. I'm trying to setup backups with the 'backup' gem, and store these on Amazon S3. Now in the generated backup.rb I need to fill this in: store_with SCP do |server| server.username = "my_username" server.password = "my_password" server.ip = "123.45.678.90" server.port = 22 server.path = "~/backups/" server.keep = 5 end. Where can I find these credentials? (Sorry for the
[12:46:34] dionysus69: has joined #RubyOnRails
[12:53:37] braidn[m]: has joined #RubyOnRails
[12:53:37] WinterFox[m]: has joined #RubyOnRails
[12:53:44] velu_aon[m]: has joined #RubyOnRails
[12:53:44] igunublue[m]: has joined #RubyOnRails
[12:53:44] mirkobenedetti[m: has joined #RubyOnRails
[12:53:45] vonagam[m]: has joined #RubyOnRails
[12:53:45] lukas_[m]: has joined #RubyOnRails
[12:54:44] pwnd_nsfw: has joined #RubyOnRails
[12:55:54] jonno11: has joined #RubyOnRails
[12:59:30] pickle_: has joined #RubyOnRails
[13:01:27] harfangk: has joined #RubyOnRails
[13:02:37] pwnd_nsfw`: has joined #RubyOnRails
[13:15:09] roflmyeggo: has joined #RubyOnRails
[13:18:32] Fernando-Basso: has joined #RubyOnRails
[13:18:40] Cohedrin: has joined #RubyOnRails
[13:22:09] meoblast001: has joined #RubyOnRails
[13:25:34] harfangk: has joined #RubyOnRails
[13:35:36] lupine: has joined #RubyOnRails
[13:37:50] r3vDev: has joined #RubyOnRails
[13:39:17] megan_: has joined #RubyOnRails
[13:40:32] megan_: I'm using Whenever and Backup to schedule backups each 24 hours. I've tested this on my local machine and works perfect. But my question is; how can it be that when I quit my server I still get succes emails? Shouldn't this be not possible due I dont have my server running?
[13:43:15] knight33: has joined #RubyOnRails
[13:43:19] HoierM_: has joined #RubyOnRails
[13:43:42] daed: megan_: there must be another process running outside of the 'rails server' itself
[13:45:44] megan_: daed: can i check for those processors? And don't you think it's odd, that it still makes backup even tho the rails server is off?
[13:46:04] daed: megan_: not really, for example sidekiq and other background things run as their own process, not the web server itself
[13:46:15] daed: i would list processes and see what's going on
[13:46:46] daed: looks like 'whenever' might even be cron-related
[13:46:47] megan_: ah I see, would you mind telling me how I can list these processes?
[13:47:12] daed: $ whenever --update-crontab
[13:47:14] daed: did you run this?
[13:47:27] daed: it looks like it's inserting actual cron jobs
[13:47:29] daed: which are OS-level
[13:47:32] daed: not rails level
[13:47:37] daed: if you run "crontab -e"
[13:47:39] daed: you will see the jobs
[13:48:09] megan_: Yes, i see the jobs now. So it still runs because it runs on OS level
[13:48:22] megan_: instead of 'rails server'
[13:48:23] daed: yep, apache and unicorn and nginx and rails can all die
[13:48:28] daed: but the OS will still run crons
[13:48:43] megan_: allright, thanks alot!
[13:48:58] daed: i usually use crons manually, didn't even know about whenever :)
[13:49:06] aajjbb: has joined #RubyOnRails
[13:53:00] r3vDev: has joined #RubyOnRails
[13:54:17] meoblast001: has joined #RubyOnRails
[13:55:18] daed: megan_: how do you like Backup?
[13:55:23] daed: i've never heard of it or used it before
[13:55:56] daed: we usually just do a pgdump or mysqldump or whatever database-level backups and scp the files off-site
[13:56:04] megan_: I just started using it as well, it really is easy to use.
[13:56:20] megan_: I normally used pgdump to
[13:56:56] megan_: Now I'm using Backup with Whenever and SCP the backups to Amazon S3.
[13:57:00] daed: ahh, looks like this just cleans up the whole process
[13:57:09] daed: with a clean ruby DSL
[13:58:02] Or1on: has joined #RubyOnRails
[13:58:10] megan_: what is DSL?
[13:58:46] daed: 'domain specific language', ruby's meta-programming, activerecord, rails, is all kinda built around that
[14:01:24] daed: for example routes.rb is all a DSL
[14:02:34] megan_: So basically a DSL is created to 'solve' a specific task?
[14:03:16] daed: pretty much, like in routes.rb you just say "resources :xyz"
[14:03:39] daed: instead of declaring a bunch of other code like "Routes.create(:blah, 'xyz')" etc etc
[14:03:56] daed: ruby and rails allow awesome clean DSL code
[14:04:13] daed: cleans up all the noisy normal code
[14:05:34] Technodrome: has joined #RubyOnRails
[14:05:54] hotpancakes: has joined #RubyOnRails
[14:06:54] chagel: has joined #RubyOnRails
[14:07:17] roflmyeggo: seeking high level advice
[14:07:28] daed: roflmyeggo: whats up
[14:07:28] roflmyeggo: im looking to incorporate a blog portion to my rails app
[14:07:42] roflmyeggo: is it worth using a premade gem?
[14:07:47] roflmyeggo: or should i just spin this thing up on my own
[14:07:53] daed: might depend on the structure of the existing app
[14:07:59] daed: integration wise
[14:08:04] roflmyeggo: no integration problems
[14:08:07] roflmyeggo: still very early stage
[14:08:15] daed: to be fair though, rolling your own blog system is pretty dead simple in rails as-is
[14:08:20] daed: might be a little more work
[14:08:28] daed: what gems are you looking at?
[14:08:30] roflmyeggo: thats what i was thinking
[14:09:07] daed: yeah there's basically a BlogEntry model right? rails already has created_at updated_at etc
[14:09:07] roflmyeggo: just been browing ruby-toolbox for blog gems
[14:09:29] roflmyeggo: yeah its pretty straight forward
[14:09:29] daed: subject and body text fields
[14:09:44] roflmyeggo: the only thing i was considering is the backend portion
[14:09:51] daed: https://draftjs.org/
[14:09:52] roflmyeggo: but that should be relatively easy to hook up
[14:10:00] daed: reminds me of the rich text editor react component i just ran into
[14:10:22] roflmyeggo: for the backend portion
[14:10:28] daed: the backend seems like the easy part
[14:10:54] roflmyeggo: speaking of the backend, ive never tried to create my own backend
[14:11:15] roflmyeggo: im looking into Active Admin
[14:11:22] daed: oh for the admin stuff
[14:11:37] daed: after about 8 rails projects they generally are custom
[14:11:40] pawnbox: has joined #RubyOnRails
[14:11:43] daed: but activeadmin isn't bad
[14:11:48] daed: it basically just gives you a UI to the database
[14:12:06] roflmyeggo: daed: so you usually go a custom route?
[14:12:48] daed: in all my experiences yeah
[14:13:07] roflmyeggo: daed: are these personal apps you are talking about? Or client apps? Or part of your job
[14:13:45] daed: very large apps, latimes.com, chicagotribune.come, michaeljfox.org, etc
[14:13:51] daed: so that might not apply to smaller apps
[14:13:58] roflmyeggo: daed: gotcha
[14:14:04] daed: rails_admin looks worthwhile
[14:14:05] roflmyeggo: thats where im struggling
[14:14:17] roflmyeggo: i work on large scale RoR app as well
[14:14:29] roflmyeggo: but when it comes to spinning something up for myself
[14:14:43] roflmyeggo: it becomes less clear if the investment of not using a pre-made gem is worth it
[14:14:54] daed: the blogging domain should have been solved 100 times by now
[14:15:14] daed: i would say it's worth trying
[14:15:21] daed: the pre-made gem route
[14:15:41] roflmyeggo: daed: cool, thanks man
[14:15:58] daed: do i get to read your blog when it's done?!
[14:16:25] DLSteve: has joined #RubyOnRails
[14:17:09] roflmyeggo: daed: heh, will come back with a link in a few months
[14:20:03] r3vDev: has joined #RubyOnRails
[14:22:23] Chagel_: has joined #RubyOnRails
[14:25:31] Derperperd: has joined #RubyOnRails
[14:28:46] chagel: has joined #RubyOnRails
[14:29:00] meoblast001: has joined #RubyOnRails
[14:29:05] nOwz: has joined #RubyOnRails
[14:30:24] Or1on: has joined #RubyOnRails
[14:40:56] lightheaded: has joined #RubyOnRails
[14:41:41] lightheaded: has joined #RubyOnRails
[14:42:31] lightheaded: has joined #RubyOnRails
[14:43:16] lightheaded: has joined #RubyOnRails
[14:48:22] chouhoulis: has joined #RubyOnRails
[14:49:59] chouhoul_: has joined #RubyOnRails
[14:50:52] meoblast001: has joined #RubyOnRails
[14:51:12] blackmesa: has joined #RubyOnRails
[14:55:08] Derperperd: has joined #RubyOnRails
[14:57:16] GodFather__: has joined #RubyOnRails
[14:59:26] chagel: has joined #RubyOnRails
[15:00:57] GodFather__: has joined #RubyOnRails
[15:01:18] pawnbox: has joined #RubyOnRails
[15:02:47] ovaltine: has joined #RubyOnRails
[15:02:57] marr: has joined #RubyOnRails
[15:06:22] lightheaded: has joined #RubyOnRails
[15:10:16] rgr: has joined #RubyOnRails
[15:15:30] centrx: has joined #RubyOnRails
[15:15:30] centrx: has joined #RubyOnRails
[15:19:58] lightheaded: has joined #RubyOnRails
[15:20:17] dionysus69: has joined #RubyOnRails
[15:25:36] blackmesa: has joined #RubyOnRails
[15:26:04] aajjbb: has joined #RubyOnRails
[15:27:03] rgtk: has joined #RubyOnRails
[15:33:59] alex88: has joined #RubyOnRails
[15:48:52] rgtk: has joined #RubyOnRails
[15:55:19] d0nn1e: has joined #RubyOnRails
[15:55:46] kies: has joined #RubyOnRails
[16:05:27] cschneid_: has joined #RubyOnRails
[16:07:02] cschneid_: has joined #RubyOnRails
[16:11:20] Dysp: has joined #RubyOnRails
[16:14:10] Dysp: Hey people. I was wondering if someone could help me understand a concept. I am retrieving an activerecord_relation via .where(foo: "bar") and passing it on to the view. How do I access attributes on the record and print it on the view? If I simply call .foo in the view, I get unknown method
[16:16:25] Peter_SS1: has joined #RubyOnRails
[16:17:39] Peter_SS1: I'm using the Whenever gem for scheduled cronjobs, works perfect. But when I quit my server the cronjob still 'succeeds'. So it basically runs on OS level instead of listening to the rails server itself. I'm looking for some more information on this aspect, does anyone know some resources that can support me on this?
[16:24:22] Papierkorb: whenever creates, as you mentioned, cronjobs, which are run by your cron daemon
[16:25:56] Peter_SS1: Cron daemon? actually never heard of that, I'll have a look at this.
[16:29:09] Papierkorb: peter____: There are many different implementations, though you should find information on that in the docs/wiki of your distribution. most ship with one
[16:33:01] blackmesa: has joined #RubyOnRails
[16:35:13] lxsameer: has joined #RubyOnRails
[16:37:11] centrx: Dysp: ActiveRecord queries generally return a collection, not a single record
[16:44:31] nOwz: has joined #RubyOnRails
[16:45:43] keerthana: has joined #RubyOnRails
[16:50:09] Hoier: has joined #RubyOnRails
[17:01:05] blackmesa: has joined #RubyOnRails
[17:02:25] mchelen2: has joined #RubyOnRails
[17:13:12] pawnbox_: has joined #RubyOnRails
[17:23:17] Technodrome: has joined #RubyOnRails
[17:31:59] alex88_: has joined #RubyOnRails
[17:36:32] Dysp: centrx: I see.
[17:36:44] Dysp: I think I understand it now, though. However something new basic came up.
[17:36:51] Dysp: Hmm, wait.
[17:40:39] Derperperd: has joined #RubyOnRails
[17:46:17] naprimer: has joined #RubyOnRails
[17:46:19] Cohedrin: has joined #RubyOnRails
[17:51:41] meoblast001: has joined #RubyOnRails
[17:52:55] pLaTo0n: has joined #RubyOnRails
[17:58:01] blackmesa: has joined #RubyOnRails
[17:59:22] dionysus69: has joined #RubyOnRails
[18:01:38] AnomalousBit: has joined #RubyOnRails
[18:21:03] banisterfiend: has joined #RubyOnRails
[18:23:32] roflmyeggo: has joined #RubyOnRails
[18:26:11] DoubleMalt: has joined #RubyOnRails
[18:26:45] jsrn_: has joined #RubyOnRails
[18:31:52] AnomalousBit: has joined #RubyOnRails
[18:34:12] Puffball: has joined #RubyOnRails
[18:39:24] irishfromua: has joined #RubyOnRails
[18:44:39] Axsuul: has joined #RubyOnRails
[18:48:14] Aherin: has joined #RubyOnRails
[18:49:48] gambl0re: has joined #RubyOnRails
[18:50:24] Derperperd: has joined #RubyOnRails
[18:53:33] Technodrome: has joined #RubyOnRails
[18:54:59] dtzuzu: has joined #RubyOnRails
[18:55:34] nOwz: has joined #RubyOnRails
[19:10:07] rikkipitt: has joined #RubyOnRails
[19:12:42] rikkipitt: hey folks, i'm looking to add oauth to my rails app to authenticate against an external service to allow the user to import data easily from the third party. say I want to add another third party that does the same thing (but has a slightly different API) how should I go about normalising and importing data per third party?
[19:14:56] manjaro: has joined #RubyOnRails
[19:18:12] Derperperd: has joined #RubyOnRails
[19:33:49] doodlehaus: has joined #RubyOnRails
[19:35:50] Or1on: has joined #RubyOnRails
[19:47:31] blackmesa: has joined #RubyOnRails
[19:55:34] tomasm-: has joined #RubyOnRails
[19:59:07] Limix: has joined #RubyOnRails
[20:03:43] Derperperd: has joined #RubyOnRails
[20:03:47] blackmesa: has joined #RubyOnRails
[20:14:43] blackmesa: has joined #RubyOnRails
[20:23:53] djbkd: has joined #RubyOnRails
[20:34:43] doodlehaus: has joined #RubyOnRails
[20:39:46] szulak_: has joined #RubyOnRails
[20:43:08] hfp_work: has joined #RubyOnRails
[20:47:41] jhfisc: has joined #RubyOnRails
[21:01:52] pulkit4tech: has joined #RubyOnRails
[21:03:10] Technodrome: has joined #RubyOnRails
[21:06:49] cschneid_: has joined #RubyOnRails
[21:09:13] blackmesa: has joined #RubyOnRails
[21:09:19] cschneid_: has joined #RubyOnRails
[21:22:12] hfp_work: has joined #RubyOnRails
[21:27:11] szulak: has joined #RubyOnRails
[21:29:12] hfp_work: has joined #RubyOnRails
[21:30:23] DoctorMonocular: has joined #RubyOnRails
[21:44:14] hfp_work: has joined #RubyOnRails
[21:44:52] rgr: has joined #RubyOnRails
[21:55:09] djbkd: has joined #RubyOnRails
[22:05:17] hfp_work: has joined #RubyOnRails
[22:05:55] nertzy: has joined #RubyOnRails
[22:19:28] Cork: has joined #RubyOnRails
[22:24:25] nOwz: has joined #RubyOnRails
[22:25:35] tdy: has joined #RubyOnRails
[22:26:58] jenrzzz: has joined #RubyOnRails
[22:29:02] bywaterloo: has joined #RubyOnRails
[22:34:13] bman013: has joined #RubyOnRails
[22:35:14] Cork: has joined #RubyOnRails
[22:42:24] Technodrome: has joined #RubyOnRails
[22:43:51] Derperperd: has joined #RubyOnRails
[22:45:33] nOwz: has joined #RubyOnRails
[22:47:48] rgtk: has joined #RubyOnRails
[22:52:10] Gargron: has joined #RubyOnRails
[22:52:33] Gargron: how can i get the index of the worker process from inside the worker process when using puma?
[22:55:44] aajjbb: has joined #RubyOnRails
[23:00:48] doodlehaus: has joined #RubyOnRails
[23:02:50] akshat: has joined #RubyOnRails
[23:21:06] djbkd: has joined #RubyOnRails
[23:24:51] Technodrome: has joined #RubyOnRails
[23:24:52] Trynemjoel: has joined #RubyOnRails
[23:28:14] alex88: has joined #RubyOnRails
[23:29:57] mwlang: has joined #RubyOnRails
[23:30:06] cschneid_: has joined #RubyOnRails
[23:31:07] mwlang: I am working on a gem for Rails and want to test that I’ve correctly implemented a singleton pattern…that is, that only one instance of a class is instantiated per request. How can I set up a test to check this?
[23:36:56] alex88_: has joined #RubyOnRails
[23:53:04] lupine: is that what they're calling a singleton now?
[23:53:41] Rodya_: has joined #RubyOnRails