jmarchello

Activity Graph

Page 1 of 1

2017-05-18

[18:32:06] jmarchello: has joined #RubyOnRails
[20:30:38] jmarchello: has left #RubyOnRails: ()

2017-04-17

[18:46:57] jmarchello: has joined #RubyOnRails
[19:24:24] jmarchello: has left #RubyOnRails: ()

2017-04-07

[16:27:19] jmarchello: has joined #RubyOnRails
[16:28:23] jmarchello: What are people using these days for token authentication?
[16:28:44] jmarchello: looking for key + secret key model similar to AWS
[16:29:55] jmarchello: dminuoso: sorry, token authorization?
[16:32:29] jmarchello: I'm building an api that will interact with other apps. So I want to gen a key and give it to the consumer to send with each request
[16:34:10] jmarchello: dminuoso: I'm not quite following…
[16:35:46] jmarchello: dminuoso: right now this is just an MVP. So as long as I can generate a key, I'll get it to the consumer outside of the application.
[16:36:26] jmarchello: I'm mainly concerned with generating the key, and verifying it on each incoming request.
[16:38:58] jmarchello: dminuoso: ok, are there any well-supported gems out there that help with JWT management?
[16:39:26] jmarchello: haha "common" and "best practice" don't always match up
[16:39:37] jmarchello: dminuoso: this user has access
[16:41:15] jmarchello: dminuoso: I would like each consumer to have their own key
[16:43:08] jmarchello: so JWTs are more for passing a payload than simple authorization?
[16:45:35] jmarchello: havenwood: thanks
[16:46:30] jmarchello: dminuoso: thanks for your help, I'm going to read up on JWTs
[16:55:29] jmarchello: dminuoso: I see
[21:29:50] jmarchello: Quit: Leaving.
[22:11:58] jmarchello: has joined #RubyOnRails
[22:14:04] jmarchello: has left #RubyOnRails: ()

2016-06-29

[14:25:21] jmarchello: has joined #RubyOnRails

2016-06-28

[21:34:36] jmarchello: has joined #RubyOnRails
[21:35:35] jmarchello: Does anyone know of a way to have one ActiveRecord class be made up of two tables?
[21:36:26] jmarchello: cnk: ahh.. Yes that would work
[21:37:15] jmarchello: no, I'm just looking for a way to keep from duplicating data
[21:39:04] jmarchello: Unfortunately I'm not sure how much I can talk about it given it's a proprietary system. I know that doesn't really help much haha
[21:40:47] jmarchello: cnk: thanks for the input. I appreciate it. I'll explore the DB view options and see if that's a viable solution.
[21:41:38] jmarchello: I'll keep that in mind
[21:42:39] jmarchello: I definitely will. Thanks!
[22:03:49] jmarchello: Quit: Leaving.

2016-05-13

[21:46:34] jmarchello: has joined #RubyOnRails
[21:48:26] jmarchello: Hello all, does anyone know of a way to break large test files into smaller one using Test::Unit? I've tried breaking the class into subclasses but I can't seem to load the parent object file since it's not in the load path.
[21:50:09] jmarchello: cnk: No, I mostly just want to break the tests up in an organized way
[21:50:23] jmarchello: and keep my files from being 1000s of lines long
[21:51:16] jmarchello: I do need them to share some private variables. Is there a way to mix them together?
[21:52:45] jmarchello: Well, I have some private methods that are keeping my tests dry, then the shared data is just a canonical hash of correct data
[21:53:40] jmarchello: I'll keep them together then
[21:54:29] jmarchello: that's an excelent point
[21:56:25] jmarchello: Good point, i am running the same tests just on different sets of data
[21:57:24] jmarchello: I'm off, thanks for your help
[21:57:47] jmarchello: has left #RubyOnRails: ()

2015-12-12

[04:12:00] jmarchello: has joined #RubyOnRails
[14:50:43] jmarchello: has joined #RubyOnRails
[14:51:28] jmarchello: has left #RubyOnRails: ()

2015-12-11

[20:53:45] jmarchello: has joined #RubyOnRails
[20:56:45] jmarchello: Good afternoon, I have a rails app serving as a json api for a mobile application. My question is this, is there a way to format my request from the mobile app so that I can simply do an Object.new(object_params) to build the object? Nested attributes are a factor and this is a Rails 4 application.
[20:57:26] jmarchello: Do I just have to look at a normal rails request and do my best to format my json the same way?
[21:00:13] jmarchello: ciree: as in just picking values from the params hash and loading them all in one by one?
[21:02:07] jmarchello: ciree: the code you provided earlier did not make sense to me. What are you doing there?
[21:02:17] jmarchello: ciree: ie. fetch('/my/rails/api').then((res) => res.json()).then(json => /* do logic to format it nice for my models*/)
[21:04:10] jmarchello: Quit: Leaving.
[21:38:36] jmarchello: has joined #RubyOnRails
[23:00:27] jmarchello: Quit: Leaving.

2015-12-09

[16:10:47] jmarchello: has joined #RubyOnRails
[16:13:57] jmarchello: Good morning, I'm trying to work with nested resources before their persisted (for validation). Does anyone know a good way to do so?
[16:16:56] jmarchello: I have a Form that has many Answers. The answers are created via nested forms. So may params look like "form => {??? answer_attributes => {???}}
[16:19:05] jmarchello: I need to validate the answers, but It's a little more complicated than that. The Form also has questions and those questions have the answers. I need to pull the answers, and then check if there are answers for each of the required questions
[16:19:40] jmarchello: let me look at validates_associated and see if it fits my needs
[16:20:10] jmarchello: btw, thanks for the help
[16:21:52] jmarchello: will validates_associated run a custom validation as well? (ie. validate :my_validation_method)
[16:24:49] jmarchello: hfp: I've used paperclip for storing large zip files before. It's supports all kinds of files. I would recommend paperclip.
[16:27:09] jmarchello: elaptics: Thank you, I'm going to look into a solution using validated_associated
[16:36:13] jmarchello: has left #RubyOnRails: ()
[17:12:57] jmarchello: has joined #RubyOnRails
[17:21:34] jmarchello: I've never seen rails-clips, but I listen to the guys podcast and he's pretty legit. He also hosts Rails Remote Conf.
[17:38:56] jmarchello: Read error: Connection reset by peer
[18:27:59] jmarchello: has joined #RubyOnRails
[20:20:06] jmarchello: Ping timeout: 240 seconds
[20:20:27] jmarchello: has joined #RubyOnRails
[20:34:43] jmarchello: Quit: Leaving.
[20:50:02] jmarchello: has joined #RubyOnRails
[20:58:16] jmarchello: has left #RubyOnRails: ()

2015-12-07

[17:04:54] jmarchello: has joined #RubyOnRails
[17:08:39] jmarchello: Hello all, does someone have a moment to help me with RailsAdmin field configuration?
[17:15:04] jmarchello: has left #RubyOnRails: ()
[17:15:07] jmarchello: has joined #RubyOnRails
[17:15:19] jmarchello: has left #RubyOnRails: ()
[17:15:36] jmarchello: has joined #RubyOnRails
[17:16:29] jmarchello: has left #RubyOnRails: ()

2015-12-04

[20:26:02] jmarchello: has joined #RubyOnRails
[20:39:07] jmarchello: has left #RubyOnRails: ()
[22:57:51] jmarchello: has joined #RubyOnRails
[23:01:55] jmarchello: Quit: Leaving.

2015-11-01

[01:29:57] jmarchello: has joined #ruby
[01:31:35] jmarchello: has left #ruby: ()

2015-10-31

[14:16:27] jmarchello: has joined #RubyOnRails
[14:21:08] jmarchello: has left #RubyOnRails: ()
[14:21:20] jmarchello: has joined #ruby
[14:22:52] jmarchello: has left #ruby: ()
[14:47:23] jmarchello: has joined #ruby
[15:05:41] jmarchello: Quit: Leaving.