idiocrash

Activity Graph

Page 1 of 2 | Next »

2018-11-17

[06:16:02] idiocrash: has joined #ruby
[06:28:18] idiocrash: Read error: Connection reset by peer
[06:29:03] idiocrash: has joined #ruby
[06:34:00] idiocrash: has joined #ruby
[06:35:52] idiocrash: Ping timeout: 268 seconds
[06:43:19] idiocrash: has joined #ruby
[06:46:18] idiocrash: Ping timeout: 245 seconds
[06:46:24] idiocrash: has joined #ruby
[06:49:48] idiocrash: Ping timeout: 244 seconds
[07:24:27] idiocrash: Ping timeout: 240 seconds
[07:28:41] idiocrash: has joined #ruby
[08:12:04] idiocrash: Read error: Connection reset by peer
[08:26:04] idiocrash: has joined #ruby
[08:32:13] idiocrash: Read error: Connection reset by peer

2018-11-09

[05:14:08] idiocrash: has joined #ruby
[05:36:03] idiocrash: has joined #ruby
[05:38:23] idiocrash: Ping timeout: 244 seconds
[05:45:44] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-11-03

[03:34:08] idiocrash: has joined #ruby
[09:33:32] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:26:43] idiocrash: has joined #ruby
[20:07:19] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2018-10-23

[05:46:56] idiocrash: has joined #ruby
[07:02:55] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-10-04

[07:30:28] idiocrash: has joined #ruby
[07:42:04] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-09-20

[08:50:50] idiocrash: has joined #ruby
[09:09:07] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2018-09-19

[04:55:50] idiocrash: has joined #ruby
[07:52:03] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-09-13

[01:49:38] idiocrash: has joined #ruby
[04:46:29] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[04:47:21] idiocrash: has joined #ruby
[07:09:58] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-09-08

[02:03:23] idiocrash: has joined #ruby
[07:38:29] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:20:18] idiocrash: has joined #ruby
[16:32:04] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-09-05

[05:00:04] idiocrash: has joined #ruby
[06:28:15] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-09-02

[03:34:50] idiocrash: Quit: Textual IRC Client: www.textualapp.com
[05:27:06] idiocrash: has joined #ruby
[08:18:39] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:46:09] idiocrash: has joined #ruby
[19:18:56] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2018-09-01

[03:31:45] idiocrash: has joined #ruby
[06:49:18] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[15:59:55] idiocrash: has joined #ruby

2018-05-29

[02:46:56] idiocrash: *.net *.split
[02:47:55] idiocrash: has joined #ruby
[02:50:07] idiocrash: *.net *.split
[02:51:44] idiocrash: has joined #ruby
[08:12:58] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[15:20:21] idiocrash: has joined #ruby
[15:32:00] idiocrash: Read error: Connection reset by peer
[16:31:54] idiocrash: has joined #ruby
[17:21:28] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2018-05-28

[00:23:24] idiocrash: Read error: Connection reset by peer
[00:58:43] idiocrash: has joined #ruby
[07:23:13] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:55:46] idiocrash: has joined #ruby

2018-05-27

[06:01:49] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[08:17:12] idiocrash: has joined #ruby
[09:18:28] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:06:20] idiocrash: has joined #ruby

2018-05-26

[05:48:23] idiocrash: has joined #ruby
[06:27:20] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:12:16] idiocrash: has joined #ruby

2018-03-22

[05:39:08] idiocrash: has joined #ruby
[07:26:47] idiocrash: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2018-03-04

[20:24:03] idiocrash: has joined #ruby
[20:56:49] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2017-11-19

[19:08:24] idiocrash: has joined #ruby
[19:18:46] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2017-10-17

[07:09:54] idiocrash: has joined #ruby
[14:58:16] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2017-10-13

[08:16:17] idiocrash: has joined #ruby
[09:34:16] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2017-10-06

[06:53:42] idiocrash: has joined #ruby
[07:30:58] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2017-10-05

[05:43:00] idiocrash: has joined #ruby
[06:25:57] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2016-06-13

[03:28:44] idiocrash: Quit: Textual IRC Client: www.textualapp.com

2016-06-12

[18:11:04] idiocrash: has joined #ruby
[18:12:10] idiocrash: Max SendQ exceeded
[18:12:41] idiocrash: has joined #ruby

2015-07-19

2015-07-18

[02:31:35] idiocrash: has joined #ruby
[05:26:23] idiocrash: Read error: Connection reset by peer
[05:26:23] idiocrash: has joined #ruby
[05:29:43] idiocrash: Read error: Connection reset by peer
[05:29:43] idiocrash: has joined #ruby
[05:30:33] idiocrash: Read error: Connection reset by peer
[05:30:47] idiocrash: has joined #ruby
[17:02:37] idiocrash: Remote host closed the connection
[18:18:48] idiocrash: has joined #ruby

2015-07-17

[07:15:11] idiocrash: has joined #ruby

2015-07-16

[01:27:03] idiocrash: has joined #ruby

2015-07-12

2015-07-11

[03:55:26] idiocrash: has joined #ruby
[05:00:56] idiocrash: has joined #ruby
[05:45:33] idiocrash: has joined #ruby
[05:58:35] idiocrash: Quit: Textual IRC Client: www.textualapp.com
[06:54:57] idiocrash: has joined #ruby
[21:03:44] idiocrash: has joined #ruby
[21:48:20] idiocrash: Remote host closed the connection
[21:48:38] idiocrash: has joined #ruby

2015-07-06

[05:27:25] idiocrash: Remote host closed the connection

2015-07-04

[00:05:39] idiocrash: Remote host closed the connection
[01:06:11] idiocrash: has joined #ruby
[04:49:29] idiocrash: Ping timeout: 250 seconds
[05:29:06] idiocrash: has joined #ruby

2015-07-03

[21:09:54] idiocrash: has joined #ruby
[22:30:14] idiocrash: Remote host closed the connection
[23:30:47] idiocrash: has joined #ruby
[23:32:49] idiocrash: Remote host closed the connection
[23:32:57] idiocrash: has joined #ruby

2015-06-29

[06:03:54] idiocrash: has joined #ruby
[06:47:47] idiocrash: Quit: Textual IRC Client: www.textualapp.com
[06:48:05] idiocrash: has joined #ruby
[06:48:06] idiocrash: Client Quit

2015-06-13

[04:19:47] idiocrash: has joined #ruby
[04:20:32] idiocrash: Client Quit

2015-02-07

2014-10-25

[02:15:33] idiocrash: howdy doody
[02:16:11] idiocrash: say, is there a way to dynamically load a partial depending on user form selection?

2014-10-23

[20:30:47] idiocrash: Hi guys, using AR validations in Rails 4, is there a way to validate the presence of one thing OR another thing?
[20:31:00] idiocrash: basically, if one thing is present, the other doesn't matter
[20:33:54] idiocrash: tubbo: hmm.... custom validations?
[20:40:50] idiocrash: thanks dewdz

2014-10-22

[20:40:21] idiocrash: I'm using simple_form. I'd like to break out my f.association checkboxes out by headings. is this possible in simple_form?
[22:46:13] idiocrash: I'm using simple_form. I'd like to break out my f.association checkboxes out by headings. is this possible in simple_form?

2014-10-21

[01:34:57] idiocrash: hi, trying to get bootstrap and simple form up and going.
[01:35:29] idiocrash: simpleform has been integrated and generates forms when I run rails g scaffold [my object]
[01:35:40] idiocrash: I also have bootstrap loading in the browser
[01:35:53] idiocrash: however, simple form doesn't seem to be respecting bootstrap
[01:36:01] idiocrash: no bootstrap styles are being applied
[01:36:42] idiocrash: In my simple_form_for, I do have html: { class: 'form-horizontal' }, but doesn't do anything
[01:37:37] idiocrash: I'm trying to get to this: http://simple-form-bootstrap.plataformatec.com.br
[01:38:15] idiocrash: I sure haven't
[01:39:50] idiocrash: https://gist.github.com/jrsims/7f2da029e65bbee48ffb
[01:40:00] idiocrash: that's my simpleform

2014-10-13

[00:03:31] idiocrash: webdestroya: https://gist.github.com/anonymous/bfccb54f4859c539b7e8
[00:05:01] idiocrash: no, event sub type is a drop-down select menu in my 'New' event form
[00:05:21] idiocrash: although i definitely do select an item from the list, the form returns with event_sub_type as 'can't be blank'
[00:05:35] idiocrash: and it sure as hell is not blank
[00:06:46] idiocrash: webdestroya: how
[00:07:39] idiocrash: psh, that is leftover from a previous model
[00:07:45] idiocrash: GOD FUCKEN DAMMIT
[00:07:48] idiocrash: Ok, thats the issue
[00:07:51] idiocrash: thanks a lot dude
[02:02:03] idiocrash: webdestroya:
[02:04:16] idiocrash: webdestroya: hey, so... I'm finally ready to tackle my complex form. I was kinda hoping you could give me some pointers. Still using simple_form and what I have is a one-to-many relationship between Events and Contexts via EventContexts. In my new Event form, I wanted to extend it to show a bunch of checkboxes for all of the possible Contexts. User clicks however many checkboxes and each checked box means a row saved in EventC
[02:04:55] idiocrash: so I put that in my Event model already
[02:05:12] idiocrash: accepts_nested_attributes_for :event_contexts
[02:06:22] idiocrash: I have @contexts = Context.all. For my options
[02:06:48] idiocrash: ok, one thing.. what is the .build method?
[02:09:21] idiocrash: I'm doing this in 'new' in my controller?
[02:11:33] idiocrash: so the list of checkboxes should be from all records currently in Contexts
[02:11:49] idiocrash: I want to display all options
[02:12:04] idiocrash: and then the user can check all the applicable boxes
[02:12:55] idiocrash: when returning to the 'edit' form later, all the checkboxes are shown, but only the saved EventContext records will be checked
[02:13:17] idiocrash: one Event has many EventContexts
[02:14:29] idiocrash: So there are Events. There are Contexts. EventContext is a table with event_id and context_id
[02:16:36] idiocrash: most info is at the Event level
[02:16:48] idiocrash: well, thing is, I want to be able to add options all the time
[02:17:10] idiocrash: so rather than implement attributes at the event level, I figured store it vertically
[02:17:15] idiocrash: via EventContexts
[02:17:58] idiocrash: Event has a label and start/end time
[02:18:13] idiocrash: but, the "scope" of the event is defined via the Contexts it has
[02:18:25] idiocrash: An Event can have one, or many, Contexts
[02:18:50] idiocrash: ....and these are defined by EventContexts
[02:19:12] idiocrash: ...does that make any more sense?
[02:20:20] idiocrash: yes, the has_many through you mentioned is what I have
[02:21:38] idiocrash: that might make more sense
[02:22:32] idiocrash: how would HABTM be implemented?
[02:22:38] idiocrash: same tables?
[02:22:52] idiocrash: different AR associations?
[02:24:20] idiocrash: ok, then how would the form look?
[02:24:26] idiocrash: I am using simple_form
[02:26:50] idiocrash: so here's what I'm kinda stuck on
[02:26:59] idiocrash: listing all possible options as checkboxes
[02:27:14] idiocrash: not just the ones that were checked last time
[03:00:41] idiocrash: sevenseacat: still there? I created a new app to test this in
[03:01:11] idiocrash: sevenseacat: at this time, inside a simple_form_for @event... I have f.association :contexts
[03:01:34] idiocrash: it renders a list box with 3 hexadecimal values for each of the 3 context records I created
[03:02:33] idiocrash: Now I get... No input found for checkboxes
[03:03:52] idiocrash: alright, so now I can check the boxes
[03:05:18] idiocrash: ...but not saving in contexts_events
[03:05:43] idiocrash: perhaps this is due to the issue webdestroya helped me with earlier, with strong_params
[03:05:45] idiocrash: checking...
[03:06:13] idiocrash: ok, so I have to permit on a new model
[03:08:02] idiocrash: params.require(:contexts_events).permit(:event_id,:context_id)
[03:08:08] idiocrash: makes sense?
[03:10:01] idiocrash: ok, so I restarted with strong_params errors on, and I got this: found unpermitted parameters: context_ids
[03:10:20] idiocrash: so I just did this line in event controller: found unpermitted parameters: context_ids
[03:10:23] idiocrash: still no go
[03:11:04] idiocrash: https://gist.github.com/anonymous/d3f9148f97d8dabd139b
[03:11:38] idiocrash: webdestroya: new app completely, just for this test case
[03:16:14] idiocrash: dah, so not sure why this doesn't fix me: params.require(:event).permit(:label, :context_ids)
[03:16:27] idiocrash: error message is: found unpermitted parameters: context_ids
[03:17:14] idiocrash: so I come from Rails 2
[03:18:11] idiocrash: webdestroya: yeah, learning that
[03:18:35] idiocrash: more to think about htough
[03:18:47] idiocrash: but that array fix worked
[03:18:52] idiocrash: I never would have worked out the syntax
[03:19:15] idiocrash: context_ids:[] <-- this is alien to me
[03:19:34] idiocrash: is that a ruby thing that I just never learned?
[03:20:29] idiocrash: well, this solution is working! hooray!
[03:20:47] idiocrash: thanks a lot webdestroya and sevenseacat
[03:47:33] idiocrash: is there a handy way to sort AR collections by a virtual attribute I define inside the model?
[03:47:40] idiocrash: like 'custom_label'

2014-10-12

[19:38:04] idiocrash: hey so I have 'Events' and 'EventCountry' models. An Event can have multiple EventCountries. I want to create a complex form in which - for a given event - a user can tick checkboxes for each of the countries the event applies to. The list of country options attached to a given will be determined by how many EventCountry records are currently in the DB.
[19:38:10] idiocrash: How do I go about creating this complex form?
[19:39:37] idiocrash: thats a form generator?
[19:40:23] idiocrash: webdestroya: yep, thats what I need to do
[19:40:46] idiocrash: so actually, there needs to be 3 models: Event, Country, EventCountry
[22:52:13] idiocrash: alright, this is fuckin ridiculous
[22:52:37] idiocrash: simple_form_for keeps shitting out "can't be blank" for an attribute that is definitely not blank
[22:52:49] idiocrash: anyone run into this before?
[23:41:18] idiocrash: simple_form sucks so bad
[23:42:31] idiocrash: how is it that for records created manually via rails console, simple_form will load the correct collection item into the 'edit' form, but won't save any changes back through that same form
[23:45:09] idiocrash: how do I even check that
[23:57:23] idiocrash: alright, I'm about to toss this app out the fuckin window
[23:57:43] idiocrash: I can even SEE the correct value being passed to AR via console output
[23:57:57] idiocrash: so why the hell doesn't Simpleform know that it is passing this

2014-09-11

[17:33:33] idiocrash: hi guys, I'm on Rails 4.1 and looking for the best gem for tagging records
[17:34:20] idiocrash: has a "standard" gem for tagging emerged?
[18:22:50] idiocrash: Trying to use bootstrap with rails 4.1
[18:23:00] idiocrash: am i right to be using the bootstrap-sass gem?