wilsonc91

Activity Graph

Page 1 of 2 | Next »

2016-06-28

[00:11:23] wilsonc91: has joined #RubyOnRails
[00:11:23] wilsonc91: has joined #ruby
[01:27:45] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[13:07:12] wilsonc91: has joined #RubyOnRails
[13:07:12] wilsonc91: has joined #ruby
[14:39:54] wilsonc91: Ping timeout: 276 seconds

2016-06-27

[13:15:46] wilsonc91: has joined #RubyOnRails
[13:15:46] wilsonc91: has joined #ruby
[13:44:17] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[13:44:40] wilsonc91: has joined #RubyOnRails
[13:44:40] wilsonc91: has joined #ruby
[16:01:07] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[16:27:45] wilsonc91: has joined #RubyOnRails
[16:27:45] wilsonc91: has joined #ruby
[19:33:32] wilsonc91: Ping timeout: 272 seconds
[20:23:29] wilsonc91: has joined #RubyOnRails
[20:23:29] wilsonc91: has joined #ruby
[20:24:15] wilsonc91: Client Quit
[20:26:05] wilsonc91: has joined #RubyOnRails
[20:26:05] wilsonc91: has joined #ruby
[21:36:24] wilsonc91: Ping timeout: 272 seconds
[21:44:47] wilsonc91: has joined #RubyOnRails
[21:44:47] wilsonc91: has joined #ruby
[22:11:09] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[22:43:40] wilsonc91: has joined #RubyOnRails
[22:43:40] wilsonc91: has joined #ruby
[22:46:10] wilsonc91: Client Quit

2016-06-24

[17:20:01] wilsonc91: has joined #RubyOnRails
[17:20:01] wilsonc91: has joined #ruby
[23:43:00] wilsonc91: Ping timeout: 276 seconds

2016-06-15

[02:12:11] wilsonc91: has joined #ruby
[02:12:12] wilsonc91: has joined #RubyOnRails
[02:42:17] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[13:34:53] wilsonc91: has joined #RubyOnRails
[13:34:53] wilsonc91: has joined #ruby
[14:04:36] wilsonc91: Quit: Textual IRC Client: www.textualapp.com
[17:46:02] wilsonc91: has joined #RubyOnRails
[17:46:02] wilsonc91: has joined #ruby
[17:46:35] wilsonc91: If i have an array of objects is there a good way of obtaining the object that has the max of a value? ie, arrayofobjects.max(:field)
[17:47:48] wilsonc91: Rails models
[17:59:24] wilsonc91: has joined #RubyOnRails
[17:59:24] wilsonc91: has joined #ruby
[17:59:54] wilsonc91: Ping timeout: 246 seconds
[18:08:14] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[18:09:45] wilsonc91: has joined #RubyOnRails
[18:09:45] wilsonc91: has joined #ruby
[18:12:09] wilsonc91: Client Quit
[18:13:01] wilsonc91: has joined #RubyOnRails
[18:13:01] wilsonc91: has joined #ruby
[18:15:27] wilsonc91: Client Quit
[18:16:44] wilsonc91: has joined #ruby
[18:16:45] wilsonc91: has joined #RubyOnRails
[18:20:27] wilsonc91: Client Quit
[18:36:13] wilsonc91: has joined #RubyOnRails
[18:36:13] wilsonc91: has joined #ruby
[18:41:45] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[18:46:11] wilsonc91: has joined #RubyOnRails
[18:46:11] wilsonc91: has joined #ruby
[18:50:36] wilsonc91: Client Quit
[18:56:01] wilsonc91: has joined #RubyOnRails
[18:56:01] wilsonc91: has joined #ruby
[18:58:35] wilsonc91: Client Quit
[19:09:59] wilsonc91: has joined #RubyOnRails
[19:09:59] wilsonc91: has joined #ruby
[19:13:52] wilsonc91: Client Quit
[19:20:15] wilsonc91: has joined #RubyOnRails
[19:20:15] wilsonc91: has joined #ruby
[20:56:48] wilsonc91: Quit: Textual IRC Client: www.textualapp.com

2016-06-07

[13:32:02] wilsonc91: has joined #RubyOnRails
[13:32:02] wilsonc91: has joined #ruby
[13:36:03] wilsonc91: I want to do something along the lines of Account.where(configuration_key: "au").map &:Store to get a list of stores based on a condition on the account, but map returns an array instead of an active record relation. Is there anyway to get an active record relation instead ?
[13:43:47] wilsonc91: I need to pass it into something that expects an AR relationship
[15:41:03] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[17:12:35] wilsonc91: has joined #RubyOnRails
[17:12:35] wilsonc91: has joined #ruby
[17:28:26] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[18:00:00] wilsonc91: has joined #RubyOnRails
[18:00:00] wilsonc91: has joined #ruby
[18:02:46] wilsonc91: Client Quit
[18:59:15] wilsonc91: has joined #RubyOnRails
[18:59:15] wilsonc91: has joined #ruby
[20:35:48] wilsonc91: Quit: Textual IRC Client: www.textualapp.com

2016-06-06

[13:14:26] wilsonc91: has joined #RubyOnRails
[13:14:26] wilsonc91: has joined #ruby
[13:48:59] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[13:49:20] wilsonc91: has joined #RubyOnRails
[13:49:20] wilsonc91: has joined #ruby
[13:56:02] wilsonc91: Read error: Connection reset by peer

2016-06-03

[14:09:47] wilsonc91: has joined #RubyOnRails
[14:09:47] wilsonc91: has joined #ruby
[14:10:48] wilsonc91: Hey guys, quick question: I want to do a .where clause on an object, as well as check for the presence of a relation. So, I have say Person.where(Name: 'bob) and I also want to check that Person.family_member.sister exists for that person. What's the best way of doing this?
[15:06:23] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[17:23:03] wilsonc91: has joined #RubyOnRails
[17:23:03] wilsonc91: has joined #ruby
[18:00:07] wilsonc91: Hey guys I have list of objects with a 1:1 relation to another object. so articles -> category. Could I convert the list of articles directly to a list of categories?
[18:03:17] wilsonc91: Can i do that from activerecord_relation?
[19:07:31] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[20:00:23] wilsonc91: has joined #RubyOnRails
[20:00:23] wilsonc91: has joined #ruby
[20:01:03] wilsonc91: Client Quit

2016-05-20

[00:13:36] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[01:12:11] wilsonc91: has joined #RubyOnRails
[01:12:11] wilsonc91: has joined #ruby
[01:18:12] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[01:20:22] wilsonc91: has joined #ruby
[01:20:23] wilsonc91: has joined #RubyOnRails
[01:21:35] wilsonc91: Client Quit
[01:22:50] wilsonc91: has joined #RubyOnRails
[01:22:50] wilsonc91: has joined #ruby
[02:20:06] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…

2016-05-19

[13:14:12] wilsonc91: has joined #ruby
[13:14:13] wilsonc91: has joined #RubyOnRails
[14:38:51] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[14:40:33] wilsonc91: has joined #RubyOnRails
[14:40:33] wilsonc91: has joined #ruby
[16:28:42] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[16:56:49] wilsonc91: has joined #RubyOnRails
[16:56:49] wilsonc91: has joined #ruby
[17:45:32] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz…
[17:49:16] wilsonc91: has joined #RubyOnRails
[17:49:16] wilsonc91: has joined #ruby
[22:25:06] wilsonc91: Ping timeout: 246 seconds
[23:35:34] wilsonc91: has joined #RubyOnRails
[23:35:34] wilsonc91: has joined #ruby

2016-05-18

[20:29:03] wilsonc91: has joined #RubyOnRails
[20:29:03] wilsonc91: has joined #ruby
[20:33:47] wilsonc91: Should an inclusion validation allow empty strings?
[20:33:52] wilsonc91: Mine seems to be allowing them
[20:39:30] wilsonc91: validates :average_payment, inclusion: AVERAGE_PAYMENT_KEY.values, allow_nil: false, allow_blank: false
[20:39:37] wilsonc91: The inclusion validation works if i pass it nonsense
[20:39:43] wilsonc91: but if i pass it empty string it doesn't
[21:51:44] wilsonc91: Ping timeout: 260 seconds

2016-05-17

[12:53:12] wilsonc91: has joined #RubyOnRails
[12:53:12] wilsonc91: has joined #ruby
[13:44:59] wilsonc91: Quit: Textual IRC Client: www.textualapp.com

2016-05-16

[22:14:14] wilsonc91: has joined #RubyOnRails
[22:14:14] wilsonc91: has joined #ruby
[22:14:16] wilsonc91: Client Quit
[22:14:33] wilsonc91: has joined #RubyOnRails
[22:14:33] wilsonc91: has joined #ruby
[22:15:22] wilsonc91: Kind of a dumb question - I have a model, and I'd like to include it in a module to use a fucntion on it. Is it as simple as doing include modelName?
[22:35:13] wilsonc91: Ping timeout: 252 seconds

2016-04-18

[21:53:22] wilsonc91: has joined #ruby
[21:53:23] wilsonc91: has joined #RubyOnRails

2016-04-11

[00:35:54] wilsonc91: has joined #RubyOnRails
[00:36:15] wilsonc91: Hey guys, im using rails-api, how do i add something like a filter param?
[01:43:44] wilsonc91: What linter do you guys use for rails? Rubocop?
[02:37:52] wilsonc91: Ping timeout: 250 seconds

2016-04-10

[18:59:14] wilsonc91: has joined #RubyOnRails
[18:59:33] wilsonc91: Hey guys, if I'm starting a new project today and im fairly new to RoR, should I start with 4 or use the 5 beta?
[19:15:36] wilsonc91: Anyone know why all my rails g commands hang when I create a new rails project? Seems like somethings wonky with my setup.
[19:33:32] wilsonc91: I'll give that a shot thanks
[19:35:36] wilsonc91: Anyone using rails on OSX? having some issues doing gem install: ERROR: While executing gem ... (Errno::EACCES)
[19:46:53] wilsonc91: should i uninstall ruby first?
[19:46:57] wilsonc91: Before following those instructions
[19:48:59] wilsonc91: ruby is /opt/boxen/rbenv/shims/ruby ruby is /opt/boxen/rbenv/shims/ruby ruby is /usr/bin/ruby
[19:49:02] wilsonc91: was in the process of trying rbenv
[19:52:49] wilsonc91: Okay, is chruby better?
[19:53:17] wilsonc91: should i remove it from my boxen dir?
[19:59:40] wilsonc91: That worked, thanks :)
[20:08:27] wilsonc91: Quit: Page closed
[22:48:14] wilsonc91: has joined #RubyOnRails
[22:48:36] wilsonc91: Could someone help me with something? I generated a model that is basically a page, and it can have multiple categories assigned to it
[22:48:47] wilsonc91: Is the appropriate thing to just do has_many :categories in the model for my page?
[22:48:56] wilsonc91: Do I need to do the opposite relationship in page?
[23:47:34] wilsonc91: Ping timeout: 250 seconds

2015-11-30

[00:11:24] wilsonc91: has joined #RubyOnRails
[00:12:14] wilsonc91: Am I doing something obviously wrong for looping? testscripts.each do |file_num, file|, testscripts is an ActionController::parameters
[00:15:50] wilsonc91: Test_scripts has items in int, but for some reason its skipping the do part when i run my debugger
[00:16:32] wilsonc91: http://pastie.org/10590676
[00:22:38] wilsonc91: I'm running it through a debugger. testscripts does indeed have a value
[00:23:27] wilsonc91: Testscripts: {0: {'seq_num" => 0 , ...
[01:18:30] wilsonc91: Quit: http://www.mibbit.com ajax IRC Client

2015-11-24

[00:18:37] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???

2015-11-23

[01:11:02] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[02:07:59] wilsonc91: has joined #RubyOnRails
[02:07:59] wilsonc91: has joined #ruby
[05:11:07] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[13:24:30] wilsonc91: has joined #RubyOnRails
[13:24:30] wilsonc91: has joined #ruby
[14:32:56] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[14:34:56] wilsonc91: has joined #RubyOnRails
[14:34:56] wilsonc91: has joined #ruby
[14:39:45] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[14:41:17] wilsonc91: has joined #RubyOnRails
[14:41:17] wilsonc91: has joined #ruby
[14:42:24] wilsonc91: Client Quit
[14:43:43] wilsonc91: has joined #RubyOnRails
[14:43:43] wilsonc91: has joined #ruby
[16:27:24] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[20:01:09] wilsonc91: has joined #RubyOnRails
[20:01:09] wilsonc91: has joined #ruby
[21:03:50] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[23:03:55] wilsonc91: has joined #ruby
[23:03:57] wilsonc91: has joined #RubyOnRails
[23:36:01] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[23:46:00] wilsonc91: has joined #ruby
[23:46:10] wilsonc91: has joined #RubyOnRails

2015-11-22

[22:07:10] wilsonc91: has joined #RubyOnRails
[22:07:10] wilsonc91: has joined #ruby
[22:07:36] wilsonc91: Could someone help me with this? New to ruby, getting a undefined method `[]=' for nil:NilClass http://pastebin.com/82XafLJK
[22:07:38] wilsonc91: Could someone help me with this? New to ruby, getting a undefined method `[]=' for nil:NilClass http://pastebin.com/82XafLJK
[22:09:53] wilsonc91: can i make it not single-depth?
[22:10:31] wilsonc91: Awesome, thanks!
[22:11:15] wilsonc91: hmm ok, whats the difference between : and without it? Still a bit confused about that
[22:12:36] wilsonc91: so :file_num would literally be 'file_num'?
[22:13:53] wilsonc91: okay thnaks :)
[22:44:04] wilsonc91: Could use a hand again :3 http://pastie.org/10574753 Getting a syntax error on line 10 saying it excepts a ':' I basically want to check if theres an existing file with this filename already before creating it
[22:57:29] wilsonc91: sorry still having issue with there where? thing. I just want to check if a file doesn't exist
[23:01:45] wilsonc91: actually figured it out, thanks :)
[23:24:22] wilsonc91: Hi, im having issue with rendering a form: It's just showing up as [] http://pastie.org/10574812

2015-11-20

[01:11:53] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[01:41:55] wilsonc91: has joined #RubyOnRails
[01:41:55] wilsonc91: has joined #ruby
[02:37:18] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[03:58:10] wilsonc91: has joined #RubyOnRails
[03:58:10] wilsonc91: has joined #ruby
[03:59:53] wilsonc91: Client Quit

2015-11-19

[17:37:15] wilsonc91: has joined #ruby
[17:37:16] wilsonc91: has joined #RubyOnRails
[19:42:35] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[21:29:53] wilsonc91: has joined #ruby
[21:29:54] wilsonc91: has joined #RubyOnRails
[21:45:30] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[22:40:34] wilsonc91: has joined #ruby
[22:40:35] wilsonc91: has joined #RubyOnRails
[23:09:44] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[23:33:48] wilsonc91: has joined #RubyOnRails
[23:33:48] wilsonc91: has joined #ruby

2015-11-18

[13:46:13] wilsonc91: has joined #RubyOnRails
[13:46:13] wilsonc91: has joined #ruby
[14:43:29] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[14:55:33] wilsonc91: has joined #RubyOnRails
[14:55:33] wilsonc91: has joined #ruby
[16:26:53] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[16:29:48] wilsonc91: has joined #RubyOnRails
[16:29:48] wilsonc91: has joined #ruby
[17:23:32] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[18:59:07] wilsonc91: has joined #RubyOnRails
[18:59:07] wilsonc91: has joined #ruby
[21:17:32] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???
[21:34:57] wilsonc91: has joined #RubyOnRails
[21:34:57] wilsonc91: has joined #ruby
[22:02:39] wilsonc91: Quit: My Mac has gone to sleep. ZZZzzz???