« Back to channel list

#RubyOnRails - 22 June 2017

Forward 1 day »
[06:13:14] helpa: has joined #RubyOnRails
[06:13:22] dminuoso: shortCircuit__: !rule3
[06:13:22] helpa: shortCircuit__: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[06:13:23] Radar: !botsnack
[06:13:23] helpa: Nom nom. Thanks, Radar!
[06:13:25] alfiemax: is there something i should be doing in my nginx config
[06:13:26] shortCircuit__: yoo your new website design looks good
[06:13:26] dminuoso: !goodmorning
[06:13:27] helpa: おはよう ございます
[06:13:32] dminuoso: Radar: !cookie
[06:13:32] helpa: Radar: Congratulations! You have earned a delicious, fresh-made cookie. :)
[06:13:34] Radar: shortCircuit__: thank you :)
[06:13:55] dminuoso: Radar: You are thanking shortCircuit__ for a compliment, but not helpa for a cookie?
[06:13:58] dminuoso: That's nasty.
[06:14:00] Radar: helpa: good bot
[06:14:04] Radar: dminuoso: it was coming
[06:14:59] dminuoso: Radar: Rails is giving us global mutable state?
[06:15:04] toggle_: Anyone have an idea why recurisive partial calls arent rendering html but does when its called from another partial?
[06:15:05] Radar: dminuoso: yes
[06:15:18] Radar: dminuoso: I am so strongly opposed to this but I lack the energy to fight.
[06:15:24] dminuoso: Radar: The bane of parallelization, testing, bugs, and software design..
[06:15:40] Radar: Because DHH will write a big long condescending page of how awesome he is and why the idea is a good idea ([narrator] it isn't)
[06:15:49] Radar: toggle_: !rule3
[06:15:49] helpa: toggle_: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[06:16:10] dminuoso: Radar: I've seen that happen a few times before.
[06:16:18] Radar: dminuoso: just once or twice
[06:16:24] Radar: DHH is usually a nice level-headed guy, yeah?
[06:16:34] Radar: ACTION is struggling to hold a straight face
[06:16:58] dminuoso: Radar: Honestly I don't know. I have never (knowingly) interacted with him.
[06:17:58] dminuoso: Radar: At this point Im strongly considering ditching rails anyway, because with a full blown React app I don't really need it anymore.
[06:18:14] dminuoso: Something functional like Phoenix seems so tempting.
[06:18:15] Radar: dminuoso: just make sure to write an angry blog post about it first. It's what DHH would want.
[06:18:19] Radar: Phoenix is amazing.
[06:20:59] MrCrackPotBuilde: has joined #RubyOnRails
[06:21:22] shortCircuit__: I met matsumoto at the kerala ruby conf. he is super awesome. I asked him how did you have the perseverance to write a huge language.
[06:22:10] quirkycoders: has joined #RubyOnRails
[06:22:47] shortCircuit__: now I can die in peace.
[06:24:16] quirkycoders: has joined #RubyOnRails
[06:28:20] conta: has joined #RubyOnRails
[06:31:08] quirkycoders: has joined #RubyOnRails
[06:31:30] dminuoso: Radar: Oh yeah. Ill just write a 140 character rant on twitter about it.
[06:31:34] quirkycoders: has joined #RubyOnRails
[06:32:01] gambl0re: has joined #RubyOnRails
[06:33:04] shortCircuit__: https://gist.github.com/argentum47/8be5227aa0f1302c3d3da1f6d61f3a1b I just copy pasted the code. don't show it to anyone. So. those lines L15 L31. these often end up failing, saying expected 1 or 2 got 2 or 3 (consequtively). but they don't fail all the time. If I re run then it generally works
[06:33:08] Radar: Updated the post to include DHH's code.
[06:38:42] quirkycoders: has joined #RubyOnRails
[06:39:48] dminuoso: Radar: In all my programming history, the only single valid use case of globally mutable state is the logger interface.
[06:40:02] dminuoso: Most others were just results of being lazy or having really shitty software design.
[06:40:11] Radar: dminuoso: yup, me too
[06:41:13] Radar: I think having Logger.info / debug / fatal / warn leak across contexts is fine. Those are methods that you're calling that you _know_ are going to have a side-effect. In this case, you're going to potentially have multiple places which could set those variables. When a codebase gets complex enough, it would be hard to track down where exactly is setting it. Is it the controller? The test? Where?
[06:42:01] dminuoso: Radar: Indeed. In fact the reason why the logger interface is fine, is because your execution does not depend on that global state at all.
[06:42:34] dminuoso: So whether the logger ends up being raced left and right has no impact on the application. Just your sanity when you debug. :P
[06:43:07] DropsOfSerenity: has joined #RubyOnRails
[06:43:50] xall: has joined #RubyOnRails
[06:52:15] jeffaustin81: has joined #RubyOnRails
[06:55:14] roshanavand: has joined #RubyOnRails
[07:01:09] shortCircuit__: what more code/context is needed other than the spec?
[07:02:57] dminuoso: shortCircuit__: Anything that is relevant to understand your problem for someone who does not know your code.
[07:03:53] arBmind: has joined #RubyOnRails
[07:04:01] dminuoso: shortCircuit__: Are your specs under the assumption that the specs are executed in order?
[07:05:22] hotpancakes: has joined #RubyOnRails
[07:05:58] shortCircuit__: well I am not sure. like its not a code problem. its a setup problem. and there is not database cleaner. only config.use_transactional_fixtures = true this is there. I feel they should be in order. like if retries one time then the count should be 1 , next time should be 2
[07:06:17] dminuoso: shortCircuit__: They are not executed in order.
[07:06:56] shortCircuit__: for that they should be inside one it block?
[07:07:21] dminuoso: shortCircuit__: Yeah. Though you are setting up number_of_retries in each it {}
[07:07:27] dminuoso: So it shouldn't matter I think.
[07:08:10] shortCircuit__: line 15 fails like 70% of the time on first try.
[07:09:10] _moep_: has left #RubyOnRails: ()
[07:09:12] dminuoso: shortCircuit__: Unrelated, line 4 should use let not let!
[07:09:31] shortCircuit__: I was trying that :D .. wait
[07:12:12] dminuoso: shortCircuit__: Just looking at your spec it should work. Time to see your LoginRequest model
[07:13:33] shortCircuit__: login request model is simple https://gist.github.com/argentum47/8be5227aa0f1302c3d3da1f6d61f3a1b#file-login_request-rb
[07:15:04] dminuoso: shortCircuit__: Are you running your specs in parallel?
[07:15:20] dminuoso: Im willing to bet that you do.
[07:15:42] shortCircuit__: there is no gemefile like parallel test or something. I am trying to find where that configuration is and what is it.
[07:15:59] quirkycoders: has joined #RubyOnRails
[07:16:22] shortCircuit__: *no gem in gemfile
[07:16:28] dminuoso: shortCircuit__: Well let's fix that bug anyway.
[07:16:33] dminuoso: You have a freaking race condition in there.
[07:16:55] dminuoso: shortCircuit__: You are trying to abuse an environment variable as a global counter.
[07:16:56] shortCircuit__: in the update method L26 ?
[07:17:09] dminuoso: shortCircuit__: https://gist.github.com/argentum47/8be5227aa0f1302c3d3da1f6d61f3a1b#file-login_request-rb-L15
[07:17:16] dminuoso: Is completely racey.
[07:17:27] dminuoso: https://gist.github.com/argentum47/8be5227aa0f1302c3d3da1f6d61f3a1b#file-login_request-rb-L23 this too
[07:17:50] shortCircuit__: pardon me, but how
[07:22:26] dminuoso: shortCircuit__: I cant argue as to why, but I suspect that the way you modify the environment variables is not sound.
[07:22:55] dminuoso: shortCircuit__: If these specs run in parallel, then this will fail: https://gist.github.com/argentum47/8be5227aa0f1302c3d3da1f6d61f3a1b#file-login_request-rb-L18
[07:24:02] shortCircuit__: how to fix things like this.
[07:25:36] alfiemax: has joined #RubyOnRails
[07:26:02] alfiemax: this is what i have as the action_cable config :
[07:26:23] alfiemax: {:mount_path=>"/cable", :allowed_request_origins=>[/http:\/\/*/, /https:\/\/*/], :url=>"wss://app_url/cable"}
[07:31:32] adre: has joined #RubyOnRails
[07:32:41] xall: has joined #RubyOnRails
[07:33:00] alfiemax: still this is the error : Error during WebSocket handshake: Unexpected response code: 301
[07:36:47] shortCircuit__: and u have certificates?
[07:38:16] dminuoso: shortCircuit__: Let me guess, always the first two specs fail?
[07:38:38] dminuoso: The first spec fails with "expected 1, got 2". and the second fails with "expected 2, got 3", and the third always succeeds?
[07:39:04] jphase: has joined #RubyOnRails
[07:39:55] dminuoso: shortCircuit__: Or is just the first one that sometimes fails?
[07:40:24] shortCircuit__: it fails sometimes. it fails I retry it passes
[07:40:30] dminuoso: shortCircuit__: Which ones
[07:40:38] shortCircuit__: the first and second
[07:41:18] dminuoso: shortCircuit__: It's beyond me how the second could possibly fail.
[07:41:30] dminuoso: Then I have found your problem.
[07:41:43] dminuoso: shortCircuit__: You never set up OTP_SMS_RETRY_COUNT in the first it {}
[07:41:51] tbuehlmann: Radar: "You're a month late to the discussion and you didn't bring any new arguments to the party. Feel free to write your own code without AS::CurrentAttributes, but this chef's knife is staying in the drawer."
[07:42:00] Radar: tbuehlmann: probably :)
[07:42:15] dminuoso: shortCircuit__: The reason that subsequent runs work, is because.. I have no clue. But Yeah.
[07:42:27] dminuoso: tbuehlmann: Haha, I see what you did there.
[07:43:12] Radar: He did reply in a pretty calm way. Surprising.
[07:43:42] shortCircuit__: maybe he was screaming behind the screen
[07:50:36] alfiemax: this is the error log from server : https://gist.github.com/alfie-max/4287ee22cf3e6ac56e53fb7c040482fd
[07:55:30] xall: has joined #RubyOnRails
[07:56:05] hotpancakes: has joined #RubyOnRails
[07:56:13] ur5us: has joined #RubyOnRails
[07:59:37] ntt: has joined #RubyOnRails
[08:06:17] mikecmpbll: has joined #RubyOnRails
[08:06:22] xall: has joined #RubyOnRails
[08:11:29] patarr: has joined #RubyOnRails
[08:17:44] sekmo: has joined #RubyOnRails
[08:17:52] ferr: has joined #RubyOnRails
[08:19:42] kitsuneyo: has joined #RubyOnRails
[08:25:36] srinidhi: has joined #RubyOnRails
[08:28:25] hotpancakes: has joined #RubyOnRails
[08:31:55] shortCircuit__: has joined #RubyOnRails
[08:39:54] timdotrb: Is there a way to dynamically get an unknown object’s children if you know the name of the table?
[08:40:41] timdotrb: i.e. children = object.child_class.tableize; object.children
[08:41:51] timdotrb: Or maybe I could query for them?
[08:43:28] dminuoso: timdotrb: Not like that.
[08:43:33] dminuoso: timdotrb: ?xy
[08:43:36] dminuoso: timdotrb: !xy
[08:43:36] helpa: timdotrb: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[08:44:36] sevenseacat: has joined #RubyOnRails
[08:49:09] lxsameer: has joined #RubyOnRails
[09:08:30] hotpancakes: has joined #RubyOnRails
[09:15:56] krmela: has joined #RubyOnRails
[09:17:29] krmela: hello there can anyone tell me how to is correct syntax for collectionselect with rails 5.1 and new form_with
[09:18:13] krmela: <%=form.collection_select( :supplier_id, Supplier.all, :id, :name {:id=>:food_supplier})%>
[09:19:31] marr: has joined #RubyOnRails
[09:21:59] timdotrb: has joined #RubyOnRails
[09:22:58] timdotrb: has joined #RubyOnRails
[09:24:29] Silox|: has joined #RubyOnRails
[09:26:44] ur5us: has joined #RubyOnRails
[09:28:41] Fernando-Basso: has joined #RubyOnRails
[09:30:03] shotbug: has joined #RubyOnRails
[09:31:22] arBmind: has joined #RubyOnRails
[09:35:53] workmad3: has joined #RubyOnRails
[09:36:10] shortCircuit__: hiiiiii workmad3
[09:36:52] hotpancakes: has joined #RubyOnRails
[09:45:12] shotbug: has joined #RubyOnRails
[09:49:25] dionysus69: has joined #RubyOnRails
[09:54:32] umaaji: has joined #RubyOnRails
[09:56:06] jottr: has joined #RubyOnRails
[10:04:49] AzaToth: has joined #RubyOnRails
[10:12:17] patarr: has joined #RubyOnRails
[10:14:27] S1kx: has joined #RubyOnRails
[10:27:17] sekmo: has joined #RubyOnRails
[10:29:59] sonOfRa: has joined #RubyOnRails
[10:41:29] hotpancakes: has joined #RubyOnRails
[10:44:00] rainy_mood2002: has joined #RubyOnRails
[10:44:51] arup_r: has joined #RubyOnRails
[10:52:37] sathish: has joined #RubyOnRails
[10:53:37] patarr: has joined #RubyOnRails
[11:03:24] umaaji: has joined #RubyOnRails
[11:04:26] kt: has joined #RubyOnRails
[11:05:28] sathish: I have a rails apps in which I use devise and get the users name during signup, I want to collect a few additional details from the user before allowing them to start using the app. How do go about implementing that checkpoint feature? Any suggestions or pointers?
[11:08:24] quirkycoders: has joined #RubyOnRails
[11:10:08] arup_r: edit the devise html and devie permite helpers
[11:12:19] sekmo: has joined #RubyOnRails
[11:12:20] hotpancakes: has joined #RubyOnRails
[11:12:55] jusmat: has joined #RubyOnRails
[11:17:27] sathish: arup_r, Hi I am aware of that part, but how do I restrict a user from not proceeding to other parts of the application until they updated all necessary details
[11:18:28] arup_r: sathish: if they are required fields, u will add model validations... so if they don't fill the field, devise would not allow you to create users and keep you at the same page.
[11:19:34] arup_r: this is when you want the users to fill the details while signup. Like u are getting all details in the same form
[11:20:21] sathish: arup_r, yea that is the problem, I want the user to create the account first and then add these details later after loggingin with a checkpoint form
[11:20:41] sathish: If nothing works, I will have to resort to collecting all details upfront
[11:21:11] jusmat: @sathish, I would say make an before_filter in application controller, something like that
[11:21:17] jusmat: sathish, I would say make an before_filter in application controller, something like that
[11:21:26] arup_r: then u can do add a filter inside the application controller and see those fields are present
[11:21:33] arup_r: if not present, then redirect them
[11:21:45] jusmat: before_filter :require_full_profile, if: :current_user
[11:21:55] sathish: awww! That is exactly what I need. Thanks a tong jusmat arup_r
[11:21:56] arup_r: sathish: ^ that is what
[11:22:11] sathish: thanks a ton* :D jusmat arup_r
[11:36:35] alfiemax: has joined #RubyOnRails
[11:37:32] alfiemax: i'm getting an error : ActiveRecord::SubclassNotFound (Invalid single-table inheritance type: Trader is not a subclass of Trader)
[11:38:36] alfiemax: i've added a gist of my models here : https://gist.github.com/alfie-max/92c24032972d59da5eea9238b33008e8
[11:40:49] alfiemax: i find this weird as there are no errors when i call any actions just after i start the rails server
[11:41:19] alfiemax: it's after i edit my controller (be it just a space or a newline and save it) any calls after that gives me this error
[11:41:34] adre: has joined #RubyOnRails
[11:43:43] arup_r: alfiemax: show controller also
[11:46:35] alfiemax: arup_r: doesn't matter which controller or which action. but i'll add the controller too
[11:47:12] alfiemax: gist updated
[11:47:28] arup_r: Why it doesn't matter? :)
[11:47:46] alfiemax: because there isn't anything in it
[11:47:57] alfiemax: just an empty action
[11:49:23] arup_r: i don't see it :(
[11:49:33] alfiemax: can you reload
[11:50:02] hotpancakes: has joined #RubyOnRails
[11:50:34] arup_r: I see now
[11:50:55] alfiemax: checking the logs, i traced it to here : https://github.com/rails/rails/blob/master/activerecord/lib/active_record/inheritance.rb#L201
[11:51:20] alfiemax: when the first call after server restart, the value of subclass & self is the Trader class
[11:51:47] alfiemax: and so the equality returns true and there is no error and the subclass is returned
[11:52:23] alfiemax: but after i make any edit to the controller code
[11:53:01] arup_r: so you connect has no code, who is calling the model then?
[11:53:02] alfiemax: the value of subclass & self is still the Trader class, but the object id's are different and hence the equality fails
[11:53:42] alfiemax: the `before_action autherticate_trader!`
[11:54:02] alfiemax: sorry `before_action :authenticate_trader!`
[11:54:43] alfiemax: the call to active record comes from devise
[11:58:01] shortCircuit__: has joined #RubyOnRails
[11:58:19] ldnunes: has joined #RubyOnRails
[12:01:29] arup_r: I think u should use authenticate_user the actual model object. Bt I am not sure
[12:02:03] arup_r: Are you sure u can defined subclass with that helper?
[12:02:13] alfiemax: which helper?
[12:02:22] arup_r: authenticate_*
[12:03:11] arup_r: Devise see a Trader object with type field and looking for its parent as Trader
[12:05:31] alfiemax: not exactly, can you check my comments in the gist
[12:07:51] Terens: has joined #RubyOnRails
[12:08:25] arup_r: alfiemax: where are you going that far. first think why it is being called?
[12:08:37] arup_r: self == subclass is `true`
[12:08:45] arup_r: why don't you think it is true
[12:12:43] hotpancakes: has joined #RubyOnRails
[12:12:48] arup_r: alfiemax: can you put the decendents output in pry?
[12:12:53] arup_r: Hi Terens
[12:13:22] alfiemax: yes, will do
[12:13:53] alfiemax: btw, i can't use authenticate_user! as i only have devise_for :traders and devise_for :retailers
[12:14:10] arup_r: alfiemax: start looking from this lines https://gist.github.com/alfie-max/92c24032972d59da5eea9238b33008e8#file-error-log-L32-L35
[12:14:44] arup_r: check what the code expects from you
[12:15:00] Terens: I want to provide an api for my application. Is there a way to run them seperately somehow ?
[12:15:11] Terens: without creating a new app
[12:15:39] alfiemax: descendants, in both case (before & after edit) is an empty array
[12:15:58] arup_r: why separately?
[12:16:17] Terens: because I want api to be secured by client certificates
[12:16:31] arup_r: alfiemax: what did you edited btw?
[12:16:50] adre: has joined #RubyOnRails
[12:17:24] alfiemax: self.descendants
[12:17:38] alfiemax: arup_r: edited?
[12:18:30] arup_r: nothing I see you said it top. just a space inside the controller breaking it
[12:18:57] alfiemax: yes, exactly
[12:18:58] arup_r: if it looks too weird, issue a bug ticket :)
[12:19:08] alfiemax: i just added a new line, to trigger a file change
[12:19:20] alfiemax: i think it has something to do with the rails loading in dev
[12:19:44] arup_r: do you use spring ? if so can you try to stop it once and see
[12:19:59] alfiemax: as you see the second screenshot in the gist, the object id for self hasn't changed
[12:23:01] alfiemax: arghh... i really though stoping spring would fix it, but no. it said spring is not running
[12:24:00] Jameser: has joined #RubyOnRails
[12:26:57] sevenseacat: whats the problem?
[12:27:49] quirkycoders: has joined #RubyOnRails
[12:27:55] alfiemax: hi sevenseacat
[12:28:22] alfiemax: can you check my gist here : https://gist.github.com/alfie-max/92c24032972d59da5eea9238b33008e8
[12:29:04] rfoust: has joined #RubyOnRails
[12:30:42] sevenseacat: do you have something like 'require "trader"' anywhere in your app?
[12:31:35] sevenseacat: I saw a similar error once in my own app due to an errant require line
[12:31:36] alfiemax: nop, just confirmed by doing a full app dir search
[12:33:22] alfiemax: yes, confirmed.. no such requires
[12:33:55] Jameser: has joined #RubyOnRails
[12:34:16] sevenseacat: the same class is being loaded twice, somehow - names the same, object IDs different
[12:34:35] quirkycoders: has joined #RubyOnRails
[12:34:44] alfiemax: would you like to take a look at the repo?
[12:34:55] alfiemax: there isn't much in this, just started on a new app
[12:34:59] sevenseacat: if its public, sure
[12:35:12] alfiemax: i can add it to bitbucket and give you access
[12:40:35] alfiemax: here it is : https://bitbucket.org/alfiemax/traderapp
[12:40:54] alfiemax: @sevenseacat can you have a look
[12:43:32] gdonald: has joined #RubyOnRails
[12:51:48] sevenseacat: has joined #RubyOnRails
[12:52:42] sekmo: has joined #RubyOnRails
[12:52:57] Jameser: has joined #RubyOnRails
[12:53:22] sevenseacat: trying to get the error to trigger
[12:57:14] hotpancakes: has joined #RubyOnRails
[12:59:31] rainy_mood2002: has joined #RubyOnRails
[12:59:55] Jameser: has joined #RubyOnRails
[13:04:34] arup_r: has joined #RubyOnRails
[13:04:55] AzaToth: has joined #RubyOnRails
[13:06:01] sevenseacat: I can't get it to trigger :(
[13:07:17] arup_r: alfie: you better report it as a bug. :)
[13:07:46] arup_r: looks like some Rails internal stuff.
[13:09:54] sevenseacat: https://gist.github.com/alfie-max/92c24032972d59da5eea9238b33008e8#gistcomment-2129931
[13:21:22] Jameser: has joined #RubyOnRails
[13:28:22] quirkycoders: has joined #RubyOnRails
[13:38:15] xco: has joined #RubyOnRails
[13:38:49] shotbug: has joined #RubyOnRails
[13:41:00] xco: how any help/idea? i’m getting “ActiveRecord::RecordNotDestroyed: Failed to destroy the record” on https://gist.github.com/siaw23/2948510feefdb7b4daf8e8cf07fb41ab#file-controller-rb-L6
[13:41:13] xco: @training_collection is valid
[13:41:23] xco: how would you go about debugging this?
[13:41:44] sevenseacat: what does the error flash message say? :)
[13:41:50] xco: what could cause #destroy to be “false”?
[13:46:06] dasher00: has joined #RubyOnRails
[13:46:07] Jameser: has joined #RubyOnRails
[13:47:31] quirkycoders: has joined #RubyOnRails
[13:48:15] xco: sevenseacat: it doesn’t reach the flash msgs
[13:49:26] xco: sevenseacat: you asked what the flash message say right? but if @training_collection.destroy returns false
[13:49:41] xco: and then just shows Failed to destroy the record
[13:49:56] sevenseacat: you're going to have to provide some more information and logs.
[13:50:08] sevenseacat: don't tell, show.
[13:51:36] xall: has joined #RubyOnRails
[13:52:56] xco: sevenseacat: log related to this action https://gist.github.com/siaw23/2948510feefdb7b4daf8e8cf07fb41ab#file-log-log
[13:53:39] sevenseacat: so what associations do you have on this model that are raising the exception?
[13:53:46] sevenseacat: when they also attempt to delete themselves
[13:54:09] sevenseacat: training_images, I'm guessing
[13:54:13] Jameser: has joined #RubyOnRails
[13:55:23] xco: sevenseacat: for the training collection i have https://gist.github.com/siaw23/2948510feefdb7b4daf8e8cf07fb41ab#file-trainining_collection-rb
[13:55:38] xco: yeah so it has many traning_images
[13:56:07] openCircuit__: has joined #RubyOnRails
[13:57:41] sevenseacat: and what associations do training images have?
[13:58:00] sevenseacat: something is raising an exception in the deletion tree, something will have dependent: :restrict_with_exception
[13:58:33] Terens: I added client certificate verification at nginx. They told me that this is overcomplexity and if certificate verifiation was done in rails it would be simpler.
[14:00:09] lupine: kids these days, eh
[14:00:18] xco: sevenseacat: i think it’s the before_destroy of the training_image.rb https://gist.github.com/siaw23/2948510feefdb7b4daf8e8cf07fb41ab#file-training_image-rb
[14:00:31] arBmind: has joined #RubyOnRails
[14:01:26] sevenseacat: that does look like plausible
[14:01:36] tenderlove: has joined #RubyOnRails
[14:02:08] sevenseacat: it doesnt make much sense to run that when you're deleting all the images, though
[14:02:30] tenderlo_: has joined #RubyOnRails
[14:02:31] xco: sevenseacat: run the before_destroy?
[14:02:46] hotpancakes: has joined #RubyOnRails
[14:03:19] roshanavand: has joined #RubyOnRails
[14:03:50] xco: ok got that. but why would that test pass on rails 4.0 and not on rails 4.2? :/
[14:04:02] sevenseacat: well thats new information
[14:04:27] xco: something might have changed that i’m not sure of
[14:04:32] xco: or have no idea about
[14:04:43] sevenseacat: and its probably because 'it doesnt make much sense to run that when you're deleting all the images, though'
[14:04:44] xco: remove the before_destroy passes the test tough
[14:05:01] xco: yeah got that
[14:05:42] sevenseacat: a lot of stuff changed between rails 4.0 and 4.2. you should check the changelogs.
[14:11:33] twilling: has joined #RubyOnRails
[14:12:37] quirkycoders: has joined #RubyOnRails
[14:13:54] xco: sevenseacat: yeah thanks… helped ;)
[14:14:12] quirkycoders: has joined #RubyOnRails
[14:14:24] xco: i just need to figure out why it passed in 4.0, looks like i have to peruse a looot of changelogs
[14:22:30] shotbug: has joined #RubyOnRails
[14:27:52] quirkycoders: has joined #RubyOnRails
[14:32:08] openCircuit__: has joined #RubyOnRails
[14:32:29] Terens: Could you tell me how to prove that client certificates should be verified at nginx and not in rails ?
[14:35:37] patarr: has joined #RubyOnRails
[14:41:06] Sylario: has joined #RubyOnRails
[14:41:21] hotpancakes: has joined #RubyOnRails
[14:43:20] cam27: has joined #RubyOnRails
[14:44:38] holaymolay: has joined #RubyOnRails
[14:45:44] jaequery: has joined #RubyOnRails
[14:47:03] holaymolay: I can’t figure out keep getting the following error when I try to use the rails command from within my application directory:
[14:47:23] holaymolay: /Users/useraccount/.rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load': no implicit conversion of nil into String (TypeError)
[14:48:07] holaymolay: I’ve tried a lot of things—some of which were recommended in this channel
[14:48:29] holaymolay: I have been unable to narrow down the problem to anything specifc
[14:49:04] Terens: did you try with bundle exec ?
[14:49:27] holaymolay: its not a problem with the application.. it’s a problem with my rails install
[14:50:04] fryguy: holaymolay: if you are doing it right, your rails install is inside of your application
[14:50:27] fryguy: via Gemfile.lock
[14:50:46] holaymolay: i get that.. i’m saying its a system issue, not an application issue
[14:50:49] holaymolay: https://stackoverflow.com/questions/44636024/rails-fresh-install-throws-typeerror-points-to-spring-gem
[14:51:08] fryguy: right, did you try with bundle exec?
[14:51:11] no-dashes: has joined #RubyOnRails
[14:51:23] fryguy: and what is that output
[14:52:36] holaymolay: I’ll have to run it again to tell you.. hang on
[14:53:18] holaymolay: what’s the exact command I should run.
[14:53:28] fryguy: bundle exec rails s
[14:54:11] openCircuit__: has joined #RubyOnRails
[14:54:42] holaymolay: same error as above
[14:55:01] holaymolay: same as if i typed rails s
[14:55:11] no-dashes: Hey folks, is there already a 'best practice' for bundling webpacker-aware javascript code and dependencies in a gem? I’m really desperate.
[14:55:55] fryguy: holaymolay: try relocating your app to a path with no spaces in it or other non alphanumeric characters in it just to eliminate that as a potential cause
[14:58:18] holaymolay: fryguy: I can’t frigging believe it
[14:58:38] holaymolay: fryguy: so simple, yet so stupid
[14:59:02] holaymolay: fryguy: that did it… I’ve spent half a week on this problem and it was spaces in my path
[14:59:14] fryguy: i'm going to guess it's not the spaces
[14:59:17] fryguy: but the [] characters
[14:59:44] holaymolay: it never posed a problem with previous builds of ruby & rails
[15:00:35] pLaTo0n: has joined #RubyOnRails
[15:01:16] holaymolay: thanks fryguy, you’ve saved me immeasurable headache
[15:09:41] no-dashes: Do you folks start adapting the webpacker stuff in your production apps?
[15:11:03] alfiemax: has joined #RubyOnRails
[15:12:33] fryguy: haven't upgraded the app that I primarily work on yet to rails 5.1, so no
[15:13:59] fryguy: in the process of upgrading now, will take a bit of time
[15:14:00] openCircuit__: has joined #RubyOnRails
[15:16:28] fryguy: lots of problematic dependencies, and just a lot of code to churn through. hadn't taken care of all of the deprecations from even the 4.x upgrades yet so there's some backlog to do though
[15:16:55] jaequery: has joined #RubyOnRails
[15:19:02] no-dashes: We rewrote our complete (rathe huge) app in 2013 – so we didn’t run into the really evil deprecation-hell :)
[15:20:36] fryguy: we are on same codebase from 2006 still
[15:24:43] no-dashes: I’m very happy we rewrote it.
[15:27:51] holaymolay: has left #RubyOnRails: ()
[15:28:56] ResidentBiscuit: has joined #RubyOnRails
[15:33:30] alfiemax: has joined #RubyOnRails
[15:33:43] openCircuit__: has joined #RubyOnRails
[15:34:00] alfiemax: @sevenseacat are you around?
[15:34:11] alfiemax: can anyone look into this issue i'm facing : https://gist.github.com/alfie-max/92c24032972d59da5eea9238b33008e8
[15:34:23] elsurudo: has joined #RubyOnRails
[15:35:57] elsurudo: Rails 5.1 altered my schema.rb, and now when I try a db:schema:load, I get: “PG::UndefinedObject: ERROR: type "serial" does not exist; LINE 1: SELECT 'serial'::regtype::oid” I am on PG 9.6, so that isn’t the issue. What could this be?
[15:37:26] fryguy: this is maybe relevant: https://www.postgresql.org/docs/9.6/static/datatype-numeric.html#DATATYPE-SERIAL
[15:37:41] fryguy: "The data types smallserial, serial and bigserial are not true types..."
[15:38:37] dminuoso: elsurudo: serial is only a shortcut for "use integer, add not null constraint and a trigger with a sequence"
[15:39:15] elsurudo: Yeah I understand that, but how do I fix it?
[15:39:21] elsurudo: my version of Pg should support it
[15:39:45] dminuoso: elsurudo: serial. is. not. a. type.
[15:39:58] elsurudo: I did say it was
[15:40:23] elsurudo: `create_table "admins", id: :serial, default: %q{nextval('admins_id_seq'::regclass)}, force: :cascade do |t|` <- auto-generated schema.rb
[15:40:31] elsurudo: I didn’t* say it was
[15:40:31] jottr: has joined #RubyOnRails
[15:40:43] dminuoso: elsurudo: Auto generated how?
[15:40:52] elsurudo: the usual… db:migrate
[15:41:14] dminuoso: elsurudo: Show us the migration.
[15:42:11] elsurudo: there is no migration. i upgraded rails, ran db:migrate up update the schema.rb
[15:43:06] elsurudo: I am not using serial as a type anywhere. itonly shows up in the definition of each table, as generated by db:schema:dump (ie. by rails)
[15:44:06] brent__: has joined #RubyOnRails
[15:44:06] dminuoso: elsurudo: Can you please share the full schema.rb "ddl" for the offending table?
[15:44:58] elsurudo: it happens for the very first table that it tries to create: admins. sure i can share, but i don’t thinkt hat is where the rpoblem lies
[15:45:52] elsurudo: dminuoso: https://pastebin.com/ErsVee0C
[15:47:47] dminuoso: That is interesting.
[15:47:56] dminuoso: elsurudo: Any specialties with the postgresql schema?
[15:49:44] hotpancakes: has joined #RubyOnRails
[15:52:52] elsurudo: Just: enable_extension "plpgsql”, enable_extension "unaccent”, enable_extension "pg_trgm"
[15:53:07] elsurudo: But those worked just fine before the rails upgrade, so nothing new dminuoso
[15:53:29] elsurudo: and those get enabled first with no isse, then we get this error
[15:53:34] openCircuit__: has joined #RubyOnRails
[15:53:43] dminuoso: elsurudo: Try removing the id: :serial bit -> you should not need it anyway
[15:54:07] elsurudo: yes it works then, but then problem is rails will just bring it right back next time i migrate
[15:55:36] dminuoso: elsurudo: This should not happen, it can't be a systematic bug.
[16:03:21] srinidhi: has joined #RubyOnRails
[16:04:35] dasher00: has joined #RubyOnRails
[16:04:57] dasher00: hi, is possible to run ror5.1 with i18next to translate javascripts? I mean without any major issue using webpacker. I can only see it's using piplining. Thanks for hint.
[16:10:27] Silox|: has joined #RubyOnRails
[16:13:18] openCircuit__: has joined #RubyOnRails
[16:14:00] elsurudo: @dminuoso Well I’m not sure, just reporting what happened. Google brings up nothing at all
[16:20:25] openCircuit__: has joined #RubyOnRails
[16:23:04] hobodave: has joined #RubyOnRails
[16:24:44] cpruitt: has joined #RubyOnRails
[16:26:58] elsurudo: dminuoso: just verified that i am on the latest “pg” gem as well
[16:28:02] Trynemjoel: has joined #RubyOnRails
[16:30:02] cagmz: has joined #RubyOnRails
[16:41:22] jottr: has joined #RubyOnRails
[16:43:15] bitch: has joined #RubyOnRails
[16:44:30] timdotrb: has joined #RubyOnRails
[16:51:21] borodin: has joined #RubyOnRails
[16:56:21] theunraveler: has joined #RubyOnRails
[17:01:56] arup_r: has joined #RubyOnRails
[17:02:40] hotpancakes: has joined #RubyOnRails
[17:04:51] nickjj: hey everyone, how many of you are using rails 5.1's capybara integrations?
[17:09:13] rfoust: has joined #RubyOnRails
[17:14:17] defsdoor: has joined #RubyOnRails
[17:16:31] MissionCritical: has joined #RubyOnRails
[17:20:39] dionysus69: has joined #RubyOnRails
[17:24:46] danielbucher_: has joined #RubyOnRails
[17:25:38] superscott: has joined #RubyOnRails
[17:29:56] alfiemax: has joined #RubyOnRails
[17:30:26] alfiemax: no one?? :(
[17:35:08] kies: has joined #RubyOnRails
[17:36:17] brent__: has joined #RubyOnRails
[17:36:28] xco: has left #RubyOnRails: ()
[17:38:13] mochiyoda: has joined #RubyOnRails
[17:40:21] elsurudo: yeah, i’d like to know too
[17:40:34] alfiemax: elsurudo: what?
[17:40:56] arup_r: has joined #RubyOnRails
[17:41:18] alfiemax: hi arup_r, still here eh :)
[17:41:31] arup_r: yeah.. on and off :)
[17:41:36] arup_r: got that working?
[17:41:48] alfiemax: nop, i'm lost with it
[17:42:17] jottr: has joined #RubyOnRails
[17:42:22] arup_r: hah.. try it fresh morning. or file an issue with your bitbucket code. I think that will help them to figure out
[17:42:43] arup_r: keep minimal code, so that people can focus ..
[17:43:00] arup_r: I think rails interncal caching or something doing weird shit
[17:43:40] duderonomy: has joined #RubyOnRails
[17:43:42] arup_r: Rails core will get to the point faster than us. I basically a documentation driven coder.. few idea about in depth rails internal
[17:44:12] alfiemax: this would be a good read then : https://launchschool.com/books/demystifying_rails
[17:44:17] alfiemax: i just started today
[17:44:44] alfiemax: not sure if i'll make it through though :D
[17:44:45] arup_r: ah nice .. Let me bookmark it first.. thanks alfiemax
[17:54:17] gusrub: has joined #RubyOnRails
[17:54:37] ForeignBiscuit: has joined #RubyOnRails
[17:57:54] ResidentBiscuit: has joined #RubyOnRails
[17:58:11] lessless: has joined #RubyOnRails
[17:58:18] ResidentBiscuit: has joined #RubyOnRails
[17:58:59] ResidentBiscuit: has joined #RubyOnRails
[17:59:22] lessless: hello folks! is it possible that link_to with remote: true can be used for submitting the form? I just hit that code and not sure if it is possible to work at all :\
[17:59:33] chouhoulis: has joined #RubyOnRails
[18:00:10] alfiemax: lessless: can you try setting type: 'submit' for the link
[18:00:19] jottr: has joined #RubyOnRails
[18:00:20] xco: has joined #RubyOnRails
[18:00:25] arup_r: lessless: why not using remote: true to form directly?
[18:01:14] xco: is there a way i can see the a whole change log between 4.0 and 4.1 without having to go through the minor change like 4.0.13 etc?
[18:01:34] gusrub: has joined #RubyOnRails
[18:01:48] lessless: arup_r it's used on form as well, but there is no submit button just link. And naturally it issues a GET request instead of submitting a form, so I'm wondering what's the catch? Is there something that I'm not aware of or that code is not working a tall?
[18:02:19] arup_r: ok .. then replace the link_to with button?
[18:02:45] arup_r: Why form don't have button but a link?
[18:03:17] lessless: arup_r it's not my code :|
[18:03:28] arup_r: lessless: replace it with a button
[18:04:04] alfiemax: yes, use a button instead, which by default acts as a type "submit" for the immediate parent form
[18:04:48] arup_r: ACTION thinking why the form used link instead of a button in the first place 🤔
[18:05:11] alfiemax: arup_r: i've seen this practice in a lot of places
[18:05:39] alfiemax: https://www.w3schools.com/html/html_forms.asp
[18:05:40] arup_r: ok. they then submit the form using JS..
[18:05:53] arup_r: by hooking into your click event
[18:06:14] alfiemax: that, or we can set it as a type "submit" and it works just like a button
[18:06:40] arup_r: well. I didn't know <a> tag accepts a type='submit'
[18:07:08] alfiemax: but there is always issues with it, as its still a input, and you just can edit the button text
[18:07:33] alfiemax: and then you'll have to make it readonly, then change the pointer via css... ohhh its a headache..
[18:07:37] arup_r: alfiemax: this is a valid approach .. https://stackoverflow.com/a/4286529/2767755
[18:08:01] alfiemax: i prefer using a button
[18:08:01] arup_r: but <a> tag accepts submit type I don't know
[18:08:39] alfiemax: yes, its a valid approach, but the same you can do with buttons, too you just have to change the type of the button, so that on click it wouldnt get submited
[18:08:52] arup_r: https://developer.mozilla.org/en/docs/Web/HTML/Element/a `type` for MIME types
[18:10:35] arup_r: that is a hack.. those forms probably is being submitted by JS. They doesn't work like buttons works with form
[18:11:07] arup_r: dunno. I didn't see it yet
[18:22:00] brent__: has joined #RubyOnRails
[18:25:46] xco: 50/hr who’ll help me debug NoMethodError: undefined method `/' for nil:NilClass, PM me :D
[18:27:55] tbuehlmann: xco: why don't you just try it here?
[18:28:14] xco: i tried. no one bothered :P
[18:32:13] hotpancakes: has joined #RubyOnRails
[18:32:21] debajit: has joined #RubyOnRails
[18:32:40] debajit: In Rails, is there a way to merge a scope with an argument?
[18:33:19] alfiemax: i'm not sure what you meant by merge a scope, do you want to pass in an argument and use that in you model scope?
[18:33:38] alfiemax: if so, its a yes
[18:35:23] hotpancakes: has joined #RubyOnRails
[18:37:08] tbuehlmann: xco: try again
[18:37:51] debajit: solved my own problem. Yes, you can just pass in the scope with args — i was missing a joins(OtherModel)
[18:38:10] ur5us: has joined #RubyOnRails
[18:38:35] alfiemax: debajit: cheers!
[18:39:30] arup_r: has joined #RubyOnRails
[18:40:52] xco: arup_r: i’m serious :)
[18:41:17] syndikate: has joined #RubyOnRails
[18:52:55] duderono_: has joined #RubyOnRails
[18:53:02] srinidhi: has joined #RubyOnRails
[19:02:25] pLaTo0n: has joined #RubyOnRails
[19:03:54] lxsameer: has joined #RubyOnRails
[19:05:47] hotpancakes: has joined #RubyOnRails
[19:08:56] hotpancakes: has joined #RubyOnRails
[19:15:17] dasher00: has joined #RubyOnRails
[19:17:53] pLaTo0n: has joined #RubyOnRails
[19:19:07] debajit: has joined #RubyOnRails
[19:22:03] ur5us: has joined #RubyOnRails
[19:23:55] chouhoulis: has joined #RubyOnRails
[19:28:12] hotpancakes: has joined #RubyOnRails
[19:32:01] fxa90id: has joined #RubyOnRails
[19:33:37] fxa90id: has joined #RubyOnRails
[19:35:11] jaequery: has joined #RubyOnRails
[19:42:28] guacamole: has joined #RubyOnRails
[19:51:25] netzfisch: has joined #RubyOnRails
[19:52:16] mostlybadfly: has joined #RubyOnRails
[19:55:22] duderonomy: has joined #RubyOnRails
[19:57:45] debajit: has joined #RubyOnRails
[19:58:30] alfiemax: has joined #RubyOnRails
[20:02:51] mochiyoda_: has joined #RubyOnRails
[20:04:56] alfiemax: has joined #RubyOnRails
[20:11:09] cjohnson: has joined #RubyOnRails
[20:11:56] cjohnson: I need to validate that a record has a state, or failing that, has a zip (since the state can be looked up). I have a StateValidator and a ZipValidator, is there a way to set up that logic in a smarter way than creating a StateOrZipValidator that combines the two?
[20:12:13] cjohnson: Right now the model has validates_with StateValidator
[20:13:52] arup_r: cjohnson: can you show your code?
[20:14:18] alfiemax: all i can think off is place the ZipValidator after StateValidator, and add a condition inside the Zip validator if the errors has the state key, based on that you can continue or not
[20:15:05] alfiemax: but, i'd go for StateOrZipValidator, as it makes more sense and keeps the code clean
[20:15:28] cjohnson: Ok I wasn't sure if there was some syntax created to combine validator logics
[20:15:42] cjohnson: arup_r: I will paste it but it's super trivial and straight forward
[20:16:02] cjohnson: StateValidator just checks for record.state matching a regex, and the record has validates_with StateValidator
[20:16:05] cjohnson: no logic around it
[20:16:12] cjohnson: let me wrap up writing this ticket, sec
[20:16:29] arup_r: then u can add it in the same place
[20:17:12] arup_r: your method just returns either true or false.. so if you combine it really does not matter.
[20:18:52] arup_r: cjohnson: if you don't show the code.. then I need to assume many things which may not be true. so it is better always when asking to show everything you have... so that I don't need to assume. I can see where are you and go after that.
[20:19:25] Technodrome: has joined #RubyOnRails
[20:20:05] arup_r: cjohnson: see u are explaining your code .. above ^. You don't need to do that when u come up with a gist in first place.
[20:21:08] arup_r: when ask for code, OP says me why you need it, that part really has nothing to do with this shit. But how come do I know what is going on there.
[20:22:06] openCircuit__: has joined #RubyOnRails
[20:22:54] cjohnson: I agree, it was just gonna take more time to put a gist together than to just explain what was truly trivial code. But I will get you a gist
[20:25:42] baweaver: cjohnson https://stackoverflow.com/questions/5584327/how-can-i-combine-multiple-rails-validations-for-the-same-if-condition
[20:26:09] baweaver: validates state if no zip and validates zip if no state. Something like that.
[20:28:07] mahloun: has joined #RubyOnRails
[20:29:19] baweaver: Y'might give the Rails Validation docs a run through
[20:29:22] baweaver: lots of fun stuff there.
[20:29:32] baweaver: and it'll explain in far more detail there.
[20:33:08] cjohnson: https://gist.github.com/chrisjohnson/6eeee4474f8d41055879191f87fba46a
[20:34:14] cjohnson: another question, for the regexp there, are \A and \z ^ and $ respectively in PCRE?
[20:34:19] cjohnson: bol and eol
[20:41:07] cjohnson: https://stackoverflow.com/questions/577653/difference-between-a-z-and-in-ruby-regular-expressions
[20:43:00] mikecmpbll: has joined #RubyOnRails
[20:47:41] debajit: has joined #RubyOnRails
[20:56:12] hotpancakes: has joined #RubyOnRails
[21:02:13] hahuang65: has joined #RubyOnRails
[21:18:06] uksio: has joined #RubyOnRails
[21:26:54] jaequery: has joined #RubyOnRails
[21:29:15] hotpancakes: has joined #RubyOnRails
[21:30:16] hotpancakes: has joined #RubyOnRails
[21:31:38] hahuang65: what's a simple way to place a button that reloads the page, but in a different format?
[21:31:47] hahuang65: or, is there even a simple way to do that?
[21:32:05] chouhoulis: has joined #RubyOnRails
[21:46:56] dionysus69: has joined #RubyOnRails
[21:50:47] duderonomy: has joined #RubyOnRails
[21:59:30] patarr: has joined #RubyOnRails
[22:14:05] hotpancakes: has joined #RubyOnRails
[22:15:00] chouhoulis: has joined #RubyOnRails
[22:15:52] NoGodDamnIdea: has joined #RubyOnRails
[22:17:47] dionysus69: has joined #RubyOnRails
[22:23:05] nahtnam: has joined #RubyOnRails
[22:32:59] openCircuit__: has joined #RubyOnRails
[22:35:24] NoGodDamnIdea: has joined #RubyOnRails
[22:49:00] chouhoulis: has joined #RubyOnRails
[22:52:47] openCircuit__: has joined #RubyOnRails
[22:54:26] hahuang65: has joined #RubyOnRails
[22:57:02] hotpancakes: has joined #RubyOnRails
[23:01:49] greengriminal: has joined #RubyOnRails
[23:02:05] hotpancakes: has joined #RubyOnRails
[23:12:37] openCircuit__: has joined #RubyOnRails
[23:17:57] gusrub: has joined #RubyOnRails
[23:19:38] quirkycoders: has joined #RubyOnRails
[23:19:45] quirkycoders: has joined #RubyOnRails
[23:28:52] xx00__: has joined #RubyOnRails
[23:30:05] quirkycoders: What's wrong with the way I set up the params. My controller is not seeing the params: https://gist.github.com/8038e97d5e07dd51da7865bdd1fe9d1f
[23:31:02] quirkycoders: In the second test
[23:32:23] openCircuit__: has joined #RubyOnRails
[23:39:29] dviola: has joined #RubyOnRails
[23:43:12] tekk: has joined #RubyOnRails
[23:43:17] hfp_work: has joined #RubyOnRails
[23:43:47] unreal: has joined #RubyOnRails
[23:43:53] quirkycoders: has joined #RubyOnRails
[23:44:01] quirkycoders: What's wrong with the way I set up the params. My controller is not seeing the params: https://gist.github.com/8038e97d5e07dd51da7865bdd1fe9d1f
[23:44:02] quirkycoders: In the second test
[23:44:26] spion: has joined #RubyOnRails
[23:45:23] brent__: has joined #RubyOnRails
[23:46:47] LightStalker: has joined #RubyOnRails
[23:49:40] quirkycoders: has joined #RubyOnRails
[23:51:21] frontrowalex: has joined #RubyOnRails
[23:51:55] frontrowalex: Hey folks, quick question: is it possible to somehow get ahold of environment variables from within the up function of an active record migration?
[23:52:09] openCircuit__: has joined #RubyOnRails
[23:52:16] frontrowalex: e.g. target host, db, password etc
[23:52:34] Radar: quirkycoders: which version of Rails?
[23:52:51] Radar: quirkycoders: and are you sure ENV["SLACK_SLASH_COMMAND_TOKEN"] is actually set?
[23:56:15] quirkycoders: ...and yes I do get the token back when put ENV["SLACK_SLASH_COMMAND_TOKEN"] in the console
[23:56:24] quirkycoders: after hitting binging.pry
[23:57:32] mrgordon: has joined #RubyOnRails
[23:58:47] quirkycoders: not able to update gist with the actually controller at the moment. i think Gist is having their own issues at the moment.
[23:59:16] mrgordon: quick Rails 5 question. I’ve added app/lib/ to store some stuff and its working well from a console but rspec is not loading the modules properly. Any ideas? I know the autoload_paths stuff was all redone but app/lib gets loaded in console so not sure what I’m missing for rspec
[23:59:26] no-dashes_: has joined #RubyOnRails