« Back to channel list

#RubyOnRails - 17 August 2018

« Back 1 day Forward 1 day »
[00:12:39] Technodrome: has joined #RubyOnRails
[00:50:21] lxsameer: has joined #RubyOnRails
[01:02:18] sevenseacat: has joined #RubyOnRails
[01:08:02] orbyt_: has joined #RubyOnRails
[01:10:20] jeromelanteri: dminuoso, there is some people who think that they have nothing to learn (looks like they know everything...) and who make some non-constructive choice(s). These persons are such example i look at them like poor people due to there big pretention and the fact that... but in fact, they also ask questions (sure, not in the form they have to maybe learn something).
[01:11:19] jeromelanteri: dminuoso, by the time, we will see how much people there want to help with humility and how much just push people who ask for help out...
[01:11:28] cagomez: has joined #RubyOnRails
[01:14:06] sevenseacat: this conversation is still going? oy vey
[01:16:43] orbyt_: has joined #RubyOnRails
[01:29:45] jscheel: has joined #RubyOnRails
[01:30:24] duderonomy: has joined #RubyOnRails
[01:34:52] dionysus69: has joined #RubyOnRails
[01:40:51] Technodrome: has joined #RubyOnRails
[01:52:48] Technodrome: has joined #RubyOnRails
[02:15:34] dionysus69: has joined #RubyOnRails
[02:16:32] dionysus69: has joined #RubyOnRails
[02:18:20] Saukk: has joined #RubyOnRails
[02:24:34] ariedler: has joined #RubyOnRails
[02:27:50] cagomez: has joined #RubyOnRails
[02:42:16] hahuang65: any one around I can ask about an algorithms problem I'm working on?
[02:44:19] sevenseacat: can always ask.
[02:45:16] EGreg2: has joined #RubyOnRails
[02:45:23] EGreg2: I have a problem running rake
[02:45:29] EGreg2: NoMethodError: undefined method `observers=' for ActiveRecord::Base:Class
[02:45:33] EGreg2: it says Rake aborted!
[02:45:48] EGreg2: even rake about says that
[02:45:55] EGreg2: qbixstaging.new redmine # rake about
[02:45:55] EGreg2: rake aborted!
[02:45:55] EGreg2: NoMethodError: undefined method `observers=' for ActiveRecord::Base:Class
[02:45:57] EGreg2: /root/.rvm/gems/ruby-2.4.2/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
[02:46:01] EGreg2: what can I do??
[02:47:59] EGreg2: hmm where did you see redmine
[02:48:05] EGreg2: it's true, it's about redmine but how did you know
[02:48:16] sevenseacat: [10:45:55] EGreg2: qbixstaging.new redmine # rake about
[02:48:44] EGreg2: it looks like it was environment variables, i exited the shell and came back and now another error instead
[02:48:49] sevenseacat: https://github.com/stpl/systango_hrm/issues/8 ?
[02:49:35] EGreg2: still same shit:
[02:49:36] EGreg2: rake aborted!
[02:49:37] EGreg2: NoMethodError: undefined method `observers=' for #<Class:0x000000061f5008>
[02:49:51] EGreg2: yes!! thanks for finding it how did u find it so fast
[02:49:52] EGreg2: you know about it?
[02:50:06] Saukk: has joined #RubyOnRails
[02:50:28] EGreg2: I don't have this "systango" plugin
[02:50:28] sevenseacat: nope, I googled the error
[02:50:33] sevenseacat: then maybe its not related
[02:50:34] hahuang65: sevenseacat: i've got this so far... https://gist.github.com/hahuang65/749a666b70dc69308c5c1018b47cea0f it doesn't work for obvious reasons. it recurses itself into eternity
[02:50:59] EGreg2: it says the stack trace
[02:51:00] lxsameer: has joined #RubyOnRails
[02:51:08] EGreg2: NoMethodError: undefined method `observers=' for #<Class:0x00000005915dc0>
[02:51:08] EGreg2: /root/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
[02:51:08] EGreg2: /root/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.8/lib/active_record/railtie.rb:108:in `block (3 levels) in <class:Railtie>'
[02:51:12] EGreg2: it's in activerecord gem itself!
[02:51:24] dionysus69: has joined #RubyOnRails
[02:51:42] EGreg2: so now what
[02:51:49] EGreg2: I tried reinstalling activerecord etc.
[02:52:00] EGreg2: not sure how it is getting that error
[02:55:26] sevenseacat: its getting it from something inside redmine - do you have a full stacktrace
[02:56:52] EGreg2: yes but the problem is in active_record gem
[02:56:58] EGreg2: gonna reinstall ruby 2.5 and activerecord
[02:58:49] sevenseacat: its from code that uses that gem
[03:01:37] ephemer0l_: has joined #RubyOnRails
[03:03:13] sevenseacat: hahuang65: yeah you need to remove duplicates on each iteration or you'll end up in infinite loops
[03:03:37] sevenseacat: before recursing on a relative, make sure you haven't previously recursed on them
[03:04:42] hahuang65: sevenseacat: yeah, I need some place to store the ones that have been processed.
[03:04:46] sevenseacat: because siblings is going to be a two-way relationship
[03:05:14] hahuang65: i either need to store the siblings that are processed, or some clever way to make sure that they can't possibly be processed twice.
[03:10:56] hahuang65: sevenseacat: I'm not entirely sure what would be a suitable store for this
[03:11:15] braincrash: has joined #RubyOnRails
[03:13:20] sevenseacat: keep a list of "items seen before in this line" - eg. first recursion the list will be the initial object, then everytime you call recursive relatives, add the current object onto the chain and skip it if its already in the chain
[03:13:34] sevenseacat: hang on, tweaking the gist
[03:14:32] hahuang65: sevenseacat: i understand the concept, I just mean, in the rails ecosystem, I'm not sure where to store it. Currently I'm thinking a Redis list keyed off the subject's ID
[03:15:01] hahuang65: the list of "items seen before this"
[03:15:16] EGreg2_: has joined #RubyOnRails
[03:15:21] EGreg2_: sorry I got disconnected
[03:15:23] EGreg2_: how do I fix this?
[03:15:29] sevenseacat: in an array in memory?
[03:15:33] EGreg2_: qbixstaging.new redmine # rake about
[03:15:33] EGreg2_: rake aborted!
[03:15:33] EGreg2_: NoMethodError: undefined method `observers=' for ActiveRecord::Base:Class
[03:15:34] Radar: EGreg2_: !enternotspace
[03:15:34] helpa: EGreg2_: The enter key should not be used as a space bar. Lines on IRC can be up to 400 characters long.
[03:15:39] EGreg2_: what do I do?
[03:15:41] Radar: p.s. hi again
[03:15:51] EGreg2_: /root/.rvm/gems/ruby-2.5.1/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
[03:15:55] sevenseacat: EGreg2_: can you gist the full error with backtrace so we can see whats causing it
[03:15:55] EGreg2_: /root/.rvm/gems/ruby-2.5.1/gems/activerecord-4.2.8/lib/active_record/railtie.rb:108:in `block (3 levels) in <class:Railtie>'
[03:15:59] Radar: EGreg2_: shhh now
[03:16:02] sevenseacat: in a gist, not in the channel
[03:16:04] Radar: EGreg2_: maybe use a version of Rails that is compatible with that version of Redmine.
[03:16:15] dionysus69: has joined #RubyOnRails
[03:16:17] sevenseacat: that sounds like the likely cause, yes
[03:16:25] EGreg2_: https://gist.github.com/EGreg/831b867277826bd73d1a077441552b6a
[03:16:28] EGreg2_: what version is that
[03:16:41] sevenseacat: https://gist.github.com/EGreg/831b867277826bd73d1a077441552b6a#file-gistfile1-txt-L19
[03:16:45] Radar: EGreg2_: please slow down
[03:16:51] Radar: EGreg2_: if you don't slow down, I will mute you.
[03:17:05] Radar: EGreg2_: Now that we've established the rules... how did you install Redmine?
[03:17:11] EGreg2_: what did I do wrong
[03:17:25] EGreg2_: I didn't, I asked some else to do it and now I have full access to the machine.
[03:17:27] Radar: EGreg2_: You were spamming in #ruby and I am concerned that you might do the same thing here.
[03:17:35] EGreg2_: Wait, that's wrong. I installed a new version by checking it out from mercurial and moving it to a folder.
[03:17:42] Radar: EGreg2_: is there a Gemfile in that directory?
[03:17:59] hahuang65: sevenseacat: i'm not sure how to do that from an instance of the object
[03:18:05] Radar: EGreg2_: does it specify "redmine" in that Gemfile?
[03:18:08] EGreg2_: rails 4.2.8
[03:18:23] EGreg2_: I think you meant "rails"
[03:18:34] Radar: EGreg2_: No, I definitely meant redmine.
[03:18:41] EGreg2_: It doesn't have the string "redmine"
[03:19:05] Radar: Fascinating.
[03:19:27] sevenseacat: hahuang65: https://gist.github.com/sevenseacat/76165643f17ffd895ad4812f001226df something like that springs to mind
[03:19:32] EGreg2_: https://gist.github.com/EGreg/3c512737965277abd89cbb44caeb4987
[03:19:41] Radar: EGreg2_: So, step #1: it looks like you're using an older version of Redmine beccause it's trying to use Rails 4.2.8
[03:19:50] Radar: EGreg2_: Step #2: try re-installing Redmine from scratch
[03:19:58] EGreg2_: great. how do I do it
[03:20:08] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[03:20:10] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[03:20:12] EGreg2_: I downloaded Redmine 3.4
[03:20:18] EGreg2_: http://www.redmine.org/projects/redmine/wiki/Download#Latest-source-code
[03:20:39] EGreg2_: The latest 3.4 stable by hg clone
[03:20:41] Radar: EGreg2_: what is in the `lib/redmine/version.rb` file? What numbers are there for MAJOR, MINOR and TINY?
[03:21:17] sevenseacat: http://www.redmine.org/projects/redmine/wiki/RedmineInstall follow and if you get stuck, holler
[03:21:23] Radar: EGreg2_: Ok.
[03:22:03] EGreg2_: I also have Rails 4.2.8 installed
[03:22:11] EGreg2_: and ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
[03:22:24] darkhanb: has joined #RubyOnRails
[03:22:32] EGreg2_: Seems that I have the latest redmine, and it asks for Rails 4.2.8, and that's what I have.
[03:22:48] Radar: Follow http://www.redmine.org/projects/redmine/wiki/RedmineInstall again from scratch.
[03:23:27] EGreg2_: I can do step 1 but the database needs to be migrated from existing one
[03:23:52] sevenseacat: thats a whole different kettle of fish
[03:24:32] EGreg2_: I already did step 1 before, just doing it again
[03:24:57] EGreg2_: Radar, sevenseacat, what else could it be?
[03:25:05] sevenseacat: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade some of the db steps in there might help
[03:25:12] EGreg2_: The stack trace specifically shows that activerecord compains about a missing method
[03:25:25] sevenseacat: yes, we can read.
[03:25:39] sevenseacat: because you have a plugin calling that missing method.
[03:30:50] Radar: and possibly due to a "config.active_record.observers =" bit of code in your application that doesn't occur in vanilla Redmine installs.
[03:30:54] Radar: ACTION disappears
[03:33:01] EGreg2_: OK I have been going throughthe steps
[03:33:02] EGreg2_: bundle exec rake db:migrate RAILS_ENV=production
[03:33:09] EGreg2_: this is where I run intot he error, as I have already said
[03:33:46] EGreg2_: I can't seem to find that piece of code in the app
[03:33:55] sevenseacat: can you tell me whats on /usr/local/redmine/lib/plugins/acts_as_activity_provider/init.rb:2
[03:34:12] EGreg2_: ActiveRecord::Base.send(:include, Redmine::Acts::ActivityProvider)
[03:34:42] Radar: EGreg2_: please look for the word "observers" in your application and tell me where it appears.
[03:35:08] ponzii: has joined #RubyOnRails
[03:35:32] ponzii: has left #RubyOnRails: ()
[03:36:06] EGreg2_: what is the command to search in the files
[03:36:12] EGreg2_: recursively through all dirs
[03:36:32] Radar: EGreg2_: I'm sure you can figure that one out.
[03:36:35] EGreg2_: I tried this: find . \( -iname "*.svn" -type d -prune \) -o -exec grep -inHI $1 /dev/null {} $
[03:36:44] Radar: EGreg2_: what OS?
[03:37:25] Radar: EGreg2_: install ripgrep and then it's "rg observers"
[03:37:32] EGreg2_: ah thanks!
[03:38:31] EGreg2_: No package ripgrep available. Error: Nothing to do
[03:38:36] EGreg2_: Crap. hmm.
[03:38:54] Radar: https://github.com/BurntSushi/ripgrep look here for CentOS. \
[03:39:32] EGreg2_: wow that was suuuper fast. thanks
[03:39:43] EGreg2_: config/application.rb:26
[03:39:48] Radar: Ok, can you show us that line please?
[03:40:00] wyoung: has joined #RubyOnRails
[03:40:01] EGreg2_: config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
[03:40:14] Radar: EGreg2_: that line doesn't come by default with Redmine installations. How did it come into being?
[03:40:38] EGreg2_: let me check by cloning another redmine
[03:40:45] wyoung: I am new to RoR, I want to create a RESTful framework. Is this supported out of the box or can anyone recommend a plugin / library that provides this?
[03:40:57] sevenseacat: https://github.com/redmine/redmine/blob/3.4.6/config/application.rb its not there.
[03:42:19] sevenseacat: wyoung: its supported out of the box.
[03:42:42] wyoung: sevenseacat: Cheers!
[03:42:49] Radar: sevenseacat: EGreg2_: because it was removed here: http://github.com/redmine/redmine/commit/205eda8b33d69defecedf2d246858a46d3d1d7c0
[03:42:53] wyoung: I'll keep reading the docs then :)
[03:42:56] Radar: Guessing config/application.rb was copied over from an older version of Redmine.
[03:43:15] EGreg2_: I replaced that file from the newly cloned redmine, and now bundle exec rake db:migrate RAILS_ENV=production works
[03:43:20] Radar: EGreg2_: amazing
[03:43:38] EGreg2_: Seems I copied it over from the old redmine when I was "migrating" by hand somehow
[03:43:53] s2013: has joined #RubyOnRails
[03:43:58] EGreg2_: Almost there! Now I am getting the dreaded "We're sorry, but something went wrong. "
[03:44:24] EGreg2_: I solved this before somehow, but forgot how. I think by bundle install. But this time it ain't working. I got as far as the app working but complaining about db an hour ago. Now almost there.
[03:44:52] EGreg2_: production.log is not being added to. Hmm.
[03:45:06] Radar: EGreg2_: what about log/development.log?
[03:45:23] EGreg2_: nothing either.
[03:45:30] EGreg2_: I also have test.log
[03:45:40] EGreg2_: tailing all logs, nothing when I refresh
[03:45:45] Radar: EGreg2_: are you still piping it through nginx or no?
[03:45:48] EGreg2_: seems like I am almost there but ther's a problem with the server
[03:46:20] EGreg2_: I shouldn't have reinsttalled ruby and activerecord, I shoulda just fixed application.rb and it woulda worked :(
[03:46:29] EGreg2_: now I have to figure out how to set up nginx with ruby maybe?
[03:46:32] Radar: [13:45:44] <Radar> EGreg2_: are you still piping it through nginx or no?
[03:46:41] EGreg2_: How do I find out the answer to that question
[03:46:46] Radar: EGreg2_: srsly. Slow down and answer our questions instead of monologuing.
[03:47:05] Radar: EGreg2_: Are you accessing the redmine instance through localhost:3000 or not?
[03:47:07] EGreg2_: I visit http://issues.qbix.com and it no longer writes anyting in nginx logs (but it used to write in access.log)
[03:47:24] Radar: "Please read the Passenger log file (search for the Error ID) to find the details of the error.
[03:47:33] EGreg2_: where do I find the Passenger log file
[03:47:37] ariedler: has joined #RubyOnRails
[03:47:49] EGreg2_: I tried that before.
[03:48:08] EGreg2_: The previous person who installed it didn't document things well
[03:48:16] EGreg2_: It seems to have been set up with nginx, not apache
[03:49:17] sevenseacat: I would set it up locally in a VM or something, the exact same way, and get it working before stuffing around with a production install.
[03:49:33] EGreg2: has joined #RubyOnRails
[03:49:39] EGreg2: okay I'm back, sorry disconneted
[03:49:41] EGreg2: what were you saying
[03:49:47] lxsameer: has joined #RubyOnRails
[03:50:01] sevenseacat: write the documentation when setting it up in the VM so the next person won't have the same problems.
[03:50:16] EGreg2: yes AGREED. I am the next person though
[03:50:27] EGreg2: "The default log file is located in log/passenger.XXX.log, where XXX is the port number that Passenger listens on." <-- what is that "log" relative to
[03:50:45] Radar: EGreg2: p.s. we are not google
[03:54:15] EGreg2: seems it would go into production.log etc. https://serverfault.com/questions/393716/where-do-passenger-logs-go
[03:54:24] EGreg2: which it's not writing to. Yet it's serving a response to the request
[03:56:00] EGreg2: Gonna try to reinstall redmine
[03:57:16] s2013: has joined #RubyOnRails
[04:07:09] srinidhi: has joined #RubyOnRails
[04:07:22] EGreg2: Seems it happened because I reinstalled ruby.
[04:07:27] EGreg2: Maybe I am missing some gem
[04:07:47] EGreg2: How do I restart the passenger server
[04:09:57] EGreg2: Seems I am using thin, not passenger
[04:11:04] dionysus69: has joined #RubyOnRails
[04:11:16] EGreg2: AAAAND THERE IT IES!
[04:11:23] EGreg2: thin start :) the magic words
[04:11:36] sevenseacat: I hope you're writing a shitload of documentation for the next person.
[04:13:22] faitswulff: has joined #RubyOnRails
[04:13:38] Technodrome: has joined #RubyOnRails
[04:32:17] dionysus69: has joined #RubyOnRails
[04:38:19] za1b1tsu: has joined #RubyOnRails
[04:40:15] tfitts: has joined #RubyOnRails
[04:41:17] sevenseacat: probably not, given they're gone
[04:42:51] EGreg2: has joined #RubyOnRails
[04:42:52] EGreg2: Thank you for all your help, unpaid people.
[04:43:02] EGreg2: I really appreciate the community's activity
[04:49:23] pipework: has joined #RubyOnRails
[04:54:01] sevenseacat: pay it forward - help others, even if that other is your future self.
[05:10:14] Dbugger: has joined #RubyOnRails
[05:12:04] jeromelanteri: what can be a javascript tempalte (like index.js or index.coffee) to be printed in the view instead of been loaded ?
[05:12:53] jeromelanteri: how is this possible to get this happening ?
[05:14:28] jeromelanteri: what's wrong in my code ? i can not find. https://bitbucket.org/jerome___/aquaworks/commits/all
[05:16:14] jeromelanteri: specifically for app/views/articles/ for index part... index.coffee render print chars instead of i expexted to be a javascript file call when JS render view asked by an ajax call (for exemple when kaminari pagination command event click make turn the action index as JS call...
[05:18:03] jeromelanteri: or maybe tell me where i can find some people who want to help me please.
[05:18:11] jeromelanteri: here, i have no luck.
[05:41:29] ragsagar: has joined #RubyOnRails
[05:48:38] kapil___: has joined #RubyOnRails
[05:55:45] ragsagar: has joined #RubyOnRails
[06:24:35] ragsagar: has joined #RubyOnRails
[06:28:41] reber: has joined #RubyOnRails
[06:31:11] dionysus69: has joined #RubyOnRails
[06:53:12] s2013: whats up yall
[07:00:00] Technodrome: has joined #RubyOnRails
[07:00:20] DrYockel: has joined #RubyOnRails
[07:06:54] defsdoor: has joined #RubyOnRails
[07:11:47] ragsagar: has joined #RubyOnRails
[07:20:37] za1b1tsu: has joined #RubyOnRails
[07:46:02] za1b1tsu: Are errors like these: ActionController::RoutingError (No route matches [GET] "/assets/shims/i18n/formcfg-nl.js"): problematic?
[07:46:18] za1b1tsu: I don't how to replicate them, I'm just tailing the logs
[07:46:36] sevenseacat: if they're files your app is using, then probably
[07:47:12] dminuoso: za1b1tsu: Ask yourself what the problem is.,
[07:47:24] dminuoso: za1b1tsu: When your app cant load its dependencies, do you think it's problematic?
[07:52:23] dionysus69: back to my yesterday's problem, so I found out that including javascript causes unprecedented memory bloat even after 5-6 requests on any page, from 300mb to ~1500mb, after removing js problem solved, but now I am unable to pinpoint which part is causing the bloat, i think it's not a fault of any particular js asset, if I remove half the assets, the bloat becomes halved, so how can I debug this any ideas? so far I am thinking it's proble
[07:52:26] Ergo: has joined #RubyOnRails
[07:53:26] dionysus69: I googled around about this but most of the articles are inapplicable
[07:56:24] apeiros: has joined #RubyOnRails
[08:05:11] jottr: has joined #RubyOnRails
[08:20:41] ragsagar: has joined #RubyOnRails
[08:21:25] za1b1tsu: Im getting a lot of ActionController::RoutingError (No route matches [GET] "/assets/shims/ errors. What should I investigate?
[08:21:58] sevenseacat: are you referencing those files in your code?
[08:23:37] ragsagar: has joined #RubyOnRails
[08:23:49] za1b1tsu: sevenseacat: in application.* files right?
[08:24:02] sevenseacat: anywhere in your app. search your entire app
[08:27:41] za1b1tsu: sevenseacat: yes, for vendor/assets/javascript/shims/form-validation.js I have addmodule('form-input
[08:28:00] za1b1tsu: wher form-inputmode is in a shim error
[08:30:26] drale2k_: has joined #RubyOnRails
[08:30:26] sevenseacat: mmm you should probably look up the docs for that library and see how it should work with whatever frontend build pipeline you're using
[08:30:40] drale2k_: i have strong params like "params.require(:agent).permit.." but i can send updates without nesting the request in the "agent" key
[08:30:41] drale2k_: why is that?
[08:31:08] sevenseacat: drale2k_: define 'send updates'
[08:31:22] drale2k_: PUT request to update the resource
[08:31:41] sevenseacat: well your rails app can't stop a request with various parameters being made
[08:31:51] drale2k_: i can just PUT /agents {"name": "newname"} and it will update
[08:31:52] sevenseacat: it can however stop them from getting to the database
[08:31:58] sevenseacat: well thats your code then
[08:32:06] sevenseacat: show us that action code?
[08:32:16] drale2k_: i hm, i don't have anything special. Sure mom
[08:35:16] drale2k_: sevenseacat https://gist.github.com/drale2k/f15b1b876403b7a2d88d0b8b9be40298
[08:35:45] sevenseacat: can you also show the server logs when making that put request?
[08:35:50] ariedler: has joined #RubyOnRails
[08:36:19] outhicat: has joined #RubyOnRails
[08:37:26] drale2k_: added a comment to the gist with the request
[08:37:48] drale2k_: it seems like it's automatically nesting it anyway
[08:38:03] KevinSjoberg: has joined #RubyOnRails
[08:38:05] sevenseacat: I do see "agent"=>{"name"=>"newname} in there
[08:39:56] drale2k_: yes but that is not what i am sending
[08:40:05] drale2k_: i am sending only name which you can see as the first param
[08:41:47] sevenseacat: thats not what your logs say
[08:41:47] outhicat: has joined #RubyOnRails
[08:42:00] sevenseacat: how are you sending this request?
[08:44:06] sevenseacat: do you have an initializer called wrap_parameters.rb - whats in that file?
[08:44:22] drale2k_: i am sending them using Postman
[08:44:57] drale2k_: yes i have that file, it has a block with contnet "wrap_parameters format: [:json]"
[08:45:09] sevenseacat: thats where the wrapping is likely coming from then
[08:45:17] sevenseacat: given you have a json request
[08:45:22] drale2k_: yes it is a JSON request
[08:45:26] sevenseacat: if you're very sure you're not submitting that data
[08:45:28] drale2k_: ok hm, is this on by default ?
[08:45:35] mikecmpbll: has joined #RubyOnRails
[08:45:51] sevenseacat: if its uncommented, its on.
[08:46:14] drale2k_: yes indeed, i uncommented and it now requires the key
[08:47:16] drale2k_: this was in my inital rails commit. Seems Rails generated that by default
[08:47:27] drale2k_: gonna check with a new app
[08:48:55] drale2k_: ye it does. Good to know
[08:55:50] jottr: has joined #RubyOnRails
[09:00:46] lxsameer: has joined #RubyOnRails
[09:20:08] titanmaru: has joined #RubyOnRails
[09:21:23] dionysus69: ok I made the sheet which displays GC.stat per request https://docs.google.com/spreadsheets/d/16bmmoggLNUW9Qpe3q2lvLDL4eFoVe2anorKFjE70Zt8/edit?usp=sharing does it look normal? each column is one refresh, at the first refresh the memory usage was about 300mb, at the last one it was at 800-900mb, and I was refreshing same page!
[09:23:38] dionysus69: notice that total_allocated_objects increases from 3 million to 80 million
[09:29:47] mauro1254: has joined #RubyOnRails
[09:37:36] tevio: has joined #RubyOnRails
[09:45:42] hammer065: has joined #RubyOnRails
[09:47:39] defsdoor: has joined #RubyOnRails
[09:53:57] jottr: has joined #RubyOnRails
[10:13:14] Cork: has joined #RubyOnRails
[10:20:41] GodFather: has joined #RubyOnRails
[10:49:54] snuz: has joined #RubyOnRails
[10:55:13] ariedler: has joined #RubyOnRails
[10:56:38] srinidhi: has joined #RubyOnRails
[11:08:36] kapil___: has joined #RubyOnRails
[11:26:46] mikecmpbll: does anyone know of a way to make a method available in fixtures erb?
[11:27:15] mikecmpbll: (without defining the method in the fixture itself
[11:27:24] drale2k_: has joined #RubyOnRails
[11:27:46] mikecmpbll: i need to return encrypted values and such for the YAML fixtures, and the code is kinda verbose and looks bad inline in the YAML.
[11:28:14] pavelz: has joined #RubyOnRails
[11:28:42] mikecmpbll: shit nvm, worked it out meself i think; ActiveRecord::FixtureSet::RenderContext
[11:29:27] pavelz: in 4.2 version of an app there are param elements that get nil passed to them while in 5.2 they are passed as actual empty arrays
[11:29:31] pavelz: is this right?
[11:30:00] DTZUZO: has joined #RubyOnRails
[11:34:23] za1b1tsu: has joined #RubyOnRails
[11:40:15] bijan_: has joined #RubyOnRails
[11:43:59] gambl0re: has joined #RubyOnRails
[11:53:07] srinidhi: has joined #RubyOnRails
[11:55:39] ariejan: has joined #RubyOnRails
[11:56:26] ariejan: Hi. I've have a vanilla rails 5.2 form_for with some text fields. Validations work (tested, debugged), but the "field_with_errors" wrappers do not appear in my form. Any clue on why that stopped working?
[12:01:04] DrYockel: has joined #RubyOnRails
[12:06:54] pavelz: deep_munge has changed
[12:08:10] za1b1tsu: has joined #RubyOnRails
[12:19:12] faitswulff: has joined #RubyOnRails
[12:23:59] jeromelanteri: i tryed to costruct a test case for make index.coffee working at ajax call from kaminari remote, but the index.coffee is never call... also, the puma message show that ajax remote call is made by JS format call... i do added respond_to do |f| f.js end inside index action controller... i do not understand what can be wrong (create.coffe is working, so jquery and ajax are working with turbolinks)
[12:33:20] GodFather: has joined #RubyOnRails
[12:36:02] bijan_: has joined #RubyOnRails
[12:38:52] jeromelanteri: ok, i will ask again later... one day one luck maybe ?
[12:45:26] ragsagar: has joined #RubyOnRails
[12:46:42] bijan_: has joined #RubyOnRails
[12:48:10] jeromelanteri: also, if i rename index.coffee by index.js.erb, after that puma message show that the index.sj.erb is executed and the call is from JS with params page = 2 ... but in the view, it never show the result in page 2. very strange.
[12:48:24] jeromelanteri: first, it is very strange that index.coffe is ignored
[12:57:43] bijan_: has joined #RubyOnRails
[13:03:49] dionysus69: has joined #RubyOnRails
[13:06:19] bijan_: has joined #RubyOnRails
[13:06:44] jeromelanteri: also i carrefully read the rails guide about javascript and ajax... more than the hals of the "unobstrusive javascript" content show obstrusive javascript as example... (not very didactic), and if i try to follow ajax rails-ujs helpers (form_with part of the guide), it didn't works at all... so, do i need to add gem jquery and gem jquery-tirbolinks ? what user is supposed to know before to learn on rails-5.2
[13:06:44] jeromelanteri: version ? please... help...
[13:08:31] jeromelanteri: after 3 days to ask for an help, i hope to find an helper who knwo to use ajax and show the power of rails-5.2 with ajax.
[13:10:16] bijan_: has joined #RubyOnRails
[13:14:19] fmcgeough: has joined #RubyOnRails
[13:19:26] dblessing: has joined #RubyOnRails
[13:23:36] bijan_: has joined #RubyOnRails
[13:25:54] za1b1tsu: has joined #RubyOnRails
[13:33:47] jottr: has joined #RubyOnRails
[13:43:20] bijan_: has joined #RubyOnRails
[13:51:05] apeiros_: has joined #RubyOnRails
[13:51:29] faitswulff: has joined #RubyOnRails
[13:54:03] bijan_: has joined #RubyOnRails
[13:54:17] augcesar: has joined #RubyOnRails
[13:57:52] dviola: has joined #RubyOnRails
[14:00:35] za1b1tsu: has joined #RubyOnRails
[14:04:07] [Butch]: has joined #RubyOnRails
[14:07:15] srinidhi: has joined #RubyOnRails
[14:09:49] drale2k_: has joined #RubyOnRails
[14:10:07] jottr: has joined #RubyOnRails
[14:11:36] bijan_: has joined #RubyOnRails
[14:24:35] bijan_: has joined #RubyOnRails
[14:35:52] za1b1tsu: has joined #RubyOnRails
[14:36:39] Technodrome: has joined #RubyOnRails
[14:39:42] bijan_: has joined #RubyOnRails
[14:43:27] ragsagar: has joined #RubyOnRails
[14:47:03] s2013: has joined #RubyOnRails
[14:50:29] bijan_: has joined #RubyOnRails
[14:52:43] spohnz: has joined #RubyOnRails
[14:52:45] jeromelanteri: looks like rails-ujs is bugged.
[14:58:59] s2013: has joined #RubyOnRails
[15:01:38] bijan_: has joined #RubyOnRails
[15:02:07] dblessing: has joined #RubyOnRails
[15:03:24] akaiiro: has joined #RubyOnRails
[15:03:54] bijan_: has joined #RubyOnRails
[15:03:57] Arkentias: has joined #RubyOnRails
[15:04:45] Arkentias: Hey! Do any of you know if there is any clean way to use my JSONB fields as OpenStruct (all of them)
[15:05:51] drale2k_: just wanted to bash it somewhere -.-
[15:08:49] mikecmpbll: drale2k_ : CSP?
[15:09:00] eddof13: has joined #RubyOnRails
[15:09:07] drale2k_: content security policy
[15:09:19] drale2k_: no matter what i change i break something else
[15:10:21] Sylario: I need to do a.where(condition_1).joins(relation).merge(Relation.scope).or(a.where(condition_2), and I have a "Relation passed to #or must be structurally compatible. Incompatible values: [:includes, :joins, :references]" error
[15:10:58] Sylario: It seems to me the only way to solve that would be to use UNION, is there any other way?
[15:11:35] Sylario: Basically I am doing A.where(a condition)and(relation condition) OR a.where(other A condition)
[15:12:45] Arkentias: It's not compatible because one does a join and not the other one
[15:13:12] Arkentias: You don't select the same fields in both queryies
[15:13:46] ragsagar: has joined #RubyOnRails
[15:14:08] Sylario: Yes but it does not seems I can do a relation condition without altering the selected fields in AR
[15:15:45] Arkentias: What if you force a select on the first a.where?
[15:16:13] Arkentias: Unless you actually need to select the relation also, but if you don't then it might do the trick?
[15:16:48] Sylario: I do not need the relation
[15:17:03] Sylario: But yes, i am trying to add a select
[15:17:16] dblessing: has joined #RubyOnRails
[15:17:52] Sylario: It does not works
[15:18:08] Arkentias: Same error?
[15:18:40] Sylario: ArgumentError: Relation passed to #or must be structurally compatible. Incompatible values: [:select, :references]
[15:18:44] Sylario: with select in both
[15:18:59] Sylario: WHat bother me is that I can't find how to do it in SQL
[15:20:10] Arkentias: Well in SQL it's clearly an union no?
[15:20:19] Sylario: I am not sure
[15:20:53] Sylario: I would guess so, but I don't find anything relating to that
[15:21:32] IanMalcolm: has joined #RubyOnRails
[15:22:20] ragsagar: has joined #RubyOnRails
[15:22:52] jeromelanteri: you guys use rails-ujs without any error ? nosyntaxError expected got '<' ?
[15:25:44] jeromelanteri: it looks like no one can read me...
[15:33:18] Saukk: has joined #RubyOnRails
[15:35:23] MasterAsia: Devise used to have a token auth system where users authenticate using a variable length securerandom generated string
[15:35:33] MasterAsia: Is this a standard anywhere else? it doesn't seem to be
[15:36:33] MasterAsia: I'm specifically talking about https://gist.github.com/josevalim/fb706b1e933ef01e4fb6
[15:37:10] bijan__: has joined #RubyOnRails
[15:37:27] Arkentias: <jeromelanteri> you can be read
[15:37:45] Arkentias: Just that no one is inspired I guess :p
[15:37:51] Sylario: @masterasia it san be used with JWT if I remember correctly
[15:38:15] MasterAsia: sylario, JWT is completely different from this
[15:41:24] Sylario: masterasia: It seems it would work if authenticate_user_from_token go fetch the token in the header
[15:41:26] bijan_: has joined #RubyOnRails
[15:41:49] Sylario: ha, Devise is probaby using a token that does not follow JWT token formatting rules
[15:50:04] duderonomy: has joined #RubyOnRails
[15:53:59] sameerynho: has joined #RubyOnRails
[15:54:13] bijan_: has joined #RubyOnRails
[15:57:18] Sylario: Well it seems the only solution was where('table.'
[15:58:42] Sylario: where("table.id IN ( (#{query1.to_sql} ) UNION (#{query2.to_sql}))")
[15:59:03] Sylario: With both query returning IDs of course
[15:59:15] ariedler: has joined #RubyOnRails
[15:59:37] Sylario: Not sure why but it kind of bother me that I need an Union for this query
[16:01:20] dblessing: has joined #RubyOnRails
[16:05:47] bijan_: has joined #RubyOnRails
[16:09:27] faitswulff: has joined #RubyOnRails
[16:12:58] darkhanb: has joined #RubyOnRails
[16:14:14] prettybTech: has joined #RubyOnRails
[16:16:30] bijan_: has joined #RubyOnRails
[16:21:05] prettybTech: has joined #RubyOnRails
[16:23:18] drale2k_: has joined #RubyOnRails
[16:28:15] bijan_: has joined #RubyOnRails
[16:31:56] samort7: has joined #RubyOnRails
[16:32:03] IanMalcolm: has joined #RubyOnRails
[16:36:38] akaiiro: has joined #RubyOnRails
[16:45:27] bijan_: has joined #RubyOnRails
[16:45:30] s2013: has joined #RubyOnRails
[16:51:42] Technodrome: has joined #RubyOnRails
[16:52:37] prettybTech: has joined #RubyOnRails
[16:58:19] mikecmpbll: has joined #RubyOnRails
[17:00:15] nehero: has joined #RubyOnRails
[17:00:47] bijan_: has joined #RubyOnRails
[17:04:33] eddof13: has joined #RubyOnRails
[17:12:12] bijan_: has joined #RubyOnRails
[17:13:18] IanMalcolm: has joined #RubyOnRails
[17:16:50] GodFather: has joined #RubyOnRails
[17:22:56] faitswulff: has joined #RubyOnRails
[17:25:12] bijan_: has joined #RubyOnRails
[17:25:29] NL3limin4t0r: has joined #RubyOnRails
[17:28:02] bijan_: has joined #RubyOnRails
[17:32:25] bijan_: has joined #RubyOnRails
[17:35:04] za1b1tsu: has joined #RubyOnRails
[17:38:27] ragsagar: has joined #RubyOnRails
[17:40:03] beingjohnm: has joined #RubyOnRails
[17:41:57] s2013: has joined #RubyOnRails
[17:47:11] bijan_: has joined #RubyOnRails
[17:52:14] ariedler: s2013: watching the game, having a bud
[17:52:32] GodFather: has joined #RubyOnRails
[17:53:53] orbyt_: has joined #RubyOnRails
[18:03:24] dviola: has joined #RubyOnRails
[18:03:34] troys: has joined #RubyOnRails
[18:08:29] eckhardt_: has joined #RubyOnRails
[18:24:59] apeiros_: has joined #RubyOnRails
[18:28:19] molloy: has left #RubyOnRails: ("WeeChat 2.0.1")
[18:34:24] maciuszek: has joined #RubyOnRails
[18:59:09] dionysus70: has joined #RubyOnRails
[19:06:11] orbyt_: has joined #RubyOnRails
[19:11:08] Technodrome: has joined #RubyOnRails
[19:15:27] aeontech: has joined #RubyOnRails
[19:15:49] aeontech: has anyone here done much raw arel? i can't figure out the syntax to generate "WHERE ? = ANY(column)" for an array column
[19:16:42] aeontech: I think I'm doing AREL wrong :)
[19:20:52] aeontech: has joined #RubyOnRails
[19:23:47] za1b1tsu: has joined #RubyOnRails
[19:27:02] aeontech: basically here's my first attempt: https://gist.github.com/Aeon/274e6ed3e97950231dbe5cf108ac19bd
[19:27:46] aeontech: but i can't find any good examples with AREL chaining (line 11 immediately throws on "SelectManager doesn't have a method "and")
[19:28:03] aeontech: nor does the "Arel::Nodes::Quoted.new(keyword).eq_any(cases[:keywords])" work...
[19:28:13] aeontech: so i'm definitely stumbling in the dark :)
[19:29:48] faitswulff: has joined #RubyOnRails
[19:31:01] fmcgeough: has joined #RubyOnRails
[19:34:47] prettybTech: has joined #RubyOnRails
[19:42:23] Technodrome: has joined #RubyOnRails
[19:49:19] jottr: has joined #RubyOnRails
[19:53:16] aeontech: i guess I can always go back to interpolating strings :)
[19:56:21] za1b1tsu_: has joined #RubyOnRails
[20:05:24] ur5us: has joined #RubyOnRails
[20:27:13] za1b1tsu_: has joined #RubyOnRails
[20:34:35] LiftLeft: has joined #RubyOnRails
[20:36:14] ragsagar: has joined #RubyOnRails
[20:42:36] s2013: has joined #RubyOnRails
[20:46:21] ragsagar: has joined #RubyOnRails
[21:01:53] za1b1tsu_: has joined #RubyOnRails
[21:05:59] aeontech: has joined #RubyOnRails
[21:11:44] za1b1tsu_: has joined #RubyOnRails
[21:14:25] dblessing: has joined #RubyOnRails
[21:19:54] Technodrome: has joined #RubyOnRails
[21:20:45] faitswulff: has joined #RubyOnRails
[21:23:48] GodFather: has joined #RubyOnRails
[21:23:56] faitswulff: has joined #RubyOnRails
[21:31:26] faitswulff: has joined #RubyOnRails
[21:32:03] lexileo: has joined #RubyOnRails
[21:36:20] prettybTech: has joined #RubyOnRails
[21:36:38] za1b1tsu: has joined #RubyOnRails
[21:39:01] IanMalcolm: has joined #RubyOnRails
[21:57:04] aeontech: has joined #RubyOnRails
[22:04:46] jrich523: has joined #RubyOnRails
[22:07:33] Inside: has joined #RubyOnRails
[22:08:39] za1b1tsu_: has joined #RubyOnRails
[22:10:46] akaiiro: has joined #RubyOnRails
[22:14:51] Technodrome: has joined #RubyOnRails
[22:33:08] prettybTech: has joined #RubyOnRails
[22:37:11] prettybTech: has joined #RubyOnRails
[22:42:05] ur5us: has joined #RubyOnRails
[22:48:26] jqpl: has joined #RubyOnRails
[23:01:12] aeontech: has joined #RubyOnRails
[23:28:00] za1b1tsu_: has joined #RubyOnRails
[23:43:37] ariedler: has joined #RubyOnRails
[23:45:07] agent_white: has joined #RubyOnRails
[23:53:05] orbyt_: has joined #RubyOnRails
[23:54:17] jeromelanteri: someone is inspired for help me this day ?