« Back to channel list

#RubyOnRails - 08 February 2019

« Back 1 day Forward 1 day »
[00:08:53] newplasticideas: has left #RubyOnRails: ()
[00:10:18] newplasticideas: has joined #RubyOnRails
[00:18:03] bruul: has joined #RubyOnRails
[00:22:12] blackmesa1: has joined #RubyOnRails
[00:25:10] bruul: i've got a rudimentary blog posting thing after following a tutorial (https://guides.rubyonrails.org/getting_started.html#rendering-partial-collections) and i've got an Article model that has many Comments attached to it, and the Article#show has `<%= render @article.comments %>` but this ends up rendering all the comments *plus* one blank comment that doesn't exist. it also shows a blank comment on an
[00:25:12] bruul: article that has no comments. how do i get it so that i don't get an extra empty comment partial? my repo is here (https://gitlab.com/cptchuckles/hello_rails)
[00:25:58] crankharder: has joined #RubyOnRails
[00:28:21] uks: has joined #RubyOnRails
[00:28:43] quazimodo: has joined #RubyOnRails
[00:38:02] Dreamer3: has joined #RubyOnRails
[00:42:50] havenwood: bruul: Each time you run `@article.comments.build`, it creates a single, non-persisted Comment.
[00:49:26] bruul: so this is happening because i put my form ahead of my render call... i could fix this by placing the form at the bottom
[00:50:38] bruul: but i really want it on top :/
[00:51:00] xick: has left #RubyOnRails: ("Leaving")
[00:51:10] havenwood: bruul: @article.comments.where.not(id: nil)
[00:53:49] crankharder: has joined #RubyOnRails
[00:56:42] bruul: it works, ty
[01:13:13] yoshie902a: has joined #RubyOnRails
[01:13:26] yoshie902a: https://stackoverflow.com/questions/54584687/undefined-number-to-currency-inside-a-helper-are-helpers-for-views-or-controlle
[01:14:10] yoshie902a: is number_to_currency automatically available in helpers, or do I need to include them?
[01:27:57] havenwood: yoshie902a: The #number_to_currency method takes an argument that is the number you want to format as a currency.
[01:28:30] orbyt_: has joined #RubyOnRails
[01:28:31] havenwood: yoshie902a: It's `number_to_currency(42)` not `42.number_to_currency`.
[01:43:19] gambl0re: has joined #RubyOnRails
[01:59:25] yoshie902a: Is there a function to help display “Last signed in” messages, so given a date, the output would be “1 day,”, 2 weeks, 1 month,?
[02:16:13] crankharder: has joined #RubyOnRails
[02:24:42] crankharder: has joined #RubyOnRails
[02:27:27] SteenJobs: has joined #RubyOnRails
[02:43:17] cnsvc: has joined #RubyOnRails
[02:48:50] orbyt_: has joined #RubyOnRails
[02:56:06] octos: has joined #RubyOnRails
[03:26:47] orbyt_: has joined #RubyOnRails
[03:39:23] Technodrome: has joined #RubyOnRails
[03:40:08] kvda: has joined #RubyOnRails
[03:43:34] vimto: has joined #RubyOnRails
[03:46:29] jottr: has joined #RubyOnRails
[03:52:38] tdy: has joined #RubyOnRails
[03:55:52] Souvent22: has joined #RubyOnRails
[03:57:05] DTZUZO: has joined #RubyOnRails
[03:58:26] crankharder: has joined #RubyOnRails
[04:09:38] braincrash: has joined #RubyOnRails
[04:20:12] fcser_: has joined #RubyOnRails
[04:55:47] v01d4lph4: has joined #RubyOnRails
[04:56:35] v01d4lph4: has joined #RubyOnRails
[05:05:28] v01d4lph4: has joined #RubyOnRails
[05:08:32] orbyt_: has joined #RubyOnRails
[05:12:22] cnsvc: has joined #RubyOnRails
[05:16:38] crankharder: has joined #RubyOnRails
[05:24:57] v01d4lph4: has joined #RubyOnRails
[05:25:50] v01d4lph4: has joined #RubyOnRails
[05:29:48] lexileo: has joined #RubyOnRails
[05:37:37] alan_w: has joined #RubyOnRails
[05:38:21] srinidhi: has joined #RubyOnRails
[05:40:23] kvda: has joined #RubyOnRails
[05:49:35] uksio: has joined #RubyOnRails
[05:58:26] jottr: has joined #RubyOnRails
[06:15:11] conta: has joined #RubyOnRails
[06:19:47] catbusters: has joined #RubyOnRails
[06:35:57] haxx0r: has joined #RubyOnRails
[06:37:21] haxx0r: i've copied some templates from an old production to throw them into a new project. they include some german characters 'öß' and other. however, now the templates won't work. Encoding::UndefinedConversionError "\xC3" from ASCII-8BIT to UTF-8. i use ATOM as my texeditor and the encoding for the document is UTF-8. i'm confused
[06:37:44] haxx0r: using haml
[06:39:09] haxx0r: my console says:
[06:39:11] haxx0r: [1] pry(main)> Encoding.default_internal
[06:39:11] haxx0r: => #<Encoding:UTF-8>
[06:40:07] Technodrome: has joined #RubyOnRails
[06:40:09] catbusters: Do you have `# encoding: utf-8` set in the page? It's most likely not the cause, but couldn't hurt to try
[06:40:45] haxx0r: i remember back in the days we wrote that in controllers
[06:41:36] catbusters: That goes in your html file
[06:41:54] catbusters: in your top level layout file
[06:42:04] haxx0r: i do haml. but won't work
[06:42:29] haxx0r: maybe does
[06:43:25] haxx0r: -#encoding: utf-8
[06:43:28] haxx0r: ya, seems to work
[06:45:29] haxx0r: you're my hero of the day
[06:45:31] haxx0r: love you <3
[06:46:43] hnanon: has joined #RubyOnRails
[06:47:06] hnanon: Is there a ruby equivalent to Python's requests library?
[06:47:54] srinidhi: has joined #RubyOnRails
[06:48:26] catbusters: There's a gem called http you might want to try
[06:49:02] catbusters: haxx0r glad it worked :)
[06:49:22] haxx0r: @hnanon require "net/http"
[06:49:51] haxx0r: Net::HTTP.get('blubb.com')
[06:49:59] hnanon: Looks like httparty is more in line with python's requests.
[06:50:18] haxx0r: if you wanna do more advanced stuff, don't use the bare nethttplib
[06:50:34] haxx0r: yeah, there are plenty of other gems that are super helpful for working against APIs, scraping data
[06:50:41] haxx0r: mechanize is interesting for scraping
[06:51:13] haxx0r: httparty is awesome for api handling
[06:52:20] catbusters: https://github.com/httprb/http is what I've been using and they claim to have been inspired by requests
[06:52:46] hnanon: RestClient looks interesting too.
[06:55:02] hnanon: catbusters, haxx0r : Thanks.
[07:01:52] alan_w: has joined #RubyOnRails
[07:15:13] jottr: has joined #RubyOnRails
[07:39:28] valadares: has joined #RubyOnRails
[07:43:00] sandstrom: has joined #RubyOnRails
[07:44:08] srinidhi: has joined #RubyOnRails
[08:17:59] crankharder: has joined #RubyOnRails
[08:23:07] jottr: has joined #RubyOnRails
[08:24:20] Jervis_: has joined #RubyOnRails
[08:28:14] v01d4lph4: has joined #RubyOnRails
[08:28:43] Ergo: has joined #RubyOnRails
[08:31:40] BrianJ: has joined #RubyOnRails
[08:34:26] BrianJ: So I upgraded my rails 5.2.1 to 5.2.2 running in api mode and all of sudden my cors initializer: Rails.application.config.middleware.insert_before 0, Rack::Cors initializer at https://gist.github.com/bjensen/90f8b6c6f206a07c4e4f323bdd65a78a is giving me errors a FrozenError can't modify frozen Array. Is there a different way to setup cors now?
[08:36:04] defsdoor: has joined #RubyOnRails
[08:36:11] v01d4lph4: has joined #RubyOnRails
[08:37:56] Technodrome: has joined #RubyOnRails
[08:40:23] armyriad: has joined #RubyOnRails
[08:45:51] BrianJ: nm, tracking it down to a gem
[08:48:38] sandstrom: has joined #RubyOnRails
[08:55:57] jottr: has joined #RubyOnRails
[09:04:59] crankharder: has joined #RubyOnRails
[09:07:02] Technodrome: has joined #RubyOnRails
[09:38:21] alan_w: has joined #RubyOnRails
[09:39:31] blackmesa1: has joined #RubyOnRails
[09:47:19] blackmesa1: has joined #RubyOnRails
[09:48:14] jottr: has joined #RubyOnRails
[09:49:10] kapil____: has joined #RubyOnRails
[09:56:25] crankharder: has joined #RubyOnRails
[10:04:27] Technodrome: has joined #RubyOnRails
[10:08:48] Guest16678: has joined #RubyOnRails
[10:13:41] crankharder: has joined #RubyOnRails
[10:20:00] Guest16678: has joined #RubyOnRails
[10:40:22] Guest16678: has joined #RubyOnRails
[10:45:57] sameerynho: has joined #RubyOnRails
[11:32:28] blackmesa1: has joined #RubyOnRails
[11:38:05] status402: has joined #RubyOnRails
[11:40:44] Technodrome: has joined #RubyOnRails
[11:46:16] status402: has joined #RubyOnRails
[11:46:26] crankharder: has joined #RubyOnRails
[11:51:53] lankanmon: has joined #RubyOnRails
[11:52:47] crankharder: has joined #RubyOnRails
[12:06:52] jottr: has joined #RubyOnRails
[12:09:24] xco: has joined #RubyOnRails
[12:09:34] xco: : I know there’s word for it but for some reason i can’t remember, what’s the word for when you’re testing some application and for each test a random result is returned, example say you have a rails app and for each refresh of the page a random error (different from the previous) shows up?
[12:10:33] haxx0r: it's called "stupidity" ?
[12:16:07] xco: no it’s not, unless it’s on your side for not knowing? 🤔
[12:17:16] Souvent22: has joined #RubyOnRails
[12:21:59] beholders_eye: has joined #RubyOnRails
[12:23:20] blackmesa1: has joined #RubyOnRails
[12:33:00] DTZUZO: has joined #RubyOnRails
[12:34:03] roshanavand1: has joined #RubyOnRails
[12:35:27] alan_w: has joined #RubyOnRails
[12:48:33] status402: has joined #RubyOnRails
[12:51:52] blackmesa1: has joined #RubyOnRails
[13:07:44] blackmesa1: has joined #RubyOnRails
[13:20:15] _aeris_: has joined #RubyOnRails
[13:23:57] Exagone313: has joined #RubyOnRails
[13:31:24] Technodrome: has joined #RubyOnRails
[13:41:46] thoraxe: has joined #RubyOnRails
[13:42:21] thoraxe: so, weird question. i see how to use .order for multiple fields (eg: order by 1 then by 2) but I am trying to do "order by the older of 2 dates" and not really understanding how to do it
[13:44:19] fox_mulder_cp: thoraxe: hm? ose filter with date before and date after and order creteria after
[13:44:34] thoraxe: Article.all.limit(10).order("LEAST(published_on,created_at)")
[13:44:36] thoraxe: i think this is working
[13:44:38] thoraxe: gotta check
[13:45:01] fox_mulder_cp: filter FIRSTLY
[13:45:23] fox_mulder_cp: and .limit aat last
[13:46:12] fox_mulder_cp: or you take random 10 unsorted positions, filter first 10 and than order it by date
[13:46:13] za1b1tsu: has joined #RubyOnRails
[13:47:34] IGnorAND: Anyone use https://github.com/lynndylanhurley/devise_token_auth? I don't seem to be getting a access-token on a new request. Am I missing something in my controller?
[13:47:37] fox_mulder_cp: all funstions called on results based on previous functions. from left to right
[13:49:28] v01d4lph4: has joined #RubyOnRails
[13:49:47] thoraxe: fox_mulder_cp: that was just something I whipped in console
[13:49:55] thoraxe: but that's a good point, thanks
[13:51:35] fox_mulder_cp: thoraxe: if you read classic sql query from any engine you see - select date, name from table where date > bla and date < now order by date limit 10
[13:51:42] IGnorAND: Nevermind, found it. I need include DeviseTokenAuth::Concerns::SetUserByToken
[13:59:44] ariedler: has joined #RubyOnRails
[14:07:39] SteenJobs: has joined #RubyOnRails
[14:07:43] alan_w: has joined #RubyOnRails
[14:14:06] blackmesa1: has joined #RubyOnRails
[14:20:14] blackmesa1: has joined #RubyOnRails
[14:21:16] v01d4lph4: has joined #RubyOnRails
[14:22:18] srinidhi: has joined #RubyOnRails
[14:23:16] srinidhi: has joined #RubyOnRails
[14:26:35] jottr: has joined #RubyOnRails
[14:43:02] blackmesa: has joined #RubyOnRails
[14:47:09] lexileo: has joined #RubyOnRails
[14:51:42] krawchyk: has joined #RubyOnRails
[14:56:21] orbyt_: has joined #RubyOnRails
[14:56:36] jlebrech: has joined #RubyOnRails
[14:56:46] jlebrech: gon gem is great
[14:57:17] blackmesa: has joined #RubyOnRails
[15:00:06] Ergo: has joined #RubyOnRails
[15:17:03] Technodrome: has joined #RubyOnRails
[15:28:08] jottr: has joined #RubyOnRails
[15:28:48] orbyt_: has joined #RubyOnRails
[15:29:49] Souvent22: has joined #RubyOnRails
[15:31:58] srinidhi: has joined #RubyOnRails
[15:33:35] Souvent22_: has joined #RubyOnRails
[15:41:10] orbyt_: has joined #RubyOnRails
[15:52:30] conta1: has joined #RubyOnRails
[15:58:44] xco: has left #RubyOnRails: ()
[16:17:02] dionysus70: has joined #RubyOnRails
[16:18:07] Souvent22: has joined #RubyOnRails
[16:18:09] dionysus70: Would anyone share their template.rb-s if they have public ones?
[16:25:30] Saukk: has joined #RubyOnRails
[16:30:18] maryo: has joined #RubyOnRails
[16:39:00] deathwishdave: has joined #RubyOnRails
[16:45:15] jottr: has joined #RubyOnRails
[16:52:50] tdy: has joined #RubyOnRails
[17:04:13] eclm: has joined #RubyOnRails
[17:04:52] kapil____: has joined #RubyOnRails
[17:04:57] DTZUZO: has joined #RubyOnRails
[17:05:31] agent_white: has joined #RubyOnRails
[17:09:56] sandstrom: has joined #RubyOnRails
[17:12:33] reber: has joined #RubyOnRails
[17:13:14] [Butch]: has joined #RubyOnRails
[17:17:19] v01d4lph4: has joined #RubyOnRails
[17:21:06] Ergo: has joined #RubyOnRails
[17:21:17] _aeris: has joined #RubyOnRails
[17:22:56] mwlang: has joined #RubyOnRails
[17:23:12] mwlang: greetings, folks
[17:24:58] mwlang: I’m looking into building a new Rails 5 app that needs to be multi-tenanted. Thus, apartment gem comes to mind, but also perhaps the better route in this day and age is to dockerize the rails app and spin up docker images per tenant/domain served instead of building logic into the app itself.
[17:25:28] mwlang: Has anybody recently weighed pros and cons of the two approaches and have some insights or links to share?
[17:25:30] Puffball: has joined #RubyOnRails
[17:28:05] blackmesa: has joined #RubyOnRails
[17:33:56] barhum2013: has joined #RubyOnRails
[17:38:38] orbyt_: has joined #RubyOnRails
[17:40:53] maryo: has joined #RubyOnRails
[17:49:19] orbyt_: has joined #RubyOnRails
[17:49:41] srinidhi: has joined #RubyOnRails
[17:55:55] DTZUZO: has joined #RubyOnRails
[17:57:48] barhum2013: has joined #RubyOnRails
[18:00:49] gambl0re: has joined #RubyOnRails
[18:01:52] Dbugger: has joined #RubyOnRails
[18:04:50] barhum2013: has joined #RubyOnRails
[18:10:54] barhum2013: has joined #RubyOnRails
[18:12:31] ChronoHax: has joined #RubyOnRails
[18:19:38] Souvent22: has joined #RubyOnRails
[18:22:21] hahuang6-: has joined #RubyOnRails
[18:30:11] crankharder: has joined #RubyOnRails
[18:31:12] havenwood: mwlang: Radar wrote the book on that: https://leanpub.com/multi-tenancy-rails
[18:32:38] havenwood: mwlang: Tenants share no data? How many tenants are there?
[18:33:25] mwlang: havenwood: Ah yes, radar was writing that book when I was last hanging out around these parts....
[18:34:00] mwlang: there will be some shared model data — mostly in the form of templates they can choose to rapidly launch their sites.
[18:34:10] mwlang: after that…not sure there will be all that much “sharing"
[18:39:55] havenwood: mwlang: So the only thing shared is basically the commonly seeded data? Mmm.
[18:40:21] havenwood: mwlang: Lots of tenants or just a few?
[18:40:26] mwlang: yeah, hence the idea to simply dockerize the whole thing.
[18:40:53] mwlang: well, it’s a new app, but idea is 1000’s of tenants.
[18:41:28] mwlang: but it’ll probably grow slowly enough that I do not have to worry about it until much later in the life-cycle.
[18:44:20] mwlang: the way I see it…if using something like apartment, can have many, many “small tenants” on one server and one deploy updates many at once.
[18:45:27] mwlang: the tenants are law firms, for reference….so you can probably imagine most of these sites will only draw local traffic for local business in their geographical areas…not like a national company with a million page hits a month.
[18:45:55] mwlang: so it’s conceivable one rails app deployment can handle a few hundred tenants.
[18:46:19] barhum2013: has joined #RubyOnRails
[18:46:27] havenwood: do you care about all the extra memory overhead?
[18:46:51] mwlang: which specifically? from apartment gem or from dockerized containers?
[18:47:02] havenwood: dockerized containers
[18:48:03] mwlang: the concern there is density. that is, how many “tenants” can I run on one server — i.e. how many docker containers per server.
[18:48:19] havenwood: and will those extra servers get expensive
[18:48:35] havenwood: or is it peanuts?
[18:48:37] mwlang: intuition is telling me, an apartmentized rails app would have much higher density than I can achieve with docker.
[18:48:55] mwlang: it’s almost peanuts.
[18:49:11] mwlang: either way, cost can be shouldered by the tenants with subscription prices.
[18:49:56] mwlang: truth be told, more concerned about the ability of a small team to handle large number of tenants effortlessly.
[18:52:22] havenwood: mwlang: So options are 1) single app with single db, 2) single app with multiple dbs, 3) multiple apps with multiple dbs?
[18:52:58] havenwood: Or can you not have multiple firm's data in the same db?
[18:53:05] mwlang: exactly. That’s what I’m churning through right now with the math.
[18:53:45] mwlang: one concern I have with multiple firms in one database…experience with current clients tells me they’re often targeted for hacks.
[18:53:51] mwlang: defacing kind of hacks.
[18:54:27] mwlang: so I’m already thinking “sharding” (in the loose sense of the word) for spliting up tenants across servers
[18:54:39] mwlang: just to prevent one compromised server from taking everyone down.
[18:55:13] mwlang: I just don’t know *why* lawyers are hated by so many people…. (he says sarcastically...)
[18:55:31] havenwood: full disclosure, I'm a lawyer :P
[18:55:57] mwlang: A first-class Rubyist and lawyer, too!?
[18:56:16] havenwood: 1. is the simplest to maintain and administrate, with the downside of some app complexity for multi-tenancy and having to scale them all together for both app and db resources
[18:57:00] havenwood: I see why 3. is appealing.
[18:58:15] havenwood: I guess we didn't mention multiple apps, with one db - but that one isn't very attractive.
[18:58:34] havenwood: ACTION has done that in the past >.>
[18:58:34] mwlang: no, not going to go the multiple apps route.
[18:58:52] jstrong: has joined #RubyOnRails
[18:58:55] mwlang: ugh….that’s the very definition of never-ending technical debt.
[19:00:03] mwlang: the more I think about it, I think best to start at #2 with ability to introduce #3 for scaling purposes.
[19:00:22] mwlang: but multiple app here will mean, multiple servers, not multiple code-bases.
[19:00:41] mwlang: multple servers == docker containers, roughly.
[19:00:45] havenwood: right, that's what I meant
[19:01:19] havenwood: 2 is actually kinda nice for scaling to a point
[19:01:49] havenwood: one big server with lots of resources gives every tenant a lot of slush
[19:03:20] mwlang: dumb question: selling front-end and tenant front-end all in one rails app or split ‘em out?
[19:04:25] havenwood: if you're doing 3, that one's pre-answered ;)
[19:04:52] mwlang: LOL — I was thinking in the context of #1 and #2
[19:05:12] havenwood: single purchase or subscription?
[19:05:18] mwlang: welll, #1 isn’t really happening — not sure why I keep entertaining it…so, #2.
[19:05:25] mwlang: subscription
[19:05:45] lxsameer: has joined #RubyOnRails
[19:05:47] havenwood: 1 team, 1 app
[19:06:23] havenwood: If you had a subscriptions team that worked on the sales app, and another team that worked on the tenants app, I'd say two apps with APIs.
[19:06:28] mwlang: The selling frontend will control setting up the subdomains and controlling whether to show tenant’s content based on whether subscription is paid up or not.
[19:07:27] mwlang: actually, that just answered my internal debate questions entirely.
[19:08:06] mwlang: it is simple enough to control the tenanted app with API and use background jobs to setup/suspend/teardown tenants.
[19:08:19] sandstrom: has joined #RubyOnRails
[19:16:28] orbyt_: has joined #RubyOnRails
[19:20:36] jstrong: Hi all. I have a bit of an interesting issue. Perhaps some of you can help me figure out how to best achieve this. We have some mission-critical models that we want to be *impossible* to update outside of the context of a particular interface defined (i.e. an “Updater” object) that can do all the logging, validation, constraints, queries etc necessary
[19:20:44] jstrong: The pattern I’m trying to establish looks something like this
[19:21:17] jstrong: https://gist.github.com/laspluviosillas/f25bd1a50a6efeed09cc06b64e42bf0d
[19:21:43] jstrong: Subscription is the model in question here. This would block any calls to .save, .update, .update_attributes etc on the “protected model” and instead *force* people to use the “Updater” class
[19:21:59] jstrong: where the Updater class has privileged access to .save, .update, whatever
[19:22:22] jstrong: the only issue here is that the Updater can’t actually see the private method (same if it’s set to protected), and I’m not sure how to structure the Updater class so that it has access to those methods
[19:37:02] mwlang: Let subscription class instantiate an updater class and call some general function, say #perform or #update! or whatever it’s going to be for the updaters.
[19:37:38] mwlang: updater itself then calls it’s own private methods with whatever parameters the subscription class instantiated it with or passed on the call to perform said action.
[19:37:41] jstrong: mwlang: when the subscription class instantiates an updater class, would it pass the protected save and protected update methods directly to that instantiated class?
[19:38:23] jstrong: mwlang: I don’t think that works. The updater doesn’t explicitly have access to the protected methods on the ActiveModel object
[19:39:11] mwlang: Oh, I was thinking the Updater classes were themselves the active model.
[19:39:18] mwlang: or at least that’s what I would’ve done.
[19:47:35] Souvent22: has joined #RubyOnRails
[19:52:05] jstrong: This works: https://gist.github.com/laspluviosillas/b83e28c233949d5b5bc531b9e1baf356
[19:52:11] jstrong: Looks a bit nasty, but the end result is very elegant
[19:52:15] jstrong: subscription.updater.idiomatic_method
[20:08:37] Hess: has joined #RubyOnRails
[20:16:42] SteenJobs: has joined #RubyOnRails
[20:48:09] Technodrome: has joined #RubyOnRails
[20:57:42] ericboehs: has joined #RubyOnRails
[20:58:21] Fernando-Basso: has joined #RubyOnRails
[21:15:05] jstrong: has joined #RubyOnRails
[21:17:44] orbyt_: has joined #RubyOnRails
[21:19:25] cagmz: has joined #RubyOnRails
[21:19:48] cagmz: Having issues with my Docker build using an incorrect version of Bundler. Rather than using this solution ( https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411/3 ) , can I follow these instructions to automatically use the Gemfile.lock version of Bundler? https://bundler.io/blog/2019/01/03/announcing-bundler-2.html
[21:20:06] jottr: has joined #RubyOnRails
[21:22:16] cnsvc: has joined #RubyOnRails
[21:22:23] IGnorAND: I think rails is sending a content didnt change but I need the headers to get sent. Is there a way to force that?
[21:24:41] crankharder: has joined #RubyOnRails
[21:31:14] havenwood: IGnorAND: Seems like a bad idea to repeatedly append to your dotfile?
[21:31:21] havenwood: IGnorAND: Does it happen just once?
[21:31:40] havenwood: IGnorAND: How about just?: source <(export BUNDLER_VERSION="$(tail -1 Gemfile.lock | xargs)")
[21:32:03] jottr: has joined #RubyOnRails
[21:32:27] havenwood: IGnorAND: Or: gem install bundler --version "$(tail -1 Gemfile.lock | xargs)"
[21:33:00] IGnorAND: havenwood: I made a --api app in rails. When logging in with my vuejs app I seem to get an authentication token. When doing subsecquent requests I do not. With Curl, postman etc it seems to act as expected. Not sure where to look where its going wrong. Expecting maybe puma decides to just get the data from cache and not send the header
[21:35:17] jottr: has joined #RubyOnRails
[21:37:15] jottr_: has joined #RubyOnRails
[21:41:44] jottr_: has joined #RubyOnRails
[21:48:15] uks: has joined #RubyOnRails
[22:01:29] blackmesa: has joined #RubyOnRails
[22:03:51] kvda: has joined #RubyOnRails
[22:53:04] Souvent22: has joined #RubyOnRails
[23:01:40] crankharder: has joined #RubyOnRails
[23:18:06] gambl0re: has joined #RubyOnRails
[23:23:56] valadares: has joined #RubyOnRails
[23:37:52] jstrong: has joined #RubyOnRails
[23:38:51] ariedler: has joined #RubyOnRails
[23:41:35] jottr: has joined #RubyOnRails
[23:43:59] uksio: has joined #RubyOnRails
[23:49:51] crankharder: has joined #RubyOnRails
[23:49:53] s2013: has joined #RubyOnRails