« Back to channel list

#RubyOnRails - 15 November 2017

« Back 1 day Forward 1 day »
[00:02:15] jrabe: has joined #RubyOnRails
[00:07:57] safetypin: has joined #RubyOnRails
[00:10:33] cagomez: has joined #RubyOnRails
[00:25:41] SteenJobs: has joined #RubyOnRails
[00:26:14] hahuang65: has joined #RubyOnRails
[00:26:25] Sigyn: has joined #RubyOnRails
[00:28:00] Technodrome: has joined #RubyOnRails
[00:36:00] kus_ubuntui686: has joined #RubyOnRails
[00:45:11] Technodrome: has joined #RubyOnRails
[00:45:27] alfiemax: has joined #RubyOnRails
[01:03:15] sevenseacat: has joined #RubyOnRails
[01:26:56] Jameser: has joined #RubyOnRails
[01:31:38] hahuang65: has joined #RubyOnRails
[02:01:59] gil_: has joined #RubyOnRails
[02:08:49] irishfromua: has joined #RubyOnRails
[02:18:43] ResidentBiscuit: has joined #RubyOnRails
[02:20:20] nachoman: has joined #RubyOnRails
[02:24:20] nachoman: (Devise) is it ok if I use devise_for :admin, class_name: 'User' to avoid writing all routes for admin/...<paths> again?
[02:45:22] Radar: nachoman: seems OK to me
[02:48:32] nachoman: Thanks. I'm using polymorphic associations between User and Admin, Customers, ... should I use STI? is it simpler?
[02:49:47] drowze: has joined #RubyOnRails
[02:54:39] guacamole: has joined #RubyOnRails
[03:09:40] guacamole: has joined #RubyOnRails
[03:18:01] safetypin: has joined #RubyOnRails
[03:18:58] hahuang65: has joined #RubyOnRails
[03:30:18] andrew91841: has joined #RubyOnRails
[03:52:34] Technodrome: has joined #RubyOnRails
[03:53:24] one_zero: has joined #RubyOnRails
[03:59:54] orbyt_: has joined #RubyOnRails
[04:04:53] srinidhi: has joined #RubyOnRails
[04:09:33] knight33: has joined #RubyOnRails
[04:10:23] knight33: has left #RubyOnRails: ()
[04:16:15] moei: has joined #RubyOnRails
[04:20:03] hahuang65: has joined #RubyOnRails
[04:25:09] w0b: has joined #RubyOnRails
[04:37:47] Technodrome: back to my rails app
[04:40:28] drowze: has joined #RubyOnRails
[04:46:24] iamarun: has joined #RubyOnRails
[04:54:59] duderonomy: has joined #RubyOnRails
[05:08:29] apparition: has joined #RubyOnRails
[05:35:32] Exhiled: has joined #RubyOnRails
[05:37:29] duderono_: has joined #RubyOnRails
[05:49:10] war_pigs: has joined #RubyOnRails
[05:53:51] mr-spoon: has joined #RubyOnRails
[05:58:15] thither: has joined #RubyOnRails
[05:59:44] thither: Okay this is trippy. I've monkey-patched a method into ActionDispatch::IntegrationTest (one that authenticates me with my API). When I try to call the function I'm told that there are the wrong number of arguments (given 1, expected 0), even though I am not calling it with any arguments.
[06:00:05] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[06:00:17] thither: However, if I update the function to take an argument the tests all fail with (given 0, expected 1)!!
[06:00:29] thither: I'll provide a gist
[06:04:33] thither: sevenseacat, https://gist.github.com/teaearlgraycold/0bd321075e534d40cdfd52542d45b6e6
[06:05:08] sevenseacat: whats on test/test_helper.rb:25:in `register_and_set_token'
[06:05:45] thither: God damn it
[06:05:57] thither: This is what happens when you write code late at night
[06:06:07] sevenseacat: lol it happens
[06:06:22] thither: It's "response = JSON.parser(@response)"
[06:07:38] Dimik: has joined #RubyOnRails
[06:16:35] hahuang65: has joined #RubyOnRails
[06:24:25] alexday: I have a ruby question.
[06:32:44] Technodrome: say you have a checkbox for a descripton, and you got some search results, the checkbox will toggle the description , what is the best way to implement this?
[06:33:47] sevenseacat: you might have to clarify what you mean by 'a checkbox toggling a description'
[06:37:35] dionysus69: has joined #RubyOnRails
[06:45:14] apeiros_: has joined #RubyOnRails
[06:48:47] cgfbee: has joined #RubyOnRails
[06:54:14] dminuoso: Technodrome: So seeing as we have talked about this yesterday
[06:54:16] dminuoso: what have you tried so far?
[06:54:26] Technodrome: you are still up?
[06:54:36] dminuoso: One does not simply sleep.
[06:54:37] Technodrome: i just woke back up after a good nap, i haven't tried a solution yet, i'm about too
[06:55:29] sevenseacat: so why ask before you even try anything...
[07:09:30] MrCrackPotBuilde: has joined #RubyOnRails
[07:14:59] DrYockel: has joined #RubyOnRails
[07:16:14] alexday: https://gist.github.com/argentum47/f03fae9655d1f001af73e4b21eef40e6 so I have a file <env>.rb which looks like default.rb and then in the file1.rb file I have to actually render an erb template. So in there erb template there will be something like <%= for @default['..']['..'] .... %> . Once I am able to put the default hash from default.rb into file1.rb's Abc object. I can do the rest. I am stuck here
[07:19:50] duderonomy: has joined #RubyOnRails
[07:25:24] Technodrome: sevenseacat i'm still not completely sure on the best way to implement it, and this is one thing that you could sink 8 hours into
[07:25:41] sevenseacat: you havent yet explained what 'it' is
[07:28:05] alexday: it is a pronoun :P
[07:33:07] mikecmpbll: has joined #RubyOnRails
[07:36:54] dminuoso: alexday: I dont understand your problem or question.
[07:41:19] conta: has joined #RubyOnRails
[07:41:44] alexday: dminuoso: ok, I will try once more. I have a file called production.rb which looks like default.rb. I have to use this hash in default.rb to render an erb template. The code to render that will go inside file.rb. But the problem is since in default.rb there is no intialization being done, when I try to require_relative default.rb or self.instance_eval(IO.read "default.rb") it doesn't work because of
[07:41:46] alexday: obvious reasons.
[07:42:05] alexday: I want to know if there is any way(good or bad) to achieve the this thing
[07:43:50] dionysus69: how do I extract country codes -> country name hash out of country_select gem tag?
[07:43:58] dionysus69: need to send it via json
[07:44:54] dminuoso: alexday: Not making sense still. Too many things you assume I know about your use case.
[07:45:27] dminuoso: Oh I see what you are on about.
[07:45:39] dminuoso: alexday: what you have is "code".
[07:45:43] dminuoso: the way to share code is to pack it into a method.
[07:45:54] dminuoso: And in order to avoid cluttering namespaces, put it inside a module.
[07:46:08] dminuoso: That way you don't have to use "require" to gain effects.
[07:47:59] alexday: you mean in default.rb put the variable in a method inside a module?
[07:49:03] alexday: If it is, I can't do that, because its a constraint. If i change that it will break all other things. but can I use metaprogramming to do that in file.rb
[07:59:13] gambl0re: has joined #RubyOnRails
[08:04:59] syndikate: has joined #RubyOnRails
[08:07:06] maryo: has joined #RubyOnRails
[08:15:37] ur5us: has joined #RubyOnRails
[08:17:25] hahuang65: has joined #RubyOnRails
[08:32:00] cseder: has joined #RubyOnRails
[08:36:56] defsdoor: has joined #RubyOnRails
[09:02:13] kapil___: has joined #RubyOnRails
[09:08:21] Kutakizukari: has joined #RubyOnRails
[09:13:05] FernandoBasso: has joined #RubyOnRails
[09:13:05] ferr: has joined #RubyOnRails
[09:14:41] duderonomy: has joined #RubyOnRails
[09:18:41] defsdoor: has joined #RubyOnRails
[09:24:22] ferr: has left #RubyOnRails: ("WeeChat 1.9.1")
[09:29:52] hive-mind: has joined #RubyOnRails
[09:29:58] marr: has joined #RubyOnRails
[09:43:41] aiguuu: has joined #RubyOnRails
[09:43:55] Doldge: has joined #RubyOnRails
[09:55:04] kies: has joined #RubyOnRails
[09:58:01] snowy: has joined #RubyOnRails
[09:59:48] ur5us: has joined #RubyOnRails
[10:18:10] hahuang65: has joined #RubyOnRails
[10:35:32] stamina: has joined #RubyOnRails
[10:39:56] arBmind: has joined #RubyOnRails
[10:41:27] drale2k_: has joined #RubyOnRails
[10:43:20] dionysus69: I refreshed form page, got CSFR token, then included into a request made by postman, it complains about invalid authenticity token. what did I do wrong
[11:03:09] BloodyMer: has joined #RubyOnRails
[11:07:15] matcouto: has joined #RubyOnRails
[11:11:23] quazimodo: has joined #RubyOnRails
[11:22:03] conta: has joined #RubyOnRails
[11:22:36] apparition: has joined #RubyOnRails
[11:26:06] apparition: has joined #RubyOnRails
[11:30:34] tcopeland: has joined #RubyOnRails
[11:31:40] conta1: has joined #RubyOnRails
[11:35:03] xco: has joined #RubyOnRails
[11:38:22] dionysus69: what's the right way to submit params from a post request from an API to devise? form-data?
[11:38:33] dionysus69: can't seem to send params with postman
[11:42:35] Jameser: has joined #RubyOnRails
[11:50:53] Ergo: has joined #RubyOnRails
[11:52:21] workmad3: has joined #RubyOnRails
[11:59:06] ahrs: has joined #RubyOnRails
[12:01:42] drale2k_: has joined #RubyOnRails
[12:19:16] hahuang65: has joined #RubyOnRails
[12:21:11] dinoangelov: has joined #RubyOnRails
[12:23:42] arBmind: has joined #RubyOnRails
[12:28:54] marahin: Hello! I can't seem to find any documentation regarding this, but: https://github.com/rails-api/active_model_serializers/issues/671 - is there a way to version serializers just like versioning the API?
[12:29:17] marahin: So /v1/blah would access serializers/v1/BlahSerializer, and /v2/blah would access serializers/v2/BlahSerializer?
[12:33:31] tcopeland: has joined #RubyOnRails
[12:56:31] my123: has joined #RubyOnRails
[12:57:54] DrYockel: has joined #RubyOnRails
[12:59:36] snowy: has joined #RubyOnRails
[13:11:26] matcouto: has joined #RubyOnRails
[13:29:10] uks: has joined #RubyOnRails
[13:35:28] keegnotrub: has joined #RubyOnRails
[13:46:59] Jameser: has joined #RubyOnRails
[13:47:41] alfiemax: has joined #RubyOnRails
[13:47:44] Kutakizukari: has joined #RubyOnRails
[13:50:36] arBmind: has joined #RubyOnRails
[13:52:43] workmad3: has joined #RubyOnRails
[14:02:18] tcopeland: has joined #RubyOnRails
[14:02:36] mtkd: has joined #RubyOnRails
[14:16:40] dminuoso: marahin: You can pick an explicit serializer by passing a key serializer/each_serializer with the serializer as a value
[14:17:05] dminuoso: i.e. render json: blah, serializer: V1::StuffSerializer
[14:17:17] marahin: dminuoso yes, but that's not nice :(. I actually managed to get around that - I've been using AMS 0.10.0, I bumped version to 0.10.7 and now it properly discovers the namespace (and finds proper, versioned, Serializer :))
[14:17:22] marahin: forgot to write about that here.
[14:17:41] marahin: So it seems that between 0.10.0 and 0.10.7 there's been either code fix or update that got it working :)
[14:17:57] dminuoso: marahin: *shrugs* - I just explicitly name serializers (I use jsonapi-rb though)
[14:18:02] dminuoso: and explicitly name cells (instead of views) too.
[14:18:10] dminuoso: The days of "magically finding the right file" are done.
[14:18:15] marahin: ha ha ha :D
[14:18:20] dminuoso: Less breakage, clearer dependencies.
[14:18:45] marahin: dminuoso I guess whatever you're aiming for, I'm currently on my first assignment in a new workplace, so I'd like to get it as shiny as I can. :-)
[14:18:56] dminuoso: marahin: The thing is I found that I wasted *so* much time learning how all these magical components need to be treated to "save time"
[14:19:10] dminuoso: that all the "time saved" I ended up spending fighting/debugging/reading docs about that magic.
[14:19:32] marahin: haha, yeah, that's true. I could've just declared that I want this given serializer to be used, and it would work - and instead I browsed through dozen of issues at /active_model_serializers looking for a soulmate that has the same issue as I :P
[14:19:32] dminuoso: serializer: V1::FooSerializer takes me maybe 4 seconds to type.
[14:19:41] dminuoso: And it makes what happens clear
[14:20:09] hahuang65: has joined #RubyOnRails
[14:21:05] dminuoso: marahin: I mean I do understand the quest for writing elegant code. But silent code is not elegant.
[14:22:09] marahin: dminuoso: that's all true. But OTOH I find having to type ", serializer: PersonSerializer" three times in the same file, then ", each_serializer: PersonSerializer" once kinda repetitive.
[14:25:07] dminuoso: marahin: You can set up a single method whose responsibility is just invoking render
[14:25:54] marahin: dminuoso I've thought of that too. But if I am to read and get to know how to do it nicely, why not fix the thing that caused me to think about this? :P
[14:26:00] dminuoso: marahin: After years of rails development I found that I became a slave to adhering to rails principles.
[14:26:11] dminuoso: Functionality and design were designed around autoloading and implicit naming of things.
[14:26:36] dminuoso: Which after a while lead to weird code. I noticed this whenever I would open up some file and kept wondering "where does this come from?", "what magical assumption is being made here?"
[14:27:14] dminuoso: (Some file you have authored maybe 2 years earlier)
[14:28:13] marahin: I tend to think that the person who pays me excepts me to do this as close to the Rails standard as possible (I'm not a senior developer nor any close to it yet), so I try to do my best to get stuff working, to actually perform good, and to look good for any random Rails developer that comes through.
[14:28:31] dminuoso: Oh that's quite fine.
[14:29:18] marahin: and also I have a weird sense of faith for libraries that I use - "oh, so it's supposed to work magically? I'm sure it will!"
[14:29:22] marahin: (and then I spend next two hours digging what's wrong :P)
[14:34:10] matcouto: has joined #RubyOnRails
[14:38:22] arBmind: has joined #RubyOnRails
[14:42:13] workmad3: has joined #RubyOnRails
[14:44:08] arBmind: has joined #RubyOnRails
[14:48:27] tcopeland: has joined #RubyOnRails
[14:49:52] drale2k_: has joined #RubyOnRails
[14:58:07] noob_on_rails: has joined #RubyOnRails
[14:59:00] noob_on_rails: hey all , i'd like to ask , is fork used in ror apps to give some good solutions?
[15:02:47] safetypin: has joined #RubyOnRails
[15:04:38] tbuehlmann: noob_on_rails: some application servers use fork
[15:05:34] conta1: has joined #RubyOnRails
[15:06:12] TechBrunch1: has joined #RubyOnRails
[15:07:50] Sylario: has joined #RubyOnRails
[15:15:31] matcouto: has joined #RubyOnRails
[15:17:14] Jameser: has joined #RubyOnRails
[15:17:29] apeiros: has joined #RubyOnRails
[15:18:41] alfiemax: has joined #RubyOnRails
[15:21:50] iamarun: has joined #RubyOnRails
[15:23:17] airdisa: has joined #RubyOnRails
[15:28:11] chouhoulis: has joined #RubyOnRails
[15:28:24] iamarun: can some one help me set up a rails server
[15:28:52] iamarun: i want to setup my home computer as a server and want to work on it at work :)
[15:29:03] airdisa: what host are you using?
[15:29:42] iamarun: i am starting to learn .... i don't know what you mean
[15:29:49] iamarun: i heard of heroku and
[15:29:52] someish: has joined #RubyOnRails
[15:29:53] airdisa: you'll need a static IP address from your access provider
[15:30:06] iamarun: i can do that
[15:30:09] airdisa: yeah, I would avoid using your home computer for serving
[15:30:30] iamarun: i want to learn ruby on rails and i lack a server
[15:30:37] iamarun: and want to jump right in
[15:30:46] airdisa: you can rent one in the cloud for as little as $5 per month
[15:31:09] airdisa: Heroku is free, but it's also a tangle of agreements, and customizations that could confuse you later
[15:31:47] iamarun: please help me i want a personal server and want to learn from scratch
[15:31:52] airdisa: I would recommend that you know some cmd line work to get it working on your computer first, or go straight to renting a cloud machine
[15:32:13] iamarun: i have setup a vm but
[15:32:23] iamarun: i want a real server
[15:32:38] iamarun: i can use some dynamic ddns server
[15:32:44] airdisa: a "real server" is just a computer running the web service
[15:32:44] iamarun: but i want my own server
[15:32:55] airdisa: your computer can do that
[15:33:07] airdisa: you can also rent one in the cloud if you want others to see it too
[15:33:08] truenito: has joined #RubyOnRails
[15:33:30] iamarun: no i want a private one first then i go live
[15:33:33] airdisa: so, first step, understand that your computer is capable of being its own server
[15:33:41] airdisa: that'll work fine
[15:33:59] airdisa: what platform are you on? Windows, Mac, Unix-clone?
[15:34:09] iamarun: arch or ubuntu
[15:34:32] airdisa: great, that works, it works great in the cloud too, when you're ready
[15:34:56] airdisa: you'll need to follow instructions for installing Ruby on Linux first, then add the Rails Gem
[15:35:25] iamarun: digital ocean has a good install manual page for arch and ubuntu
[15:35:34] airdisa: the Rails Gem comes bundled with the server you are interested in
[15:35:35] iamarun: which have installed on vm to learn
[15:35:46] iamarun: puma right !
[15:35:48] airdisa: if you run using Digital Ocean, you're all set then
[15:36:05] airdisa: Rails 5 is Puma, older versions ran with other web servers software
[15:36:15] _ritchie_: has joined #RubyOnRails
[15:36:27] iamarun: is running rails server rack -s only way ?
[15:36:42] iamarun: or it can be run like php framework like codeigniter ?
[15:36:42] airdisa: so, log in using SSH to your Digital Ocean Linux computer, and follow instruactions for installing Ruby on Linux first
[15:37:20] airdisa: that'll get you started, after that, you'll want to install the Rails gem
[15:37:37] airdisa: I bet there is a Digital Ocean instruction page for doing this, since it's pretty commonplace
[15:40:11] FCser: has joined #RubyOnRails
[15:40:32] airdisa: the ones I looked at just now, seem zany to me, I would start with plain Ruby, then add the Rails Gem and go through a tutorial on Rails to get a website up and running
[15:42:33] apeiros: has joined #RubyOnRails
[15:42:38] airdisa: once you're running, I wouldn't run `rails rack -s` but use `rails -help` and just `rails server`
[15:42:58] iamarun: and what about port 3000
[15:43:13] iamarun: how to place it to port 80
[15:43:22] iamarun: -p 80 works ?
[15:43:36] airdisa: ah, nice, yes, exactly
[15:43:53] airdisa: port 3000 will as well, if you haven't blocked it by firewall or something
[15:44:22] airdisa: the -p option lets you choose to bind the service with any open port number you like
[15:44:51] airdisa: so, that would be `rails server -p 80`
[15:45:19] iamarun: and what is this https://github.com/mperham/sidekiq i was told this was to be used to set up rails server
[15:45:31] iamarun: do you know how to set up this
[15:46:23] airdisa: I don't use sidekiq (at this time) although I think it's a background process runner like cron job (I think), and rails has that built-in now
[15:46:53] airdisa: I would get familiar with how much stuff Rails 5 has that old posts will recommend some gem for when now it's unnecceary
[15:47:54] airdisa: the basic Rails framework is pretty mature now, and much of what used to require gems, no longer does
[15:49:29] airdisa: to add something like Siedkiq, you would install the Gem (following instructions), and then you would add reference to it in the Gemfile (root directory of the app)
[15:49:45] alfiemax: has joined #RubyOnRails
[15:50:46] airdisa: installing Ruby can take a long time, by the way, as long as you think it;'s working, I wouldn't Ctrl-C out
[15:51:52] airdisa: wishing you luck!
[15:52:56] iamarun: is chruby better then rbenv and rvm ?
[15:54:40] elomatreb: Not strictly, but it's a lot simpler and quite a few people value that
[16:00:30] rafadc: has joined #RubyOnRails
[16:03:19] apeiros: has joined #RubyOnRails
[16:09:06] arBmind: has joined #RubyOnRails
[16:13:25] troys: has joined #RubyOnRails
[16:14:21] Dutjub: has joined #RubyOnRails
[16:16:31] srinidhi: has joined #RubyOnRails
[16:20:56] hahuang65: has joined #RubyOnRails
[16:28:15] airdisa_: has joined #RubyOnRails
[16:30:18] ShalokShalom: has joined #RubyOnRails
[16:31:37] quazimodo: has joined #RubyOnRails
[16:33:38] cagomez: has joined #RubyOnRails
[16:34:01] apeiros: has joined #RubyOnRails
[16:35:39] apeiros: has joined #RubyOnRails
[16:44:02] Dimik: has joined #RubyOnRails
[16:46:06] clair13: has joined #RubyOnRails
[16:47:16] clair13: i have a HABTM association and when i update it shows multiple records
[16:47:33] clair13: and also is on ActiveAdmin
[16:47:46] clair13: the record i try to update
[16:48:08] alexday: has left #RubyOnRails: ("WeeChat 1.9.1")
[16:48:09] clair13: any idea what might cause the issue
[16:49:18] MrCrackPotBuilde: has joined #RubyOnRails
[16:51:24] iamarun: has joined #RubyOnRails
[16:57:00] rafadc: has joined #RubyOnRails
[16:58:29] darkness: has joined #RubyOnRails
[16:58:58] _ritchie_: has joined #RubyOnRails
[17:00:15] Exhiled: has joined #RubyOnRails
[17:01:44] apeiros: has joined #RubyOnRails
[17:06:05] apeiros: has joined #RubyOnRails
[17:15:17] one_zero: has joined #RubyOnRails
[17:17:21] Kutakizukari: has joined #RubyOnRails
[17:31:16] Technodrome: has joined #RubyOnRails
[17:32:02] hahuang65: has joined #RubyOnRails
[17:32:56] mtkd: has joined #RubyOnRails
[17:33:46] weaksauce: has joined #RubyOnRails
[17:35:17] tcopeland: has joined #RubyOnRails
[17:46:36] conta2: has joined #RubyOnRails
[17:46:37] Exhiled: has joined #RubyOnRails
[17:48:36] orbyt_: has joined #RubyOnRails
[17:53:28] nachoman: has joined #RubyOnRails
[17:53:36] conta2: has joined #RubyOnRails
[17:58:41] DrYockel: has joined #RubyOnRails
[18:05:54] ur5us: has joined #RubyOnRails
[18:16:41] truenito: has joined #RubyOnRails
[18:23:04] sagax: has joined #RubyOnRails
[18:24:05] Saukk: has joined #RubyOnRails
[18:34:00] lupine: has joined #RubyOnRails
[18:36:10] Exhiled: has joined #RubyOnRails
[18:39:16] alfie: has joined #RubyOnRails
[18:45:09] Technodrome: has joined #RubyOnRails
[18:47:54] lacour: has joined #RubyOnRails
[18:48:52] _ritchie_: has joined #RubyOnRails
[18:49:58] guacamole: has joined #RubyOnRails
[18:58:35] alfiemax: has joined #RubyOnRails
[19:01:24] dax: has left #RubyOnRails: ()
[19:04:50] SteenJobs: has joined #RubyOnRails
[19:09:13] _ritchie_: has joined #RubyOnRails
[19:24:10] Sylario: HABTM does not prevent duplicate
[19:26:01] NoGodDamnIdea: has joined #RubyOnRails
[19:28:02] baweaver: Not exactly
[19:28:03] baweaver: https://stackoverflow.com/questions/1129781/has-and-belongs-to-many-avoiding-dupes-in-the-join-table
[19:28:32] FrostCandy: has joined #RubyOnRails
[19:28:43] fryguy: adding uniq to the association like that also does not prevent all duplicates
[19:29:00] baweaver: along with a key constraint
[19:29:05] baweaver: it helps if nothing else
[19:29:23] baweaver: the key constraint though would definitely do it
[19:29:36] baweaver: errors would be fun though.
[19:30:42] FrostCandy: Hi guys before i blow up my test database, is there any differnece between rake db:migrate and rails db:migrate? We use active record if that makes a differnce.
[19:31:40] Aherin: has joined #RubyOnRails
[19:32:12] Sylario: Well, uniq does not prevent SQL calculation errors due to duplicate
[19:33:21] Technodrome: has joined #RubyOnRails
[19:34:17] Technodrome: i wonder if dminuoso is sleep
[19:40:38] rfoust: has joined #RubyOnRails
[19:43:01] keegnotrub_: has joined #RubyOnRails
[19:43:15] ornerymoose: has joined #RubyOnRails
[19:44:58] Aherin: has joined #RubyOnRails
[19:49:09] urk187: has joined #RubyOnRails
[19:55:33] FrostCandy: apparently there is a difference based on rails version. early versions need rake
[19:55:35] keegnotrub_: has joined #RubyOnRails
[19:55:42] Exhiled: has joined #RubyOnRails
[19:56:22] airdisa_: it's a synonym, whereas rails (I think) is only in Rails 5+
[20:02:01] arBmind: has joined #RubyOnRails
[20:08:05] alfiemax: has joined #RubyOnRails
[20:15:32] megan1993: has joined #RubyOnRails
[20:16:18] mikecmpbll: has joined #RubyOnRails
[20:16:24] megan1993: Hello! I'm wondering if I could write this more elegant, something in a one-liner: expect(person.dosomething(@x)).to include(a_kind_of(X)) expect(person.dosomething(@x)).to include(a_kind_of(X::Y))
[20:16:26] megan1993: any advice?
[20:17:12] megan1993: Couldn't find any possible way to put to classes in the include(a_kind_of) function (https://relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/include-matcher)
[20:18:00] zathras7: has joined #RubyOnRails
[20:18:25] conta: has joined #RubyOnRails
[20:22:05] alfie: megan1993: why can’t you use rspec’s subject class?
[20:24:19] shtirlic: has joined #RubyOnRails
[20:26:54] apeiros: has joined #RubyOnRails
[20:31:25] tcopeland: FrostCandy: FWIW some more details on that rails/rake thing here http://guides.rubyonrails.org/initialization.html#rails-command-rb
[20:35:37] FrostCandy: tcopeland: yup thanks
[20:41:37] remix2000: has joined #RubyOnRails
[20:42:32] Puffball: has joined #RubyOnRails
[20:47:36] ur5us: has joined #RubyOnRails
[20:50:55] orbyt_: has joined #RubyOnRails
[20:53:31] cseder: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[21:01:48] mcr: has joined #RubyOnRails
[21:06:45] matcouto: has joined #RubyOnRails
[21:07:14] mcr: I'm working on David (CoAP server), trying to improve the ResourceDiscovery mechanism. I would like to annotate which routes should be discoverable. I'm looking for a gem (or FAQ) that extends ActionDispatch::Journey::Route (and/or Path?)
[21:11:09] cagomez: has joined #RubyOnRails
[21:13:04] orbyt_: has joined #RubyOnRails
[21:20:57] cagomez: has joined #RubyOnRails
[21:21:38] mr-spoon: has joined #RubyOnRails
[21:23:56] Exhiled: has joined #RubyOnRails
[21:27:38] mr-spoon: has joined #RubyOnRails
[21:29:56] Radar: GOOD MORNING
[21:31:48] orbyt_: has joined #RubyOnRails
[21:32:41] havenwood: Radar: g'mornin'!
[21:32:56] Radar: havenwood: hey :)
[21:33:00] guacamole: has joined #RubyOnRails
[21:49:21] orbyt_: has joined #RubyOnRails
[22:02:04] Dimik: has joined #RubyOnRails
[22:10:00] ornerymoose: has joined #RubyOnRails
[22:11:04] _ritchie_: has joined #RubyOnRails
[22:16:06] rfoust: has joined #RubyOnRails
[22:32:36] _ritchie_: has joined #RubyOnRails
[22:32:53] guacamole: has joined #RubyOnRails
[22:34:44] chouhoulis: has joined #RubyOnRails
[22:35:21] alfiemax: has joined #RubyOnRails
[22:39:30] dviola: has joined #RubyOnRails
[22:51:49] kapil___: has joined #RubyOnRails
[23:17:03] weaksauce: has joined #RubyOnRails
[23:19:50] someish: has joined #RubyOnRails
[23:22:35] chouhoulis: has joined #RubyOnRails
[23:39:12] ornerymoose: has joined #RubyOnRails
[23:56:27] dviola: has joined #RubyOnRails