#RubyOnRails - 06 January 2018
« Back 1 day Forward 1 day »
[15:08:42] za1b1tsu: Hello, I'm looking for some conventions regarding how to arrange to code in models (validates, relations) etc. Anybody knows a nice guide or if there is a term for this type of conventions, since in my google searches I come across other types of convetions?
[18:11:58] dachinat: hi, I've asked question at #ruby can I ask it here as well? If you have used VCR, is it possible to compare match_requests_on: [:register_user_matcher, :update_user_matcher] with OR. If not, is it possible to retrieve registered matchers and compare them in a single matcher?
[18:27:46] dachinat: I found a way to call it: VCR.request_matchers[:register_user_matcher].callable.call(request_1, request_2) thanks.
[18:45:57] mustmodify: I'm having a weird issue... I'm getting "missing template unauthorized/respond" format :json ... seems like it should just ... render the json... any thoughts? https://gist.github.com/mustmodify/47eb7570043b25857c7483bce98b044d And I realize this is a wonky way to do auth.
[19:36:26] neruda: hi all, question about a recent PR that was merged: https://github.com/rails/rails/pull/28864/commits
[19:37:00] neruda: does anyone know what versions of rails (if any) this was/will be backported to? Im a github noob and dont know how to tell
[19:47:55] mustmodify: "Only the latest release series will receive bug fixes. When enough bugs are fixed and its deemed worthy to release a new gem, this is the branch it happens from."
[22:13:58] amperry: hi folks, got a problem with the Devise gem that's showing up in production and not development, "ActionController::InvalidAuthenticityToken". Gist here: https://gist.github.com/amp108/7ff45ab5e5cf38c0889ca6ec13fbc33e
[23:24:13] tomasm-: hey I'm starting with a fresh rails project, trying to get bootstrap 4 installed... I follow the instructions here: https://github.com/twbs/bootstrap-rubygem ... And I restart passenger, but when I go to the site, it says it cant find 'bootstrap' when doing @import in my scss file. rails assets:precompile works fine. any idea what's wrong?