« Back to channel list

#RubyOnRails - 06 September 2017

« Back 1 day Forward 1 day »
[00:00:39] jrabe: has joined #RubyOnRails
[00:15:52] jhfisc: has joined #RubyOnRails
[00:16:07] cagomez: has joined #RubyOnRails
[00:26:08] wynnter: has joined #RubyOnRails
[00:27:03] jhfisc: has joined #RubyOnRails
[00:28:21] orbyt_: has joined #RubyOnRails
[00:28:59] pharma_joe: has joined #RubyOnRails
[00:32:23] jhfisc: has joined #RubyOnRails
[00:39:02] jhfisc: has joined #RubyOnRails
[00:46:21] brent__: has joined #RubyOnRails
[01:00:27] jhfisc: has joined #RubyOnRails
[01:06:12] jhfisc: has joined #RubyOnRails
[01:07:00] umaaji: has joined #RubyOnRails
[01:08:15] opekktar: has joined #RubyOnRails
[01:11:47] jhfisc: has joined #RubyOnRails
[01:21:10] jhfisc: has joined #RubyOnRails
[01:21:10] freedrull: has joined #RubyOnRails
[01:31:51] jhfisc: has joined #RubyOnRails
[01:34:46] PresidentBiscuit: has joined #RubyOnRails
[01:39:39] bronson: has joined #RubyOnRails
[01:42:25] orbyt_: has joined #RubyOnRails
[01:43:11] jhfisc: has joined #RubyOnRails
[01:47:53] jhfisc: has joined #RubyOnRails
[01:48:37] freedrull: I'm triggering a remote form with javascript, but the Accept header is always sent as text/html, how can I send it as text/javascript? https://gist.github.com/mcfiredrill/0b1f719b402dad09b9198c8fc5661eb5#file-index-html-erb-L10
[01:53:10] jhfisc: has joined #RubyOnRails
[01:57:43] srinidhi: has joined #RubyOnRails
[02:01:28] maryo: has joined #RubyOnRails
[02:03:10] jhfisc: has joined #RubyOnRails
[02:04:51] knight33: has joined #RubyOnRails
[02:06:39] Jameser: has joined #RubyOnRails
[02:07:58] sevenseacat: has joined #RubyOnRails
[02:08:34] jhfisc: has joined #RubyOnRails
[02:13:37] jhfisc: has joined #RubyOnRails
[02:17:33] pharma_joe: has joined #RubyOnRails
[02:21:15] jhfisc: has joined #RubyOnRails
[02:21:33] pharma_joe: has joined #RubyOnRails
[02:37:51] PresidentBiscuit: has joined #RubyOnRails
[02:40:25] pharma_joe: has joined #RubyOnRails
[02:43:13] pvl1: hi everyone im struggling to find what as: does
[02:43:30] sevenseacat: in what context?
[02:49:22] thortron: has joined #RubyOnRails
[02:52:26] irishfromua: has joined #RubyOnRails
[02:56:34] jhfisc: has joined #RubyOnRails
[02:59:16] cagomez: has joined #RubyOnRails
[03:00:19] sandstrom: has joined #RubyOnRails
[03:04:35] pvl1: here https://github.com/plataformatec/devise/blob/master/app/views/devise/registrations/edit.html.erb
[03:05:43] agent_white: has joined #RubyOnRails
[03:07:18] elomatreb: pvl1: See http://api.rubyonrails.org/v5.1/classes/ActionView/Helpers/FormHelper.html#method-i-form_for under "form_for with a model object"
[03:07:30] milesmatthias: has joined #RubyOnRails
[03:09:09] pvl1: i was just looking at that and didnt read it cuz i didnt think it applied. thank you elomatreb
[03:09:18] orbyt_: has joined #RubyOnRails
[03:09:25] milesmatthias: has joined #RubyOnRails
[03:10:19] milesmat_: has joined #RubyOnRails
[03:15:12] kapil___: has joined #RubyOnRails
[03:23:52] Stabs: has joined #RubyOnRails
[03:26:15] Stabs: Cannot deploy: after successful push to Heroku, on visiting app it shows error. Following Michael Hartl's tutorial on RoR at railstutorials.org.
[03:27:30] Stabs: Made no changes to rails output other than adjusting gemfile.
[03:31:28] kies: has joined #RubyOnRails
[03:34:41] Saukk: has joined #RubyOnRails
[03:38:52] irishfromua: has joined #RubyOnRails
[03:40:54] bronson: has joined #RubyOnRails
[04:01:29] srinidhi: has joined #RubyOnRails
[04:01:51] pvl1: are all models supposed to have a CRUD/REST interface? why cant i just access certain things from code?
[04:02:26] pvl1: like, i guess the purpose of making controllers and routes, is in fact, to expose models, via CRUD/REST. to the web
[04:02:44] umaaji: has joined #RubyOnRails
[04:06:54] pvl1: oh wait no this does what im trying to do i think
[04:06:56] pvl1: https://apidock.com/rails/ActionView/Helpers/FormHelper/fields_for
[04:14:23] milesmatthias: has joined #RubyOnRails
[04:15:27] conta: has joined #RubyOnRails
[04:21:13] jdrobertso-: has joined #RubyOnRails
[04:29:11] umaaji: has joined #RubyOnRails
[04:36:33] mattwithoos: has joined #RubyOnRails
[04:37:19] freedrull: pvl1: what are you trying to doo?
[04:42:24] ascarter: has joined #RubyOnRails
[04:47:22] srinidhi: has joined #RubyOnRails
[04:48:43] ascarter: has joined #RubyOnRails
[04:50:14] Balthasar|V20: has joined #RubyOnRails
[05:01:41] srinidhi: has joined #RubyOnRails
[05:13:21] srinidhi: has joined #RubyOnRails
[05:21:39] pharma_joe: has joined #RubyOnRails
[05:29:42] paranoicsan: has joined #RubyOnRails
[05:41:57] bronson: has joined #RubyOnRails
[05:42:20] Macaveli: has joined #RubyOnRails
[05:48:36] sevenseacat: has joined #RubyOnRails
[05:56:32] tbuehlmann_: so, bootstrap 4 forms understand the concept of "was-validated", applying styles to the form when the form contents were validated. I don't really want to add an css class to the form in case of request.post?, but rather when the underlying model really was validated (as in: #save or #valid? was called). there's no such thing as asking the object whether it was validated, right?
[05:57:01] Jameser: has joined #RubyOnRails
[05:59:12] jhfisc: has joined #RubyOnRails
[06:02:52] snickers: has joined #RubyOnRails
[06:03:56] conta: has joined #RubyOnRails
[06:04:08] jhfisc: has joined #RubyOnRails
[06:05:30] agent_white: has joined #RubyOnRails
[06:10:05] jhfisc: has joined #RubyOnRails
[06:23:21] srinidhi: has joined #RubyOnRails
[06:27:40] jhfisc: has joined #RubyOnRails
[06:33:14] conta: has joined #RubyOnRails
[06:39:59] TheMoonMaster: has joined #RubyOnRails
[06:54:58] jhfisc: has joined #RubyOnRails
[06:55:19] dminuoso: People still do bootstrap?
[06:55:23] dminuoso: I thought we have reached 201x already
[06:55:48] ascarter: has joined #RubyOnRails
[07:01:10] jhfisc: has joined #RubyOnRails
[07:07:00] danguita: has joined #RubyOnRails
[07:07:13] jhfisc: has joined #RubyOnRails
[07:07:53] tbuehlmann_: dminuoso: what do the cool kids use these days?
[07:09:35] dminuoso: tbuehlmann_: Im a big fan of material ui. Reason being it's a language spec rather than pre-built components.
[07:11:21] darutoko: has joined #RubyOnRails
[07:12:26] dminuoso: And then I roll my own components mostly nowadays. :)
[07:13:55] freedrull: and what are you gonna do when non-flat ui isnt cool anymore?
[07:14:36] dminuoso: freedrull: My issue with bootstrap is just that it's technologically locked into jquery and incentizes using the same generic components. Material UI is not something you can download and use, it forces you to actually design.
[07:14:44] dminuoso: Not that it's "not cool"
[07:16:07] dminuoso: It feels like 8 out of 10 bootstrap powered websites use the raw bootstrap theme and styling with little to no modification. It's mildly annoying.
[07:16:22] sevenseacat: some of us arent graphic designers and like the provided stuff bootstrap provides :)
[07:16:42] conta: has joined #RubyOnRails
[07:17:03] foreman-n00b: has joined #RubyOnRails
[07:18:14] dminuoso: sevenseacat: I suppose my criticism is why "some of you" like it then? Ease of use, little modification or CSS knowledge required to achieve results?
[07:18:47] sevenseacat: I have plenty of CSS knowledge, bul I'm not a graphic designed
[07:19:02] freedrull: dminuoso: i see your point but it doesn't really seem like you can really compare the two, they don't really do the same thing
[07:19:14] matthewd: Yeah, if I have to make something myself (read: without an actual team, with designers etc involved), the choices are bootstrap or raw default HTML styling
[07:20:26] matthewd: Given a mock-up image I can make the browser look like that... I just have no taste to invent appearance for myself
[07:20:56] freedrull: material ui looks nice but then i'd have to add react to the project
[07:21:17] freedrull: which increases the complexity by an order of magnitude
[07:21:33] dminuoso: freedrull: Well I meant material design sorry. ;)
[07:21:48] dminuoso: freedrull: https://material.io/guidelines/
[07:23:03] dminuoso: matthewd: Okay that sounds reasonable. Here Im in the awkward spot that a lot of tools in the company have low acceptance due to horrid and weird interfaces, so we try to push material UI a lot to make it more appealing to non-techs who are used to their android apps
[07:23:03] sevenseacat: I used to be a front end dev so, I can do CSS stuff if shown something to build
[07:23:20] freedrull: oko boom https://mdbootstrap.com
[07:23:28] matthewd: Last time I cared, most of the "make things look non-awful" stuff in bootstrap was CSS-only. If I need nontrivial behaviours, that's more likely to imply there's a designer involved.
[07:23:44] sandstrom: has joined #RubyOnRails
[07:26:00] drale2k_: has joined #RubyOnRails
[07:26:19] sevenseacat: that mdbootstrap site is... lets just say it doesnt give me high hopes about the code
[07:27:39] matthewd: Wow.. I'll get back to you when it finishes loading
[07:28:34] sevenseacat: I'm sure all those companies would love having their logos mutilated like that
[07:28:52] ltd: has joined #RubyOnRails
[07:30:01] sevenseacat: it looks pretty, but yeah no
[07:30:16] ltd: has joined #RubyOnRails
[07:34:48] mtkd: has joined #RubyOnRails
[07:36:32] dminuoso: sevenseacat: But it is `Trusted by 200 000 + developers & designers`
[07:36:51] sevenseacat: good for them.
[07:37:06] dminuoso: (Although Im not sure what 200 000 + developers & designers" exactly means)
[07:39:10] jhfisc: has joined #RubyOnRails
[07:39:29] sevenseacat: ACTION resumes tinkering with elm
[07:42:14] dminuoso: ACTION resumes tinkering with react
[07:42:48] bronson: has joined #RubyOnRails
[07:44:13] jhfisc: has joined #RubyOnRails
[07:45:47] drale2k_: has joined #RubyOnRails
[07:45:57] Chernobuk: has joined #RubyOnRails
[07:46:02] tbuehlmann_: thanks for the input btw
[07:47:45] dminuoso: Can we have someone resume tinkering with PureScript?
[07:52:26] Jameser: has joined #RubyOnRails
[07:57:14] srinidhi: has joined #RubyOnRails
[08:02:14] conta: has joined #RubyOnRails
[08:07:41] brent__: has joined #RubyOnRails
[08:08:38] ascarter: has joined #RubyOnRails
[08:10:17] mikecmpbll: has joined #RubyOnRails
[08:13:07] srinidhi: has joined #RubyOnRails
[08:15:00] Jameser: has joined #RubyOnRails
[08:19:13] jhfisc: has joined #RubyOnRails
[08:22:08] jhfisc: has joined #RubyOnRails
[08:23:46] drale2k_: has joined #RubyOnRails
[08:25:10] jhfisc: has joined #RubyOnRails
[08:25:39] dionysus69: has joined #RubyOnRails
[08:29:09] Jameser: has joined #RubyOnRails
[08:31:10] jhfisc: has joined #RubyOnRails
[08:44:02] bronson: has joined #RubyOnRails
[08:44:17] Jameser: has joined #RubyOnRails
[08:45:14] timdotrb: has joined #RubyOnRails
[08:46:13] timdotrb: Evening, all
[08:48:00] mikecmpbll: has joined #RubyOnRails
[08:48:07] conta: has joined #RubyOnRails
[08:48:22] roshanavand: has joined #RubyOnRails
[08:52:56] Ergo: has joined #RubyOnRails
[08:56:39] konos5: has joined #RubyOnRails
[08:58:51] lxsameer: has joined #RubyOnRails
[09:03:20] umaaji: has joined #RubyOnRails
[09:07:36] jhfisc: has joined #RubyOnRails
[09:19:06] jhfisc: has joined #RubyOnRails
[09:22:57] jhfisc: has joined #RubyOnRails
[09:25:44] chouhoulis: has joined #RubyOnRails
[09:27:06] chouhoulis: has joined #RubyOnRails
[09:28:26] marr: has joined #RubyOnRails
[09:29:10] jhfisc: has joined #RubyOnRails
[09:32:56] soahccc: Does anyone use capybara-webkit with qt4.8? It says that next major version will require qt5 but I should be fine? The thing is that clicking on things doesn't appear to work at all right now :( I had it working a year ago though so I'm guessing an capybara-webkit update made it stop working with qt4
[09:34:06] lxsameer: hey folks, how can I check for existance of a route entry for the action ? i don't want to exact route i just want to see if there is a route assigned to this action or not
[09:38:02] matthewd: lxsameer: I don't think there is such a thing. You could dig through all the defined routes yourself, but that wouldn't account for ones with a dynamic :action or :controller, say.
[09:38:17] mtkd: has joined #RubyOnRails
[09:39:02] lxsameer: matthewd: ok thanks
[09:39:48] sathish: has joined #RubyOnRails
[09:40:08] sathish: I have a class method that sends out emails to all pending dues in the database, It works well when called manually from rails console. How do I make the method 'SavingsScheme.remind_all_pending_dues' Run at 6'o clock in the morning everyday?
[09:40:19] sathish: I was looking into Clockwork gem, but couldn't find how to run class methods
[09:45:07] bronson: has joined #RubyOnRails
[09:56:59] roshanavand: has joined #RubyOnRails
[09:57:44] Terens: has joined #RubyOnRails
[10:00:27] jhfisc: has joined #RubyOnRails
[10:03:39] Terens: I want to have something like
[10:05:41] Terens: /device/:id/route/etc.. However if I use shallow routes writing a helper to to access , getting device gets complicated... So should I keep them nested?
[10:11:43] arBmind: has joined #RubyOnRails
[10:12:02] quazimodo: has joined #RubyOnRails
[10:13:24] jhfisc: has joined #RubyOnRails
[10:21:29] Jameser: has joined #RubyOnRails
[10:31:14] sevenseacat: has joined #RubyOnRails
[10:34:48] bruno-: has joined #RubyOnRails
[10:37:30] jhfisc: has joined #RubyOnRails
[10:41:38] bender_unit: has joined #RubyOnRails
[10:44:48] drale2k_: has joined #RubyOnRails
[10:44:52] ur5us: has joined #RubyOnRails
[10:45:44] bronson: has joined #RubyOnRails
[10:49:47] Sylario: has joined #RubyOnRails
[10:52:52] Saukk: has joined #RubyOnRails
[11:07:32] brent__: has joined #RubyOnRails
[11:25:22] jhfisc: has joined #RubyOnRails
[11:31:39] jhfisc: has joined #RubyOnRails
[11:32:36] mrbubbles: Raandom Q - let's say I built a website dashboard in Rails that I wanted to run some linux commands. What would be the best way to do that? And (if possible) capture stdout and output it on the screen? Is Open4 the preferred method?
[11:33:39] elomatreb: Are you sure doing it synchronously is a good idea? What if a command takes too long?
[11:34:16] mrbubbles: Good point, yeah I suppose I could do it in the background that would be fine. But would be cool to be able to catch the logs though, just so can review it later
[11:34:16] KeyJoo: has joined #RubyOnRails
[11:34:52] elomatreb: You could probably have both, in a Job maybe
[11:37:27] ldnunes: has joined #RubyOnRails
[11:39:11] jhfisc: has joined #RubyOnRails
[11:39:44] cagomez: has joined #RubyOnRails
[11:40:48] sandstrom: has joined #RubyOnRails
[11:44:14] jhfisc: has joined #RubyOnRails
[11:49:13] jhfisc: has joined #RubyOnRails
[11:57:10] jhfisc: has joined #RubyOnRails
[12:02:32] jhfisc: has joined #RubyOnRails
[12:09:53] jameshbabu: has joined #RubyOnRails
[12:11:25] GodFather: has joined #RubyOnRails
[12:11:50] dminuoso: mrbubbles: throw it into sidekiq.
[12:11:52] helpa: Next question, please!
[12:13:13] jhfisc: has joined #RubyOnRails
[12:13:53] mtkd: has joined #RubyOnRails
[12:16:10] cagomez: has joined #RubyOnRails
[12:16:16] mrbubbles: dminuoso can sidekiq handle shell commands? Or would I sitll use Open4
[12:17:25] jammu: has left #RubyOnRails: ()
[12:18:19] dminuoso: mrbubbles: sidekiq is as powerful as Robin.
[12:20:34] jammu: has joined #RubyOnRails
[12:20:54] Jameser: has joined #RubyOnRails
[12:23:42] jhfisc: has joined #RubyOnRails
[12:25:19] keegnotrub: has joined #RubyOnRails
[12:26:54] jhfisc: has joined #RubyOnRails
[12:28:29] ahrs: has joined #RubyOnRails
[12:37:58] jhfisc: has joined #RubyOnRails
[12:40:22] wethu: has joined #RubyOnRails
[12:40:54] keegnotrub_: has joined #RubyOnRails
[12:46:35] bronson: has joined #RubyOnRails
[12:47:49] jhfisc: has joined #RubyOnRails
[12:48:28] keegnotrub: has joined #RubyOnRails
[12:48:38] deevil: has joined #RubyOnRails
[12:49:08] kapil___: has joined #RubyOnRails
[12:50:20] keegnotrub_: has joined #RubyOnRails
[12:51:18] deevil: Hi all. When I run migrations or regenerate schema.rb, “id: :serial” is being printed on the “create_table” line. This isn’t happening for anybody else that I work with, and we’re wondering why. I found the code in activerecord that prints it, so I’m pretty sure that my system is behaving as expected, but I’d like to know why theirs aren’t..?
[12:51:41] kapil___: hello i have nested blocks. i have grid > row > column > data. I loop through each of them but i only want first two only if column <= 4. please help.
[12:52:36] deevil: first two what? rows or columns?
[12:54:15] knight33: has joined #RubyOnRails
[12:55:01] matthewd: deevil: That sounds unexpected. Compare the actual PostgreSQL definitions of the column between your and your coworker's DBs?
[12:55:20] matthewd: deevil: Also, which Rails version?
[12:56:28] kapil___: grid and row
[13:00:19] daydreamm: has joined #RubyOnRails
[13:00:23] kapil___: how to do nested block? https://www.irccloud.com/pastebin/dp8IwEGY/ruby%20nested%20block
[13:00:38] dminuoso: kapil___: Just out of curiosity
[13:00:42] dminuoso: Do you have a react frontend or not?
[13:00:56] dminuoso: Because you know you asked that same question over in #reactjs :p
[13:01:00] pupsicle: has joined #RubyOnRails
[13:01:10] kapil___: yes i have react frontend
[13:01:36] dminuoso: kapil___: the other channel. and gist your code.
[13:02:02] kapil___: but language is rubby
[13:02:14] dminuoso: What is that
[13:02:15] marahin: oh, by the way - is having a rails application as pure JSON API and external, standalone react frontend hosted elsewhere a generally good idea?
[13:02:29] dminuoso: marahin: Yes.
[13:02:31] marahin: I mean, you divide back and front.
[13:02:43] deevil: matthewd: the column defs are identical, the only diffs we’re seeing in git compare are on the create_table lines, due to the “id: :serial”. We’re on Rails 5.1.3 with Ruby 2.3.4 and activerecord 5.1.3
[13:02:54] dminuoso: marahin: It's offers you strong separation and I would recommend it.
[13:03:00] marahin: dminuoso: and what would be the easiest solution for authentication? Would devise work as well, painless? Or should I use `knock` gem or any of similar?
[13:03:09] marahin: Yeah, that's what we're approaching right now in our side project
[13:03:19] pupsicle: Is it frowned upon to "eval" ruby code pulled out of a database to provide "scripting" to certain users of a web application? Any suggested alternative approaches to allowing administrators to add new behavior to an application without redeploying?
[13:03:22] dminuoso: marahin: Whatever you want really. I recommend rolling your own from hand with just simple filters.
[13:03:29] matthewd: deevil: Hmm. Matching PostgreSQL versions?
[13:03:31] marahin: the only thing that worries me is would that require some extra work that wouldn't be necessary, e.g. tinkering with authentication, user registration etc.
[13:03:45] dminuoso: marahin: Or building ontop of warden. But devise works too
[13:03:53] dminuoso: marahin: There's no right/wrong.
[13:04:05] marahin: What about knock? Knock seems cool and very straightforward. Wrapping around JWT...
[13:04:11] marahin: https://github.com/nsarno/knock
[13:04:37] marahin: Using devise in pure API frightens me because I imagine how many things would you have to change / monkeypatch in order for it to serve JSON _and_ JSON only.
[13:04:56] matthewd: pupsicle: Yes. Depends what sorts of behaviours you want to allow them.
[13:05:00] apparition47: has joined #RubyOnRails
[13:05:01] marahin: And disable cookies, blah blah blah... most of StackOverflow answers suggested using knock or something similar, devise_auth_token or whatever was it called.
[13:05:04] deevil: matthewd: pretty much. me and another dev are on OS X 10.12 and using Postgres.app w/ 9.6 database format. another dev is on Linux and running pg 9.6 as well..
[13:05:05] dminuoso: marahin: it's actually quite easy and requires no monkey patching
[13:05:30] marahin: dminuoso: mind pointing me to some wiki or something? I couldn't really seem to find a nice clean guide for using devise in a json-only API mode Rails application.
[13:06:23] dminuoso: marahin: One effective step (in the larger picture its overkill) that requires little work is using doorkeeper for the authentication part, and devise for authorization.
[13:06:48] dminuoso: Took me 5 minutes to set it up in my last rails app, so its fast.
[13:06:55] jhfisc: has joined #RubyOnRails
[13:06:56] matthewd: deevil: select * from pg_depend where objid = 'a_id_seq'::regclass and refobjid = 'a'::regclass; (where "a" is the table, and "id" is the column)
[13:06:58] pupsicle: matthewd, it seems odd to try to embed a scripting language into my rails application.
[13:07:11] pupsicle: when ruby itself is available already.
[13:07:13] dminuoso: knock seems like it could simplify things, just cant say anything because I dont know it
[13:07:31] marahin: sure, I get it.
[13:07:57] marahin: dminuoso: uuh, "Security - critical warnings" on doorkeeper kinda make it scary. :D
[13:08:00] marahin: https://github.com/doorkeeper-gem/doorkeeper
[13:10:24] jottr: has joined #RubyOnRails
[13:10:49] dminuoso: marahin: It just implies that that doorkeeper is not restrictive about the rails version you use it on.
[13:11:01] dminuoso: (It will let you use it in affected rails versions)
[13:12:18] dminuoso: marahin: If you use any latest supported release of Rails it does not apply.
[13:12:23] jhfisc: has joined #RubyOnRails
[13:12:36] deevil: matthewd: { classid: 1259, objid: 17892, objsubid: 0, refclassid: 1259, refobjid: 17886, refobjsubid: 1, deptype: ‘a’ }
[13:12:41] matthewd: pupsicle: I can't really speak to what you find odd... you asked whether it was frowned upon, and it is.
[13:13:17] matthewd: deevil: Sorry, the question was whether those match between the differently-behaving systems
[13:13:39] matthewd: I mean.. the objid/refobjid will differ.. but the presence of the row at all, and the other values, should be the same. I think.
[13:13:56] matthewd: IIRC it's the deptype='a' that's magic.. maybe?
[13:14:20] deevil: matthewd: I’ve got another dev checking his results now.. just thought you might notice something special about mine.
[13:15:19] matthewd: I was hoping/suspecting yours would either not be there, or not be 'a', tbh.
[13:16:12] deevil: it’s possible their’s won’t be there..?
[13:16:56] matthewd: Possible.. but I was expecting it to be the other way around
[13:17:05] dminuoso: marahin: Mmm, knock seems much more sane than devise.
[13:17:34] dminuoso: marahin: Personally I would still use doorkeeper for authentication for the simple reason it offers a standardized interface, makes it easy to split off later, you get refresh tokens and revocation for free
[13:17:59] jhfisc: has joined #RubyOnRails
[13:18:01] dminuoso: But knock seems to be ideal for API-only authorization
[13:21:39] deevil: matthewd: so my coworker got “column "'actions_id_seq'" does not exist” when he ran the query, but “\ds” is showing the sequence
[13:22:10] crst: has joined #RubyOnRails
[13:23:28] deevil: matthewd: oh, wait, he’s rerunning the query.. stupid slack changed the quotes on him and he pasted them into the console as is… now he gets 0 rows returned.
[13:28:04] deevil: matthewd: so is it standard for rails 5.1 to be putting the “id: :sequence” in the schema.rb files..? is my system behaving normally or abnormally?
[13:29:02] matthewd: It's standard for it to include *something*, because the default PK type changed to int8 / bigserial
[13:29:28] matthewd: I thought it would be 'integer', but I may just be wrong about that
[13:30:21] jhfisc: has joined #RubyOnRails
[13:31:21] matthewd: It's interesting/worrying if your coworker's DB is also using int4 / serial, yet not putting anything in schema.rb to reflect that
[13:31:40] sandstrom: has joined #RubyOnRails
[13:35:53] jhfisc: has joined #RubyOnRails
[13:36:05] hervie: has joined #RubyOnRails
[13:44:08] moei: has joined #RubyOnRails
[13:58:07] deevil: matthewd: it definitely is strange.. I appreciate you helping me dig into the issue a bit..
[14:01:30] roshanavand: has joined #RubyOnRails
[14:09:10] jhfisc: has joined #RubyOnRails
[14:09:51] tcopeland: has joined #RubyOnRails
[14:14:58] jhfisc: has joined #RubyOnRails
[14:15:32] atrius: has joined #RubyOnRails
[14:19:16] mtkd: has joined #RubyOnRails
[14:22:14] zmo: ola les amis
[14:22:53] zmo: sur la console rails, j'ai une méthode à appeler sur un model
[14:22:58] zmo: wrong chan
[14:23:04] lupine: has joined #RubyOnRails
[14:25:17] tcopeland: has left #RubyOnRails: ()
[14:25:44] tcopeland: has joined #RubyOnRails
[14:29:35] jammu: has left #RubyOnRails: ()
[14:31:22] jmay: has joined #RubyOnRails
[14:36:36] bruno-: has joined #RubyOnRails
[14:45:52] ResidentBiscuit: has joined #RubyOnRails
[14:48:08] bronson: has joined #RubyOnRails
[15:04:16] jhfisc: has joined #RubyOnRails
[15:05:14] gregf_: has joined #RubyOnRails
[15:06:37] FLeiXiuS: has joined #RubyOnRails
[15:08:34] rakm: has joined #RubyOnRails
[15:09:50] jhfisc: has joined #RubyOnRails
[15:15:13] mars777: has joined #RubyOnRails
[15:25:37] cagomez: has joined #RubyOnRails
[15:26:26] drale2k_: has joined #RubyOnRails
[15:27:14] jhfisc: has joined #RubyOnRails
[15:31:07] knight33: has joined #RubyOnRails
[15:33:10] jhfisc: has joined #RubyOnRails
[15:37:29] brent__: has joined #RubyOnRails
[15:37:48] keegnotrub_: has joined #RubyOnRails
[15:39:16] brent__: has joined #RubyOnRails
[15:39:19] jhfisc: has joined #RubyOnRails
[15:44:07] theunraveler: has joined #RubyOnRails
[15:45:46] milesmatthias: has joined #RubyOnRails
[15:45:55] [Butch]: has joined #RubyOnRails
[15:47:26] jhfisc: has joined #RubyOnRails
[15:47:39] tcopeland: has joined #RubyOnRails
[15:49:47] milesmatthias: has joined #RubyOnRails
[15:50:21] FrostCandy: has joined #RubyOnRails
[15:50:52] milesmat_: has joined #RubyOnRails
[15:51:16] FrostCandy: Not sure if this is the right spot but, Using Devise sing_in works, but then when I do a redirect and check user_signed_in? it's false.
[15:52:06] FrostCandy: sign_in @User works until i redrirect. Is there an additional option I need to set, like "store true"?
[15:53:43] jmay: has joined #RubyOnRails
[15:54:15] jhfisc: has joined #RubyOnRails
[15:55:16] bitch: has joined #RubyOnRails
[15:58:27] Macaveli: has joined #RubyOnRails
[16:04:22] milesmatthias: has joined #RubyOnRails
[16:05:11] milesmatthias: has joined #RubyOnRails
[16:05:59] milesmatthias: has joined #RubyOnRails
[16:06:57] milesmat_: has joined #RubyOnRails
[16:09:12] NoGodDamnIdea: has joined #RubyOnRails
[16:10:37] jhfisc: has joined #RubyOnRails
[16:14:29] orbyt_: has joined #RubyOnRails
[16:19:11] jhfisc: has joined #RubyOnRails
[16:22:40] mickkelodeon: has joined #RubyOnRails
[16:23:16] mickkelodeon: if I have something like a = {zzz: [{b: 1, c: 2}, {b:3, c:4}]} , how is the best way to remove key b from all elements ?
[16:25:11] jhfisc: has joined #RubyOnRails
[16:27:52] marnas: has joined #RubyOnRails
[16:29:22] orbyt_: has joined #RubyOnRails
[16:31:20] AzaToth: has joined #RubyOnRails
[16:33:01] jhfisc: has joined #RubyOnRails
[16:41:32] rakm: has joined #RubyOnRails
[16:42:36] bruno-_: has joined #RubyOnRails
[16:44:56] jhfisc: has joined #RubyOnRails
[16:48:48] bronson: has joined #RubyOnRails
[16:50:14] jhfisc: has joined #RubyOnRails
[16:57:11] milesmatthias: has joined #RubyOnRails
[16:57:57] rakm: has joined #RubyOnRails
[17:06:37] one_zero: has joined #RubyOnRails
[17:11:44] defsdoor: has joined #RubyOnRails
[17:14:09] milesmatthias: has joined #RubyOnRails
[17:19:47] one_zero: has joined #RubyOnRails
[17:27:07] jottr: has joined #RubyOnRails
[17:28:30] dviola: has joined #RubyOnRails
[17:33:43] rakm: has joined #RubyOnRails
[17:43:27] tcopeland: has joined #RubyOnRails
[17:47:18] mtkd: has joined #RubyOnRails
[17:47:39] netzfisch: has joined #RubyOnRails
[17:50:57] dopie: has joined #RubyOnRails
[17:55:35] irishfromua: has joined #RubyOnRails
[17:57:46] conta: has joined #RubyOnRails
[17:59:22] FrostCandy: What does the double equals do in this context? req_options = { use_ssl: uri.scheme == "https", } Is it written wrong or is it actually assigning "https" to uri.scheme?
[18:01:36] jottr: has joined #RubyOnRails
[18:01:45] tbuehlmann_: FrostCandy: it compares uri.scheme and "https", returning either false or true
[18:02:03] tbuehlmann_: so it sets req_options = {use_ssl: true}
[18:03:09] daydreamm: has joined #RubyOnRails
[18:04:34] tcopeland: mickkelodeon maybe https://gist.github.com/tcopeland/9dd1c4d95a8249eaf165d115a7fd0d2f
[18:05:10] orbyt_: has joined #RubyOnRails
[18:07:58] spoon: has joined #RubyOnRails
[18:11:42] bronson: has joined #RubyOnRails
[18:17:41] lxsameer: has joined #RubyOnRails
[18:21:40] sshanbho: has joined #RubyOnRails
[18:22:13] karthick: has joined #RubyOnRails
[18:22:31] sshanbho: has left #RubyOnRails: ()
[18:23:01] mtkd: has joined #RubyOnRails
[18:29:20] netzfisch: has joined #RubyOnRails
[18:33:54] keegnotrub_: has joined #RubyOnRails
[18:34:56] jmay: has joined #RubyOnRails
[18:46:36] tsia: has joined #RubyOnRails
[18:55:16] jhfisc: has joined #RubyOnRails
[19:00:33] milesmatthias: has joined #RubyOnRails
[19:02:10] jmay: has joined #RubyOnRails
[19:07:57] tsia: has joined #RubyOnRails
[19:10:28] jhfisc: has joined #RubyOnRails
[19:11:10] gambl0re: has joined #RubyOnRails
[19:14:27] cagomez: has joined #RubyOnRails
[19:20:19] milesmat_: has joined #RubyOnRails
[19:21:30] patrickod: has joined #RubyOnRails
[19:22:43] patrickod: is there an easy way, given a a current request, to find the route template for that request. i.e. if I have a route '/api/users/:id' to get that when serving the request '/api/users/123' ?
[19:23:31] patrickod: have been looking at the actionpack code but nothing jumps out to me as to how I might be able to inspect this per-request.
[19:24:27] jhfisc: has joined #RubyOnRails
[19:33:23] sandstrom: has joined #RubyOnRails
[19:34:08] keegnotrub: has joined #RubyOnRails
[19:35:16] jhfisc: has joined #RubyOnRails
[19:39:22] dionysus69: has joined #RubyOnRails
[19:41:21] jhfisc: has joined #RubyOnRails
[19:46:53] jhfisc: has joined #RubyOnRails
[19:50:17] orbyt_: has joined #RubyOnRails
[19:51:16] jhfisc: has joined #RubyOnRails
[20:00:14] jhfisc: has joined #RubyOnRails
[20:01:11] mikecmpbll: has joined #RubyOnRails
[20:05:16] jhfisc: has joined #RubyOnRails
[20:14:35] jmay: has joined #RubyOnRails
[20:20:47] arBmind: has joined #RubyOnRails
[20:27:48] mtkd: has joined #RubyOnRails
[20:29:17] cagomez: has joined #RubyOnRails
[20:29:25] jhfisc: has joined #RubyOnRails
[20:35:17] cagomez: has joined #RubyOnRails
[20:37:11] milesmatthias: has joined #RubyOnRails
[20:37:28] jhfisc: has joined #RubyOnRails
[20:38:00] milesmatthias: has joined #RubyOnRails
[20:38:47] milesmatthias: has joined #RubyOnRails
[20:42:20] brent__: has joined #RubyOnRails
[20:43:10] cesarstafe: has joined #RubyOnRails
[20:45:50] chouhoulis: has joined #RubyOnRails
[20:46:02] rakm: has joined #RubyOnRails
[20:46:12] cesarstafe: ppl, a question here, I've a form_for with remote: true .. when I make a submit it should response with the create.js.erb reloading a div with the new content .. but instead of this it replace all the page in browser printing the pure html that brings the partial render
[20:46:44] cagomez: has joined #RubyOnRails
[20:46:45] drale2k_: has joined #RubyOnRails
[20:53:57] lxsameer: has joined #RubyOnRails
[21:00:33] coder2000: has joined #RubyOnRails
[21:01:26] ldnunes: has joined #RubyOnRails
[21:03:18] bruno-: has joined #RubyOnRails
[21:05:52] jmay: has joined #RubyOnRails
[21:09:46] coder2000: I have a course model and a user model. A user can be either a student or instructor and a course has one instructor and many students. At the same time as part of the user model it can have many classes as an instructor or have and belong to many courses as a student. How would I implement this? separate my models?
[21:11:41] coder2000: Or should it be through with an instructor flag?
[21:13:40] ur5us: has joined #RubyOnRails
[21:16:37] cagomez: has joined #RubyOnRails
[21:17:10] matthewd: coder2000: student/instructor sound like relationships a user has with a course, rather than necessarily being intrinsically different user types, to me (at least for the purpose of this relationship... you may well have other administrative reasons to globally classify a user as one or the other)
[21:18:00] coder2000: It's both. I have the role part but struggling on the relationships.
[21:21:18] mr-spoon: has joined #RubyOnRails
[21:29:45] jhfisc: has joined #RubyOnRails
[21:36:12] tcopeland: has joined #RubyOnRails
[21:39:13] sloggerkhan: has joined #RubyOnRails
[21:45:42] jhfisc: has joined #RubyOnRails
[21:47:22] chouhoulis: has joined #RubyOnRails
[21:52:32] mars777: has joined #RubyOnRails
[21:56:47] jhfisc: has joined #RubyOnRails
[21:57:28] Olipro: has joined #RubyOnRails
[22:03:10] jhfisc: has joined #RubyOnRails
[22:08:01] cagomez: has joined #RubyOnRails
[22:08:15] dviola: has joined #RubyOnRails
[22:09:10] jhfisc: has joined #RubyOnRails
[22:20:02] jhfisc: has joined #RubyOnRails
[22:23:11] jhfisc: has joined #RubyOnRails
[22:26:47] orbyt_: has joined #RubyOnRails
[22:27:56] mikecmpbll: has joined #RubyOnRails
[22:31:46] mtkd: has joined #RubyOnRails
[22:32:21] funkytwig: has joined #RubyOnRails
[22:33:22] tcopeland: has joined #RubyOnRails
[22:33:52] jmay: has joined #RubyOnRails
[22:34:15] Radar: GOOD MORNING
[22:34:48] Radar: coder2000: would the course perhaps "belongs_to" an instructor instead?
[22:35:35] jhfisc: has joined #RubyOnRails
[22:36:18] coder2000: It could but a user is both a student and an instructor so it has many courses anyway. I have decided that I will allow multiple instructors per course but I am stuck now on how to validate that at least one instructor is assigned
[22:39:22] kapil___: has joined #RubyOnRails
[22:39:33] jmay: has joined #RubyOnRails
[22:59:04] milesmatthias: has joined #RubyOnRails
[23:04:46] conta: has joined #RubyOnRails
[23:05:50] tcopeland: has joined #RubyOnRails
[23:07:59] kapil___: How to load some lines of code from other .rb file In context of current code?
[23:09:32] orbyt_: has joined #RubyOnRails
[23:27:08] havenwood: kapil___: require_relative
[23:27:43] havenwood: kapil___: Or you mean you don't want to load the entire file?
[23:29:56] lupine: has joined #RubyOnRails