neruda

Activity Graph

Page 1 of 2 | Next »

2018-02-16

[21:06:49] neruda: has joined #RubyOnRails
[21:09:43] neruda: Anyone used opentracing gem in RoR app? All tutorials I find involve Docker and jaegar and are a little too advanced for me
[22:09:17] neruda: Remote host closed the connection

2018-01-06

[19:35:04] neruda: has joined #RubyOnRails
[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:50:20] neruda: mustmodify: so only v5 then?
[20:13:03] neruda: Quit: Page closed

2017-09-11

[00:00:10] neruda: i have a gem that i unpacked in order to bump up the version of nokogiri listed in the gemspec
[00:00:28] neruda: im wondering how to repack and include in git commit once done
[00:01:02] neruda: i got this gem out of the vendor/cache, but it could also be a part of a gemset (still learning rvm stuff)
[00:01:43] neruda: not sure if there any do's/don'ts/best-practices around this sort of endevaor
[00:02:23] neruda: who wants to shout at me first?
[00:05:53] neruda: has joined #ruby
[00:06:05] neruda: i need a little hand holding with a gem dependency upgrade
[00:06:10] neruda: i have a gem that i unpacked in order to bump up the version of nokogiri listed in the gemspec
[00:06:15] neruda: im wondering how to repack and include in git commit once done
[00:06:23] neruda: i got this gem out of the vendor/cache, but it could also be a part of a gemset (still learning rvm stuff)
[00:06:34] neruda: not sure if there any do's/don'ts/best-practices around this sort of endeavor
[00:27:31] neruda: darix: sorry missed your reply, that's what i ended up doing
[01:29:28] neruda: Quit: Page closed

2017-09-10

[23:58:51] neruda: has joined #RubyOnRails
[23:59:46] neruda: i need a little hand holding with a gem dependency upgrade

2017-06-02

[14:08:23] neruda: has joined #RubyOnRails
[16:48:37] neruda: Quit: Page closed

2017-06-01

[21:07:00] neruda: has joined #RubyOnRails
[21:12:16] neruda: are there additional anti-csrf measures a rails app can employ other than the :prevent_forgery and session nonce? Like storing and checking IP address on each request etc?
[21:15:58] neruda: has joined #ruby
[21:16:34] neruda: its real quiet on the rails chan, so I'll try here
[21:16:43] neruda: are there additional anti-csrf measures a rails app can employ other than the :prevent_forgery and session nonce? Like storing and checking IP address on each request etc?
[21:17:35] neruda: zenspider: thx
[21:48:54] neruda: Quit: Page closed

2017-04-25

[13:54:43] neruda: has joined #RubyOnRails
[13:57:34] neruda: keeping getting strange error when i try to submit form: https://gist.github.com/anonymous/7f6d905e6fd317134580e0ab0961e0f0
[13:57:38] neruda: any help appreciated
[16:25:09] neruda: Quit: Page closed

2017-04-06

[16:20:22] neruda: has joined #RubyOnRails
[16:21:31] neruda: hi all, trying to put together a generic error page with no stack trace in my dev environment, and was wondering what config file settings might be conflicting with that efforts, need a little hand holding
[16:26:10] neruda: so far i've changed config.consider_all_requests_local from true to false, am i missing anything
[16:27:51] neruda: epochwolf: so my motivation is to prevent "information leakage" due to a pentest scan saying such, my issue is that the more i delve into this issue the more i believe its a false positive since the finding was against a "dev" environment version of the app
[16:28:17] neruda: which to my understanding always give stack traces for dev/debugging purposes
[16:28:59] neruda: sorry response was for matthewd, but anyways, the test was against a deployed version of the app that i "suspect" was left in a dev env setting
[16:29:37] neruda: epochwolf: good so my question is: to run in production mode do i just need to exec: "rails s -e production"?
[16:39:03] neruda: matthewd: thanks
[16:39:09] neruda: epochwolf: thanks
[18:17:46] neruda: Quit: Page closed

2017-03-31

[15:21:48] neruda: has joined #RubyOnRails
[15:23:20] neruda: devise question, do i need to put before_filter :authenticate_user! on every controller to protect against XSS/CSRF?
[15:23:39] neruda: using rails 4.2.2
[15:52:55] neruda: xixi_: thanks, my question is does that directive need to be on each controller?
[15:53:43] neruda: my thinking goes like this, if it was site-wide then it would be prob be in /app/config/initializers
[15:54:06] neruda: ah i forgot about the inheritance
[16:08:46] neruda: Quit: Page closed

2016-05-24

[02:33:33] neruda: has joined #RubyOnRails
[02:34:05] neruda: noob question, if rails can use introspection/reflection to reason about the database, why can't strong params do the same, so i don'
[02:34:21] neruda: dont have to explicitly whitelist parameters
[02:35:15] neruda: sevenseacat: yeah buts its easier (in my case) to list the ones i dont want than to list the ones i do
[02:37:42] neruda: sevenseacat/ropeney: i have a giant/complex crud and am essentially defining the schema a second time for strong params
[02:38:04] neruda: sevenseacat: lol no its not
[02:38:35] neruda: Radar: got it, i read your book =), but seriously its easier to say .except(:bad_admin_field)
[02:38:49] neruda: in my case
[02:39:36] neruda: Radar: im not against security im against non-railsy stuff, redefining schema sucks
[02:40:19] neruda: baweaver: respectfully, apples to oranges, compare windows to ubuntu and openbsd to any grsec kernel
[02:43:10] neruda: Ropeney: thanks
[02:44:01] neruda: Ropeney: no i wont, i'll just copy/paste
[12:36:19] neruda: Quit: Page closed

2015-12-30

[23:53:39] neruda: has joined #RubyOnRails
[23:54:00] neruda: Remote host closed the connection

2015-11-09

[22:45:21] neruda: Ping timeout: 246 seconds

2015-11-08

[15:47:51] neruda: has joined #RubyOnRails
[15:52:22] neruda: is there a DRY way to do client side validations in rails 4? I feel like all the js/jquery solutions make me retype the same model validations over and over in the front end

2015-11-02

[03:32:06] neruda: Ping timeout: 246 seconds

2015-11-01

[20:36:41] neruda: has joined #RubyOnRails
[20:37:30] neruda: I would like to validate the presence of all model fields as succintly as possible, is it possible to simply write "validates_presence_of Model.*" or something similar
[20:39:31] neruda: excellent, what does the asterisk at the front mean?
[20:40:11] neruda: i thought splat was for "soaking up" variable parameters

2015-09-14

[18:01:32] neruda: has joined #RubyOnRails
[18:02:32] neruda: hi, anyone have experience with client-side validations? Should I stick to jquery or go for gem (judge/comply/etc)?
[19:39:02] neruda: hi, anyone have experience with client-side validations? Should I stick to jquery or go for gem (judge/comply/client_side_validations)? Any recommendations for bootstrap based project?
[21:26:16] neruda: Ping timeout: 246 seconds

2015-09-08

[14:15:09] neruda: has joined #RubyOnRails
[14:15:58] neruda: hi, trying to DRY up my models by writing a custom validator class for a nested object, all examples online refer to the object being validated as a 'record'
[14:16:22] neruda: my issue is how to access nested attributes of the record, its not a hash, is it?
[14:17:27] neruda: chridal: i was here yesterday asking about a related validation issue: not having to enumerate all the models fields that I want to apply a presence_of test on
[14:19:23] neruda: pwnd_nsfw: I'm not sure tbh, I'm pretty noob, my only issue there is how to reference and chain together the various validation calls for the different child objects, thats why i was favoring a monolithic custom validator for the object
[14:22:43] neruda: mikecmpbll: so lets start at the beginning: is there a way to apply a presence_of validation to *all* attributes of a model without enumerating them all?
[14:23:54] neruda: mikecmpbll: my parent model is big and its seem Railsy to have to repeat the same validation over and over for each attribute
[14:28:16] neruda: Ping timeout: 246 seconds

2015-09-07

[18:54:02] neruda: has joined #RubyOnRails
[18:54:27] neruda: hi, is there a shorthand way to validate *all* fields in a model are present?
[18:54:42] neruda: rather than enumerate all of them with :presence => true
[19:27:37] neruda: Ping timeout: 246 seconds

2015-08-14

[01:52:05] neruda: has joined #RubyOnRails
[01:52:25] neruda: hi, can someone help with strong parameters nested array issue: https://gist.github.com/anonymous/6b2211c4fbc1830fa472
[01:56:59] neruda: has joined #ruby
[01:57:28] neruda: hi, any rails gurus that can help with strong_parameters issue would be greatly appreciated: https://gist.github.com/anonymous/6b2211c4fbc1830fa472
[02:10:08] neruda: hi, can someone help with strong parameters nested array issue: https://gist.github.com/anonymous/6b2211c4fbc1830fa472
[02:12:23] neruda: mwlang: i know, but it feels that way sometimes
[02:12:56] neruda: mwlang: you can see, i certainly did my due diligence on the topic, tried many things
[02:13:54] neruda: mwlang: tried all of these approaches
[02:14:14] neruda: mwlang: including the tap method which circumvents strong+parameters
[02:14:41] neruda: mwlang: i listed that approach in the #variants i tried section of the gist
[02:17:06] neruda: mwlang: permit(:offense=>{{}}
[02:17:16] neruda: is that what youre saying?
[02:19:57] neruda: mwlang: i recognized it was a hash of hashes early on but that didnt get me anywhere, then i read a pat shaughnessy post that said to accept a hash {} pass permit an array []: http://patshaughnessy.net/2014/6/16/a-rule-of-thumb-for-strong-parameters
[02:20:10] neruda: tried his approach and also failed
[02:22:02] neruda: mwlang: you'll notice model names are singular in my code, i disabled pluralization in config/application.rb
[02:22:14] neruda: so its not anything like that
[02:24:08] neruda: yungbasedoptimis: i've found that the definition of noob means different things to different people, i would say this channel is *extremely* friendly
[02:24:50] neruda: but noob doesnt mean, didnt do their due diligence, it means i smashed my frontal lobe against everything google gave me and still came up empty handed, please help
[02:26:12] neruda: for example, i am a complete noob, but I have bought the books and read them (Sometimes twice) and beat the search engines to death and am now here to receive help: https://gist.github.com/anonymous/6b2211c4fbc1830fa472#file-gistfile1-txt-L3-L4
[02:38:15] neruda: yungbasedoptimis: i really liked Rails 4 in Action
[02:38:53] neruda: yungbasedoptimis: railscast still a great place to start
[02:41:08] neruda: sevenseacat: see if you can crack this please: https://gist.github.com/anonymous/6b2211c4fbc1830fa472
[02:43:07] neruda: sevenseacat: dont understand that is the actually permit function
[02:43:38] neruda: sevenseacat: tried that, see the gist, it has a section listing all the variants i tried
[02:45:37] neruda: sevenseacat: havent messed with the haml, not sure what options are open to me in that respect
[02:49:00] neruda: sevenseacat: its huge mate, you may regret it
[02:49:41] neruda: sevenseacat: lol, gimme a sec
[04:45:07] neruda: Quit: Page closed

2015-08-09

[06:28:58] neruda: Ping timeout: 246 seconds

2015-08-08

[16:40:57] neruda: has joined #RubyOnRails
[22:46:09] neruda: hi need help with strong parameters
[22:46:54] neruda: params hash full of data, as soon as model binding starts I get nulls everywhere, i cannot seem to get out of my own way on this one
[22:46:57] neruda: gist coming

2015-08-03

[08:10:43] neruda: Ping timeout: 246 seconds

2015-08-02

[23:10:47] neruda: has joined #RubyOnRails
[23:17:07] neruda: has joined #RubyOnRails
[23:17:07] neruda: Changing host
[23:17:07] neruda: has joined #RubyOnRails
[23:17:07] neruda: Changing host
[23:17:33] neruda: im getting an error on form submission that makes me think form params are being shuffled: https://gist.github.com/anonymous/74a2f845f9fb2808df58
[23:17:39] neruda: can someone take a look and call me an idiot please
[23:18:05] neruda: rhizome: but you wont because you means test
[23:21:12] neruda: strcmp1: feel free to call me an idiot
[23:21:28] neruda: mikecmpbll: you are right, strong params fuckery

2015-07-15

[01:06:00] neruda: has joined #RubyOnRails
[01:10:31] neruda: Client Quit
[01:24:21] neruda: has joined #RubyOnRails
[01:30:13] neruda: question about form binding: for dynamic nested forms, is it necessary to create objects via new or build for each row or is it enough to have a properly constructed params hash when posting the form?
[08:11:55] neruda: Ping timeout: 246 seconds

2015-07-01

[13:27:45] neruda: has joined #RubyOnRails
[21:09:25] neruda: Quit: Page closed

2015-06-13

[01:37:12] neruda: has joined #RubyOnRails
[01:44:34] neruda: what does it really mean to add a product to a "cart"? does it mean storing data into session until POST or building an object? or both?
[02:13:48] neruda: rhizome: i understand, it certainly feels like i need both, but i want to be sure, so is the approach of 1] storing in session 2] bind to object just before POST the "rails way"?
[06:38:31] neruda: Ping timeout: 246 seconds
[16:15:32] neruda: has joined #RubyOnRails
[23:17:46] neruda: Ping timeout: 246 seconds

2015-05-31

[04:12:22] neruda: has joined #RubyOnRails
[04:14:16] neruda: hi when binding nested forms, does rails use Hash of Hashes, Hash of Array or Array of Hashes
[05:00:50] neruda: Quit: Page closed

2015-05-28

[03:05:16] neruda: my question is about how form fields get loaded into the params hash for nested forms with multiple child objects
[03:05:24] neruda: does the params hash need unique index values on the name *and* id attributes of the input? just unique name? just unique id?
[03:05:32] neruda: im adding new form fields by cloning (jquery) fields and replacing name attributes that originally look like "parent[child][0]" with "parent[child][1]"
[03:05:40] neruda: im just wondering if rails needs both the name attribute and id attribute to reflect this nesting or how its parsed
[04:50:55] neruda: Ping timeout: 246 seconds

2015-05-27

[19:50:07] neruda: has joined #RubyOnRails
[19:52:16] neruda: my question is about how form fields get loaded into the params hash for nested forms with multiple child objects
[19:52:50] neruda: does the params hash need unique index values on the name *and* id attributes of the input? just unique name? just unique id?
[19:54:35] neruda: im adding new form fields by cloning (jquery) fields and replacing name attributes that originally look like "parent[child][0]" with "parent[child][1]"
[19:55:53] neruda: im just wondering if rails needs both the name attribute and id attribute to reflect this nesting or how its parsed

2015-05-24

[21:59:53] neruda: has joined #RubyOnRails
[22:02:59] neruda: question about the params hash and nested forms:
[22:03:59] neruda: should the child objects be in a Hash of Arrays or Arrays of Hashes? Not sure which I should be shooting for, also how do i check in the console
[22:10:30] neruda: Etriaph: thanks, i've been trying to make that work but keep getting "ParameterTypeError: expected Hash (got String) for param"
[22:12:28] neruda: Etriaph: as far as form setup i have the form field name attribute as follows: name="model1[model2][][field]"
[22:12:59] neruda: that would be great
[23:43:13] neruda: Ping timeout: 246 seconds

2015-04-28

[00:34:06] neruda: im trying to get nested form objects working with simple form, i keep seeing rendered html of the form A[B][C] when I am trying for something like A[B][ ][C]

2015-04-18

[18:43:51] neruda: hi any simple_form gurus here, I am trying to get simple_form to go from naming a form object A[B][C] to A[B][][C]
[20:45:00] neruda: any simple_form gurus here, I am trying to get simple_form to go from naming a form object A[B][C] to A[B][][C]

2015-03-26

[23:18:25] neruda: hi, when irb gives me back the heap(?) address of a newly created object what is the particular usefulness of that info? Whats the most common use case where thats needed?

2015-02-27

[06:41:17] neruda: hi im appending a new tab and content to a form, i can *see* the new tab and fields but they are not present when I click "view source"...rails app using bootstrap and simple form, ideas?
[06:47:13] neruda: sevenseacat: thx. i also have the debugger window open in chrome and it isnt showing the newly appended elements either, am i doing this wrong? expecting too much/
[06:49:26] neruda: https://gist.github.com/anonymous/892ee034c577b3736061
[06:49:35] neruda: if anyone cares to see my ignorance
[06:51:12] neruda: sevenseacat: that was last minute addition after dredging stack overflow, it was broke before that
[06:52:30] neruda: ok so, the form fields are still appearing on the first tab body even though the alerts i have inserted in the middle show the id's being update to new tab id
[06:52:47] neruda: basically i am appending to first tab body no matter what
[06:53:07] neruda: also im paranoid that my turbolinks ignorance is thwarting me
[06:53:26] neruda: and youve told me im using my debugger all wrong, so im thinking its time to call it
[06:53:48] neruda: form fields are the div thats been cloned
[06:55:05] neruda: did you just come back from Carnival?

2015-02-11

[22:29:00] neruda: im confused about how rails 4 associates a particular coffeescript file (created using generator) with a particular view
[22:29:46] neruda: if i have a partial containing elements that i want to have js controls for, do i put the js in the parents coffeescript file or the partials?
[22:31:47] neruda: so if i have a partial called _helloWorld, should I name the coffeescript file with the leading underscore? or does it not matter

2015-02-08

[20:05:38] neruda: hi, do i have to "build" a corresponding object for each section of a complex nested form, or does nested attributes in the model make that unnecessary

2015-01-25

[07:10:10] neruda: hi, would turbolinks cause javascript form controls to stop working on cloned or otherwise duplicated (append(render :partial "blah")) parts of a page?
[07:11:42] neruda: sevenseacat: just run of the mill datetimepicker and multiselect, verified that cloned elements have unique ids but cant get cloned js to fire onclick
[07:12:53] neruda: sevenseacat: gr8 b8 m8 8/8
[07:13:12] neruda: you mean WAT?

2015-01-05

[00:04:24] neruda: Radar: thanks for checking back with me, im still shaky on :child_index because StackOverflow and various blog posts make it seem deprecated in favor of "index"
[00:04:37] neruda: but no official word from the api docs to settle the matter
[00:04:55] neruda: Radar: haha
[00:05:00] neruda: didnt realize
[00:05:20] neruda: Rails 4 in Action, 2e, Manning Press
[00:05:24] neruda: great book
[00:05:36] neruda: really love the stuff that comes out of Manning
[00:07:07] neruda: Radar: is :child_index deprecated in favor of :index?
[00:07:28] neruda: yeah the api docs are silent on this option

2015-01-04

[18:31:27] neruda: hi, im looking for info on :child_index option for fields_for, Rails 4 in Action 2e, has literally one sentence after a code block where its used and nothing else, google hasnt yielded much either

2014-11-15

[00:44:45] neruda: anyone experienced with cocoon or nested_form gems?
[00:45:42] neruda: hnanon: what version of rails?
[00:46:30] neruda: hnanon: sounds like you are a little further along than me
[00:46:47] neruda: i cant get it integrated properly enough to even render
[00:47:18] neruda: i am most likely misusing the gem, but without knowing better its hard to say
[00:47:59] neruda: i am trying to get the gem to add bootstrap tabs to a form, some controls on the dynamic tabs have javascript
[00:48:23] neruda: sure, one sec i'll cook up a gist
[00:52:41] neruda: skyjumper: at the moment, (still throwing gist together), know matter how closely I follow the examples online, I either get "undefined method" on the link_to_add_association, or "undefined local variable" on the form builder rendering the partial fields
[00:54:46] neruda: hnanon: yes, inside the partial with the repeated fields
[00:54:54] neruda: at the top of that file specifically
[00:57:54] neruda: hnanon: yes
[00:58:07] neruda: skyjumper, hnanon: https://gist.github.com/anonymous/7bc03f39727c6bbcb340
[01:01:55] neruda: hnanon: sharp eye, i overrode the plurality setting, i like singular names (weird i know)
[01:03:37] neruda: weaksauce: lol
[01:04:43] neruda: hnanon, skyjumper: so lets say hypothetical the two of you were the author of cocoon and nested_form respectively (nathanvda and ryan bates), i would ask the following:
[01:05:03] neruda: 1] are either of the these truly rails4 compatible?
[01:05:38] neruda: 2] do they handle dynamically adding the javascript controls for the associated partials (if not how do we do that)?
[01:06:09] neruda: 3] what are the hard and fast requirements for markup (can i use bootstrap? does it matter where I put the add/delete links)
[01:06:36] neruda: skyjumper: lol to your Q1
[01:07:00] neruda: hnanon: thats a constraint that should be in the readme or the issues listed on the repo, I will check again
[01:09:08] neruda: hnanon, skyjumper: what are your opinions on the dynamic javascript controls, if they are in the partial they should be "cloned" (airquotes because that name has a specific meaning in jQuery)
[01:11:51] neruda: hnanon: yeah, i wonder what other requirements are intuitive/implicit
[01:11:59] neruda: those i am familiar with
[01:14:39] neruda: hnanon: i guess im sol if i want to put the link elsewhere in the markup, i feel the UI mandates i have push me toward putting the link at the top of the screen with the fields below
[01:16:02] neruda: hnanon: can nested/dynamic forms be done without using these gems, i dont like the constraints
[01:18:57] neruda: hnanon: thx, i thought that one was rails3 only but as we can see above i dont read too close =)
[01:20:49] neruda: hnanon: looks legit, but no demo proj and docs are short...wish me luck

2014-11-03

[23:42:33] neruda: hi nested forms question for rails4: If I can handle the view markup with jQuery, do I need to use gems like cocoon/nested_form at all?

2014-10-23

[19:38:52] neruda: hi I have a partial I would like to render an arbitrary number of times and was wondering if there was a common sense way to get unique identifiers for the javascript controls in the partial so repeated fields dont share controls and cause problems

2014-10-22

[14:06:07] neruda: any help appreciated