« Back to channel list

#RubyOnRails - 07 October 2017

« Back 1 day Forward 1 day »
[00:02:25] cagomez: has joined #RubyOnRails
[00:22:18] jhfisc: has joined #RubyOnRails
[00:32:10] jhfisc: has joined #RubyOnRails
[00:47:59] jhfisc: has joined #RubyOnRails
[00:51:47] gr33nw00d: has joined #RubyOnRails
[00:53:03] jhfisc: has joined #RubyOnRails
[00:53:12] gr33nw00d: Hello. For rails 5 --api what would you guys recommend for formatting my JSON responses? Currently I'm exploring active_model_serializers and Rabl, but it looks like active_model_serializers is undergoing some changes? What is the rails 5 defacto preference?
[00:54:45] fryguy: activemodelserializers is the de facto preference
[00:54:51] fryguy: it's in a weird place, though. I agree
[00:54:57] fryguy: we use jsonapi-rb at work
[00:59:43] gr33nw00d: Thanks fryguy. jsonapi-rb seems powerful, but at the same time a bit "overkill"
[00:59:46] gr33nw00d: in terms of complexity
[01:00:37] gr33nw00d: Do you find it worth the extra time?
[01:03:21] rubycoder37: has joined #RubyOnRails
[01:03:48] rubycoder37: I need some help
[01:04:54] rubycoder37: someone wants to test my creativity, and they send me this challenge: https://www.dropbox.com/s/h8e3fiy3imsz28j/Desafio%20programa%C3%A7%C3%A3o.pdf?dl=0
[01:05:10] rubycoder37: but I think it's too vague, what do you guys think?
[01:05:52] rubycoder37: I want to build the app but I don't know what they expect me to do
[01:06:03] rubycoder37: it's too vague
[01:06:58] weaksauce: has joined #RubyOnRails
[01:15:00] fryguy: gr33nw00d: we wouldn't have picked it if we didn't
[01:16:07] fryguy: rubycoder37: looks like a pretty poor job audition problem
[01:18:23] rubycoder37: fryguy: I agree, it's a bunch of nonsense
[01:20:46] bronson: has joined #RubyOnRails
[01:23:35] irishfromua: has joined #RubyOnRails
[01:30:05] alfiemax: has joined #RubyOnRails
[01:42:44] rubycoder37: has joined #RubyOnRails
[01:43:13] brycesenz: has joined #RubyOnRails
[01:46:16] jhfisc: has joined #RubyOnRails
[01:46:18] rich: has joined #RubyOnRails
[01:53:26] tomoyuki28jp: has joined #RubyOnRails
[01:55:06] tomoyuki28jp: Anyone running a production rails app using api only mode?
[01:58:16] tomoyuki28jp: I'm about to create a new rails project. If I choose api only mode, I have to write seperated client and server code for each dynamic page. Is that a really good way?
[02:06:05] rubycoder37: has joined #RubyOnRails
[02:06:16] rubycoder37: tomoyuki28jp: why are you using api mode?
[02:08:50] tomoyuki28jp: rubycoder37: I'll develop native apps too. If we use ReactXP or react-native-web, react native app and web app (using react.js) can share same client code. So I'm thinking to use api-only mode.
[02:10:01] tomoyuki28jp: But if we use api only mode, I won't be able to use devise views and I gotta write all client code for devise features.
[02:10:08] tomoyuki28jp: That is my concern.
[02:15:33] tomoyuki28jp: I just found out this: https://github.com/timscott/react-devise
[02:15:35] brycesenz: tomoyuki28jp - there is a gem called devise_token_auth, if you're using JWTs for authorization in your API.
[02:17:21] tomoyuki28jp: brycesenz: Thanks for the info. I knew the gem. My concren is if I choose api only mode, I have to write client code for all dynamic page like resetting password, unlock account and etc...
[02:17:49] tomoyuki28jp: I might be able to use the react-devise though.
[02:19:09] tomoyuki28jp: I'm feeling using api only mode is a tough way though.
[02:19:17] brycesenz: tomoyuki28jp - true. I went that route just recently. It only took a few extra days, but I'm happy with it.
[02:19:28] brycesenz: (I mean implementing the devise views myself)
[02:20:14] tomoyuki28jp: brycesenz: You mean you are happy with api only mode, correct?
[02:20:40] brycesenz: tomoyuki28jp - I mean that I'm happy using the API mode and having built out the views for the devise API myself
[02:21:07] tomoyuki28jp: brycesenz: Thanks a lot for sharing your experience!
[02:21:14] brycesenz: It did take longer. But they 100% match the style of my other forms, and I like having full control of the api requests
[02:22:59] tomoyuki28jp: brycesenz: Haven't you faced any other difficulties?
[02:29:36] brycesenz: tomoyuki28jp - I'm fairly new to pure client side development, so I've had some challenges. We decided to use JWT header authentication, and implementing the logic for managing that and persisting that data across page refreshes was a challenge.
[02:29:50] brycesenz: But that's mainly because it took me a while to learn the core concepts.
[02:32:52] xibalba: has joined #RubyOnRails
[02:32:57] tomoyuki28jp: brycesenz: I see, thanks a lot for your info.
[02:33:26] tomoyuki28jp: I decided that I'm gonna try API only mode :)
[02:38:46] harrycs: has joined #RubyOnRails
[02:45:38] cagomez: has joined #RubyOnRails
[02:47:44] brycesenz: tomoyuki28jp - awesome! let me know how you like it!
[02:50:11] kies: has joined #RubyOnRails
[02:59:08] tomoyuki28jp: brycesenz: I will :)
[03:05:44] harrycs: Hi all, noob here.. Is it okay to have a controller action that doesn't correspond with a view? For example, I am using set#index to list everything in a nested resource, and then my set#show controller action only results in redirects to the nested resource
[03:06:52] harrycs: It *feels* like there might be a more elegant solution or best practice, but it wouldn't really make sense to generate the links in the set#index view to include the links directly.. so it seems like redirects in the controller would be a better option
[03:21:42] fragamus: has joined #RubyOnRails
[03:21:52] bronson: has joined #RubyOnRails
[03:26:45] segy: has joined #RubyOnRails
[03:27:19] fryguy: harrycs: yep that's generaly fine, in fact 2 of the standard restful routes have this behavior as default (create and update)
[03:27:55] harrycs: fryguy: sweet, that's what I was thinking too. It seemed like the best way to do it.. building my first app without tutorial handholding so I was doubting my logic a bit. Thanks :)
[03:31:24] matthewd: harrycs: Assuming you're on 5.1, you can probably use `resolve` to do it without the redirect
[03:32:33] harrycs: matthewd: ah sweet, let me look into that! appreciate the tip
[03:33:39] harrycs: matthewd: and that would be a routing thing, right?
[03:34:07] matthewd: Something like resolve("Post") { |post| [:posts, anchor: "row_#{post.id}"] }, I think
[03:36:51] harrycs: nice! thanks!
[03:56:01] uxp: has joined #RubyOnRails
[04:23:26] uks: has joined #RubyOnRails
[05:05:21] kitsuneyo: has joined #RubyOnRails
[05:07:18] kitsuneyo: has joined #RubyOnRails
[05:23:02] bronson: has joined #RubyOnRails
[05:43:28] kitsuneyo: has joined #RubyOnRails
[05:56:08] kitsuneyo: has joined #RubyOnRails
[05:58:52] apparition47: has joined #RubyOnRails
[06:04:18] kies: has joined #RubyOnRails
[06:16:45] pawel__: has joined #RubyOnRails
[06:21:42] DTZUZO: has joined #RubyOnRails
[06:23:55] bronson: has joined #RubyOnRails
[07:10:27] DTZUZO: has joined #RubyOnRails
[07:27:18] rfoust: has joined #RubyOnRails
[07:31:37] AzaToth: has joined #RubyOnRails
[07:32:47] snickers: has joined #RubyOnRails
[07:33:28] jphase: has joined #RubyOnRails
[07:49:10] shime: has joined #RubyOnRails
[07:52:16] alfiemax: has joined #RubyOnRails
[08:10:22] Axsuul: has joined #RubyOnRails
[08:14:52] Chernobuk: has joined #RubyOnRails
[08:23:41] kies: has joined #RubyOnRails
[08:24:41] bronson: has joined #RubyOnRails
[08:42:19] srinidhi: has joined #RubyOnRails
[08:47:09] fragamus: has joined #RubyOnRails
[08:54:27] Guest97372: has joined #RubyOnRails
[09:04:17] shime: has joined #RubyOnRails
[09:07:05] arBmind: has joined #RubyOnRails
[09:09:46] jhfisc: has joined #RubyOnRails
[09:12:02] opekktar: has joined #RubyOnRails
[09:16:07] jhfisc: has joined #RubyOnRails
[09:21:04] Werner89: has joined #RubyOnRails
[09:22:07] jhfisc: has joined #RubyOnRails
[09:23:42] conta: has joined #RubyOnRails
[09:30:07] jhfisc: has joined #RubyOnRails
[09:37:26] conta: has joined #RubyOnRails
[09:39:01] apparition47: has joined #RubyOnRails
[09:42:12] marr: has joined #RubyOnRails
[09:46:27] jhfisc: has joined #RubyOnRails
[09:53:50] blackmesa1: has joined #RubyOnRails
[09:54:36] cagomez: has joined #RubyOnRails
[10:05:23] defsdoor: has joined #RubyOnRails
[10:26:02] bronson: has joined #RubyOnRails
[11:14:37] fschuindt: has joined #RubyOnRails
[11:16:34] shime: has joined #RubyOnRails
[11:17:11] blackmesa: has joined #RubyOnRails
[11:20:37] bruno-: has joined #RubyOnRails
[11:25:22] FernandoBasso: has joined #RubyOnRails
[11:25:31] hammer065: has joined #RubyOnRails
[11:32:09] fschuindt1: has joined #RubyOnRails
[11:58:55] cagomez: has joined #RubyOnRails
[12:21:08] kitsuneyo: has joined #RubyOnRails
[12:27:03] bronson: has joined #RubyOnRails
[12:44:51] ShalokShalom_: has joined #RubyOnRails
[12:57:57] conta: has joined #RubyOnRails
[12:58:06] rich: has left #RubyOnRails: ("WeeChat 1.0.1")
[13:07:11] srinidhi: has joined #RubyOnRails
[13:19:31] blackmesa: has joined #RubyOnRails
[13:28:08] AnotherOne: has joined #RubyOnRails
[13:32:16] alfiemax: has joined #RubyOnRails
[13:32:44] harrycs: has joined #RubyOnRails
[13:38:38] DTZUZO: has joined #RubyOnRails
[13:46:05] _ritchie_: has joined #RubyOnRails
[13:46:13] harrycs: has joined #RubyOnRails
[13:48:13] jhfisc: has joined #RubyOnRails
[13:54:14] jhfisc: has joined #RubyOnRails
[13:57:00] jhfisc: has joined #RubyOnRails
[14:02:53] jhfisc: has joined #RubyOnRails
[14:07:41] bruno-: has joined #RubyOnRails
[14:15:25] jhfisc: has joined #RubyOnRails
[14:21:53] fragamus: has joined #RubyOnRails
[14:27:39] jphase: has joined #RubyOnRails
[14:27:57] bronson: has joined #RubyOnRails
[14:37:12] Kutakizukari: has joined #RubyOnRails
[14:39:54] _ritchie_: has joined #RubyOnRails
[14:45:11] fschuindt1: has joined #RubyOnRails
[14:53:53] _ritchie_: has joined #RubyOnRails
[14:54:01] brycesenz: has joined #RubyOnRails
[14:55:05] krz: has joined #RubyOnRails
[15:01:19] apparition47: has joined #RubyOnRails
[15:07:01] netzfisch: has joined #RubyOnRails
[15:12:10] rfoust: has joined #RubyOnRails
[15:22:15] andrewray: has joined #RubyOnRails
[15:22:55] moei: has joined #RubyOnRails
[16:02:56] bruno-: has joined #RubyOnRails
[16:03:14] orbyt_: has joined #RubyOnRails
[16:12:12] jhfisc: has joined #RubyOnRails
[16:15:30] nickjj: hi, it's been a while since i worked on a rails app, can someone help me out on how to wire up a routes.rb to fulfill my URL goals? https://gist.github.com/nickjj/548e28b18318d97ba0a58e0b42c077b5
[16:16:28] ivanskie: has joined #RubyOnRails
[16:17:54] nickjj: if it helps, imagine github's settings area https://github.com/settings/profile -- this is what i'm trying to pull off except in my case, there's multiple appointments so there needs to be an ID in the url too
[16:18:07] jhfisc: has joined #RubyOnRails
[16:21:51] fragamus: has joined #RubyOnRails
[16:29:04] bronson: has joined #RubyOnRails
[16:29:55] jhfisc: has joined #RubyOnRails
[16:41:16] nausea: has joined #RubyOnRails
[16:43:14] brycesenz: has joined #RubyOnRails
[16:44:00] jhfisc: has joined #RubyOnRails
[16:49:49] marr: has joined #RubyOnRails
[16:54:03] jhfisc: has joined #RubyOnRails
[17:01:05] NoGodDamnIdea: has joined #RubyOnRails
[17:02:29] b0zz0: has joined #RubyOnRails
[17:02:51] blackmesa: has joined #RubyOnRails
[17:04:18] jhfisc: has joined #RubyOnRails
[17:10:09] jhfisc: has joined #RubyOnRails
[17:12:45] nausea: has joined #RubyOnRails
[17:15:17] jhfisc: has joined #RubyOnRails
[17:17:47] newcoder: has joined #RubyOnRails
[17:17:55] newcoder: has left #RubyOnRails: ()
[17:27:26] Pumukel: has joined #RubyOnRails
[17:29:08] jhfisc: has joined #RubyOnRails
[17:35:08] jhfisc: has joined #RubyOnRails
[17:35:23] alfiemax: has joined #RubyOnRails
[17:41:10] jhfisc: has joined #RubyOnRails
[17:44:07] jhfisc: has joined #RubyOnRails
[17:50:07] jhfisc: has joined #RubyOnRails
[17:56:09] jhfisc: has joined #RubyOnRails
[17:58:04] EXCHGR: has joined #RubyOnRails
[17:59:08] tcopeland: has joined #RubyOnRails
[17:59:59] sagax: has joined #RubyOnRails
[18:00:39] blackmesa: has joined #RubyOnRails
[18:02:09] jhfisc: has joined #RubyOnRails
[18:08:04] jhfisc: has joined #RubyOnRails
[18:10:34] blackmesa: has joined #RubyOnRails
[18:23:18] daydream: has joined #RubyOnRails
[18:29:59] bronson: has joined #RubyOnRails
[18:41:42] orbyt_: has joined #RubyOnRails
[18:46:08] Aherin: has joined #RubyOnRails
[18:52:49] dviola: has joined #RubyOnRails
[19:03:07] tcopeland: has joined #RubyOnRails
[19:05:57] jhfisc: has joined #RubyOnRails
[19:12:07] jhfisc: has joined #RubyOnRails
[19:16:03] jhfisc: has joined #RubyOnRails
[19:21:19] kies: has joined #RubyOnRails
[19:23:34] hfp_work: has joined #RubyOnRails
[19:28:03] weaksauce: has joined #RubyOnRails
[19:32:36] jhfisc: has joined #RubyOnRails
[19:36:09] timdotrb: has joined #RubyOnRails
[19:36:13] timdotrb: Afternoon, all
[19:40:24] b0zz0: has joined #RubyOnRails
[19:45:10] jhfisc: has joined #RubyOnRails
[19:58:18] jhfisc: has joined #RubyOnRails
[20:01:42] rgr: has joined #RubyOnRails
[20:16:57] jhfisc: has joined #RubyOnRails
[20:29:52] jhfisc: has joined #RubyOnRails
[20:30:55] bronson: has joined #RubyOnRails
[20:37:49] jhfisc: has joined #RubyOnRails
[20:48:21] jhfisc: has joined #RubyOnRails
[20:50:19] yehaizi: has joined #RubyOnRails
[20:50:34] b0zz0: has joined #RubyOnRails
[20:51:23] b0zz0: has joined #RubyOnRails
[20:52:14] b0zz0: has joined #RubyOnRails
[20:53:03] b0zz0: has joined #RubyOnRails
[20:53:34] jhfisc: has joined #RubyOnRails
[20:53:44] b0zz0: has joined #RubyOnRails
[20:54:33] b0zz0: has joined #RubyOnRails
[20:55:20] b0zz0: has joined #RubyOnRails
[20:56:04] b0zz0: has joined #RubyOnRails
[20:56:53] b0zz0: has joined #RubyOnRails
[20:57:39] b0zz0: has joined #RubyOnRails
[20:58:16] b0zz0: has joined #RubyOnRails
[20:59:09] b0zz0: has joined #RubyOnRails
[21:00:10] jhfisc: has joined #RubyOnRails
[21:08:02] jhfisc: has joined #RubyOnRails
[21:15:16] jhfisc: has joined #RubyOnRails
[21:17:41] andrewray: has joined #RubyOnRails
[21:25:54] marr: has joined #RubyOnRails
[21:44:56] jhfisc: has joined #RubyOnRails
[21:47:36] jhfisc: has joined #RubyOnRails
[21:54:01] jhfisc: has joined #RubyOnRails
[22:17:52] yehaizi: i find my controller actions are riddled with validation and error checking - is there a generally accepted way to abstract this away from the actions themselves? implementing it all in before_actions requires loading the models themselves in before_actions, which seems to be considered bad style
[22:20:40] rfoust: has joined #RubyOnRails
[22:25:53] jhfisc: has joined #RubyOnRails
[22:32:11] bronson: has joined #RubyOnRails
[22:39:00] andrewray: has joined #RubyOnRails
[22:42:53] mikecmpbll: yehaizi : loading models in before actions is bad style?
[22:43:18] mikecmpbll: yehaizi : what kind of validation and error checking? should occur on the models or form objects most likely.
[22:47:11] jhfisc: has joined #RubyOnRails
[22:59:58] jhfisc: has joined #RubyOnRails
[23:05:12] rgr: has joined #RubyOnRails
[23:06:07] jhfisc: has joined #RubyOnRails
[23:06:37] tcopeland: has joined #RubyOnRails
[23:06:47] ahrs: has joined #RubyOnRails
[23:14:03] jhfisc: has joined #RubyOnRails
[23:18:58] mtkd: has joined #RubyOnRails
[23:27:43] jphase: has joined #RubyOnRails
[23:29:34] musicnode: has joined #RubyOnRails
[23:33:48] jhfisc: has joined #RubyOnRails
[23:36:58] jhfisc: has joined #RubyOnRails
[23:37:14] rrichardsr3: has joined #RubyOnRails
[23:42:35] jhfisc: has joined #RubyOnRails
[23:43:33] LambdaSource: has joined #RubyOnRails
[23:48:25] AnotherOne: has joined #RubyOnRails
[23:56:11] orbyt_: has joined #RubyOnRails
[23:58:01] fryguy: has joined #RubyOnRails