godzillaenlacasa

Activity Graph

Page 1 of 3 | Next »

2016-06-06

[11:59:34] godzillaenlacasa: has joined #RubyOnRails
[12:30:15] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-06-05

[11:59:39] godzillaenlacasa: has joined #RubyOnRails

2016-06-04

[11:59:35] godzillaenlacasa: has joined #RubyOnRails

2016-06-03

[15:52:33] godzillaenlacasa: has joined #RubyOnRails
[19:06:28] godzillaenlacasa: Quit: Computer has gone to sleep.
[20:59:31] godzillaenlacasa: has joined #RubyOnRails

2016-05-26

[01:22:21] godzillaenlacasa: has joined #RubyOnRails
[05:15:34] godzillaenlacasa: Quit: Computer has gone to sleep.
[11:59:33] godzillaenlacasa: has joined #RubyOnRails
[12:06:19] godzillaenlacasa: has joined #RubyOnRails
[12:24:53] godzillaenlacasa: Quit: Computer has gone to sleep.
[13:22:52] godzillaenlacasa: has joined #RubyOnRails
[14:42:15] godzillaenlacasa: Quit: Computer has gone to sleep.
[14:46:26] godzillaenlacasa: has joined #RubyOnRails
[15:18:06] godzillaenlacasa: Quit: Computer has gone to sleep.
[21:55:51] godzillaenlacasa: has joined #RubyOnRails
[22:11:41] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-05-25

[13:28:59] godzillaenlacasa: has joined #RubyOnRails
[13:29:28] godzillaenlacasa: is there a way to put Sidekiq in verbose mode? I'm trying to run a job, and the console isn't kicking back any errors...
[15:54:05] godzillaenlacasa: Quit: Computer has gone to sleep.
[16:30:59] godzillaenlacasa: has joined #RubyOnRails
[17:01:42] godzillaenlacasa: Quit: Computer has gone to sleep.
[17:10:47] godzillaenlacasa: has joined #RubyOnRails
[17:55:39] godzillaenlacasa: Quit: Computer has gone to sleep.
[19:50:08] godzillaenlacasa: has joined #RubyOnRails
[20:03:16] godzillaenlacasa: Quit: Computer has gone to sleep.
[20:49:18] godzillaenlacasa: has joined #RubyOnRails
[21:10:53] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-05-17

[11:59:27] godzillaenlacasa: has joined #RubyOnRails
[12:18:45] godzillaenlacasa: Quit: Computer has gone to sleep.
[14:05:13] godzillaenlacasa: has joined #RubyOnRails
[17:07:52] godzillaenlacasa: Ping timeout: 252 seconds

2016-05-16

[11:59:27] godzillaenlacasa: has joined #RubyOnRails
[12:04:09] godzillaenlacasa: Ping timeout: 265 seconds
[14:02:05] godzillaenlacasa: has joined #RubyOnRails
[16:06:54] godzillaenlacasa: Quit: Computer has gone to sleep.
[16:16:21] godzillaenlacasa: has joined #RubyOnRails
[19:04:43] godzillaenlacasa: Quit: Computer has gone to sleep.
[19:19:00] godzillaenlacasa: has joined #RubyOnRails
[19:36:49] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-05-15

[11:59:27] godzillaenlacasa: has joined #RubyOnRails
[12:27:57] godzillaenlacasa: Quit: Computer has gone to sleep.
[17:21:00] godzillaenlacasa: has joined #RubyOnRails
[17:38:41] godzillaenlacasa: Quit: Computer has gone to sleep.
[17:51:01] godzillaenlacasa: has joined #RubyOnRails
[18:08:49] godzillaenlacasa: Quit: Computer has gone to sleep.
[18:25:23] godzillaenlacasa: has joined #RubyOnRails
[18:35:37] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-05-14

[11:59:30] godzillaenlacasa: has joined #RubyOnRails
[13:25:29] godzillaenlacasa: has joined #RubyOnRails
[13:44:44] godzillaenlacasa: Quit: Computer has gone to sleep.
[14:00:17] godzillaenlacasa: has joined #RubyOnRails
[14:10:46] godzillaenlacasa: Quit: Computer has gone to sleep.
[14:54:12] godzillaenlacasa: has joined #RubyOnRails
[15:08:46] godzillaenlacasa: Quit: Computer has gone to sleep.
[17:17:21] godzillaenlacasa: has joined #RubyOnRails
[17:27:48] godzillaenlacasa: Quit: Computer has gone to sleep.
[18:34:57] godzillaenlacasa: has joined #RubyOnRails
[19:07:36] godzillaenlacasa: Quit: Computer has gone to sleep.
[19:15:39] godzillaenlacasa: has joined #RubyOnRails
[19:37:16] godzillaenlacasa: Quit: Computer has gone to sleep.

2016-05-13

[13:32:27] godzillaenlacasa: has joined #RubyOnRails
[13:34:05] godzillaenlacasa: are Rspec helper files meant for Model tests helpers, or aimed for controllers?
[13:38:54] godzillaenlacasa: ok, so... new to TDD... I'd like to convert decimals to integers before saving them in my Model (I'm using Mongo, so it doesn't support decimals).
[13:39:26] godzillaenlacasa: So, I just need to do all the conversion in the test itself instead of through a helper?
[13:40:40] godzillaenlacasa: jhass sorry... I'm still wrapping my head around it all.
[13:41:01] godzillaenlacasa: jhass ok, I can start there...
[14:23:23] godzillaenlacasa: jhass ok, so I used your suggestion from earlier to just make a test to make sure the value is what it's supposed to be. Now, I'm trying to make my test green. In my model I made a function with a `before_validation` call to it. It's simply: `self.last_trade_price = last_trade_price * 1000` is this correct?
[14:24:02] godzillaenlacasa: jhass I ask, because it's not doing the conversion like I would expect before_validate
[14:25:43] godzillaenlacasa: jhass sorry, meant `before_save`
[14:27:11] godzillaenlacasa: jhass hmm, ok, so how can I get this to convert before my test like it should?
[14:33:11] godzillaenlacasa: jhass ok, thanks!
[14:35:23] godzillaenlacasa: jhass the problem is that mongodb doesn't support decimals, so I have to convert them to integers to save, then convert them back to decimal for the view.
[14:36:07] godzillaenlacasa: jhass for example, 92.51 saves as 93
[14:36:59] godzillaenlacasa: but i need to the whole thing...
[14:37:27] godzillaenlacasa: so my goal is to convert 92.51 to 9251, then when presenting to the user it's converted back to 92.51
[14:47:42] godzillaenlacasa: Quit: Computer has gone to sleep.
[15:36:32] godzillaenlacasa: has joined #RubyOnRails
[15:45:08] godzillaenlacasa: tubbo on man... that is helpful... anything for percents with decimals?
[15:57:09] godzillaenlacasa: tubbo so money still converts to an integer?
[17:12:33] godzillaenlacasa: Quit: Computer has gone to sleep.
[17:45:40] godzillaenlacasa: has joined #RubyOnRails
[18:38:07] godzillaenlacasa: if I have to overwrite multiple setter methods in a Model pretty much using the same code, is there a way to do it all through one function?
[18:39:43] godzillaenlacasa: tubbo so, have to convert 9 model attributes using the same exact math. I'll make a gist so you know what I mean
[18:41:01] godzillaenlacasa: tubbo https://gist.github.com/anonymous/3ca1ef7048bbe540b05e489eea641d8b
[18:43:18] godzillaenlacasa: tubbo problem with that is mongo only saves Integers, and I need to retain the whole value, not just the Integer. So, as it is right now, it saves 92.51 as 92
[18:45:29] godzillaenlacasa: tubbo dang... float will work
[18:49:58] godzillaenlacasa: tubbo ok, so just `type: Money` instead of `type: Float` in my model?
[18:51:47] godzillaenlacasa: tubbo dude, rock on
[19:04:32] godzillaenlacasa: Quit: Computer has gone to sleep.
[19:27:36] godzillaenlacasa: has joined #RubyOnRails
[19:48:39] godzillaenlacasa: Quit: Computer has gone to sleep.
[20:59:26] godzillaenlacasa: has joined #RubyOnRails

2016-05-05

[13:18:52] godzillaenlacasa: has joined #ruby
[13:18:52] godzillaenlacasa: has joined #RubyOnRails

2016-05-04

[03:59:14] godzillaenlacasa: has joined #ruby
[03:59:14] godzillaenlacasa: has joined #RubyOnRails
[11:50:13] godzillaenlacasa: has joined #ruby
[11:50:13] godzillaenlacasa: has joined #RubyOnRails
[13:44:07] godzillaenlacasa: RESTful /settings they just edited.
[13:44:07] godzillaenlacasa: is there a way to redirect a user back to a ajax partial instead of the main page I have? My user goes to /settings, then selects the partial page to load through a menu on the left /settings/12/edit. However, since it's a page loaded with 'remote true' the URL is still /settings. So when a user clicks 'save' after changing their settings, they are redirected back to /settings instead of the
[16:36:04] godzillaenlacasa: has joined #ruby
[16:36:04] godzillaenlacasa: has joined #RubyOnRails
[18:37:12] godzillaenlacasa: is there a way to search a returned object array for individual objects that contain a certain string?
[18:37:30] godzillaenlacasa: was trying .grep(/Linux/) but that's not working
[20:24:34] godzillaenlacasa: if I'm using Morris.js requires a hash to look like (hash : value ) does the hash format that Rails spits out ( hash => value ) matter?
[23:39:42] godzillaenlacasa: has joined #RubyOnRails
[23:39:43] godzillaenlacasa: has joined #ruby

2016-05-03

[13:32:44] godzillaenlacasa: has joined #ruby
[13:32:44] godzillaenlacasa: has joined #RubyOnRails
[14:12:13] godzillaenlacasa: any suggestions/gems to convert a user saved 'schedule' to a cron job? Can't use whenever gem.
[14:12:51] godzillaenlacasa: So, if a user selects to run a job every monday, it would convert accordingly to a crontab syntax
[14:32:15] godzillaenlacasa: @smathy thanks... the problem is that the user needs to be able to select something like 'every monday @ 9am', which gets saved to my DB as `* 9 * * MON`. Then when the user client makes the REST call, it will save to the remote host crontab
[14:32:39] godzillaenlacasa: @smathy so, I'm not saving the job on the server-side crontab, it's actually on the remote
[14:33:13] godzillaenlacasa: @smathy bummer... guess I'll have to roll my own. thanks for the input
[14:34:00] godzillaenlacasa: @smathy right o... a reading I go!
[14:39:31] godzillaenlacasa: Funny... scheduling things seems to be the topic of the day
[14:45:23] godzillaenlacasa: @wolfravenous I hear ya.
[19:51:39] godzillaenlacasa: has joined #RubyOnRails
[19:51:43] godzillaenlacasa: has joined #ruby
[20:08:59] godzillaenlacasa: if I have an integer for a month (like 3) what's the best way to convert it to the month name (March)?
[20:09:30] godzillaenlacasa: i was trying `month.strftime("%B")` but that's not working
[20:09:38] godzillaenlacasa: month = 3 in this case
[20:10:28] godzillaenlacasa: @havenwood ah, just tried that as you typed it I guess! Thanks for confirming
[20:11:34] godzillaenlacasa: @havenwood nice!
[20:18:18] godzillaenlacasa: @havenwood one more... while I can concatente the hour/min integers for time (4) (0) into a string, is there a rails method to convert it to a readable time like 4:00 ?
[20:21:56] godzillaenlacasa: @adaedra yup, works like a charm! Thanks

2016-05-02

[12:04:09] godzillaenlacasa: has joined #ruby
[12:04:09] godzillaenlacasa: has joined #RubyOnRails

2016-05-01

[13:33:45] godzillaenlacasa: has joined #ruby
[13:33:45] godzillaenlacasa: has joined #RubyOnRails

2016-04-30

2016-04-29

[16:16:35] godzillaenlacasa: has joined #ruby
[16:16:35] godzillaenlacasa: has joined #RubyOnRails

2016-04-28

[01:02:35] godzillaenlacasa: has joined #ruby
[01:02:35] godzillaenlacasa: has joined #RubyOnRails
[14:27:19] godzillaenlacasa: has joined #ruby
[14:27:19] godzillaenlacasa: has joined #RubyOnRails
[16:42:41] godzillaenlacasa: has joined #ruby
[16:42:41] godzillaenlacasa: has joined #RubyOnRails
[22:24:30] godzillaenlacasa: has joined #ruby
[22:24:30] godzillaenlacasa: has joined #RubyOnRails

2016-04-27

[00:38:10] godzillaenlacasa: has joined #ruby
[00:38:10] godzillaenlacasa: has joined #RubyOnRails
[16:49:12] godzillaenlacasa: has joined #ruby
[16:49:12] godzillaenlacasa: has joined #RubyOnRails

2016-04-26

[12:05:14] godzillaenlacasa: has joined #ruby
[12:05:14] godzillaenlacasa: has joined #RubyOnRails
[16:50:21] godzillaenlacasa: has joined #ruby
[16:50:21] godzillaenlacasa: has joined #RubyOnRails

2016-04-25

[12:02:31] godzillaenlacasa: has joined #ruby
[12:02:31] godzillaenlacasa: has joined #RubyOnRails
[14:19:57] godzillaenlacasa: Ping timeout: 260 seconds

2016-04-23

2016-04-22

[13:31:28] godzillaenlacasa: has joined #ruby
[13:31:28] godzillaenlacasa: has joined #RubyOnRails
[14:00:36] godzillaenlacasa: is it possible to do an includes and a conditional statement to create an object array?
[14:00:54] godzillaenlacasa: for instance, this works right now: `@network_hosts = @location.network_hosts.includes(network_host_tests: { results: :issue })`
[14:01:23] godzillaenlacasa: but I also need to exclude network_hosts that `ignore_flag => true`

2016-04-21

[13:32:29] godzillaenlacasa: has joined #ruby
[13:32:29] godzillaenlacasa: has joined #RubyOnRails
[16:28:52] godzillaenlacasa: is it possible to pass a variable on a button click to a bootstrap modal?

2016-04-20

[03:59:22] godzillaenlacasa: has joined #ruby
[03:59:22] godzillaenlacasa: has joined #RubyOnRails

2016-04-19

[13:22:42] godzillaenlacasa: has joined #ruby
[13:22:42] godzillaenlacasa: has joined #RubyOnRails

2016-04-18

[13:49:26] godzillaenlacasa: has joined #RubyOnRails
[13:49:26] godzillaenlacasa: has joined #ruby
[15:10:09] godzillaenlacasa: is there a way to create a SecureRandom type of hash for 2 strings? I'm trying to make a 'fingerprint'... so if either of the two strings change, then a new 'fingerprint' is generated
[15:11:33] godzillaenlacasa: @workmad3 @elaptics haha, nice guys
[15:14:46] godzillaenlacasa: @smathy nah, not security related at all... just trying to create a unique fingerprint, but still tie it to a DB entry as long as it doesn't change.

2016-04-15

2016-04-08

[01:09:58] godzillaenlacasa: Quit: Peace Out Peeps!

2016-04-07

[13:22:58] godzillaenlacasa: has joined #RubyOnRails
[13:22:58] godzillaenlacasa: has joined #ruby
[15:55:23] godzillaenlacasa: has joined #RubyOnRails
[15:55:23] godzillaenlacasa: has joined #ruby

2016-04-06

[12:53:11] godzillaenlacasa: has joined #RubyOnRails
[12:53:11] godzillaenlacasa: has joined #ruby
[13:00:37] godzillaenlacasa: I'd like to modify the Devise confirmation_instructions mailer... where can I go to do that? I've started the "Use Custom Mailer" tut @ https://github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer but can't find where to edit
[13:01:58] godzillaenlacasa: @rvanlieshout yes, I'm also using a Sendgrid template, so I have to modify headers and such
[13:04:41] godzillaenlacasa: @rvanlieshout I'm not on the view one... i need to use a controller to send substitution variables to Sendgrid... that's where my problem is
[13:09:28] godzillaenlacasa: @rvanlieshout so, if I'm using devise's generated user controller... i have a 'registrations' controller.
[13:10:59] godzillaenlacasa: @rvanlieshout can I just add a confirmation_instructions method to that controller?
[17:55:33] godzillaenlacasa: has joined #RubyOnRails
[17:55:33] godzillaenlacasa: has joined #ruby
[18:49:59] godzillaenlacasa: is it possible to call a javascript function from a controller?
[18:51:13] godzillaenlacasa: I need to be able to change button information when clicked based on a DB call.
[18:52:29] godzillaenlacasa: @eyeamaye maybe I'm thinking about this all wrong
[18:54:00] godzillaenlacasa: @eyeamaye ok, that's a good starting point for me to read up on... thanks

2016-03-29

[11:58:44] godzillaenlacasa: has joined #RubyOnRails
[11:58:44] godzillaenlacasa: has joined #ruby
[12:06:32] godzillaenlacasa: @Cork I'm using Rubber/Capistrano to create and deploy instances, but I do: `#{Rubber.env}` in my config/rubber/role/unicorn/unicorn.rb file
[12:10:24] godzillaenlacasa: @Cork That would set it... for instance, I'm using it to set current path: `current_path = "/ebs/#{rubber_env.app_name}-#{Rubber.env}/current"`. Also use it to set a predefined app_user: `user, group = '<%=rubber_env.app_user %>', '<%=rubber_env.app_user %>'`
[12:37:54] godzillaenlacasa: Quit: Peace Out Peeps!

2016-03-28

[18:30:41] godzillaenlacasa: has joined #RubyOnRails
[18:30:41] godzillaenlacasa: has joined #ruby
[18:32:46] godzillaenlacasa: can someone help me understand Sidekiq.... if I want to make a task to email a user if their last login is greater than X days, would this be the type of thing Sidekiq can handle?
[18:40:41] godzillaenlacasa: Read error: Connection timed out
[18:57:25] godzillaenlacasa: has joined #RubyOnRails
[18:57:25] godzillaenlacasa: has joined #ruby
[18:59:25] godzillaenlacasa: has joined #RubyOnRails
[18:59:25] godzillaenlacasa: has joined #ruby
[19:00:41] godzillaenlacasa: is there a command to manually run a Sidekiq job... for testing
[19:04:32] godzillaenlacasa: @tubbo dude, awesome!
[19:32:14] godzillaenlacasa: I'm trying to get a users last login date and run an if statement to see if I need to send a notification. https://gist.github.com/anonymous/3e60052eca66217dc72c getting an error though that my 'greater than >' is not a method...
[22:57:02] godzillaenlacasa: has joined #RubyOnRails
[22:57:02] godzillaenlacasa: has joined #ruby

2016-03-19

[00:16:08] godzillaenlacasa: Read error: Connection reset by peer

2016-03-18

[12:22:21] godzillaenlacasa: has joined #RubyOnRails
[12:22:21] godzillaenlacasa: has joined #ruby