EminenceHC

Activity Graph

Page 1 of 22 | Next »

2019-02-12

[13:45:17] EminenceHC: has joined #ruby
[13:45:17] EminenceHC: has joined #RubyOnRails
[13:46:42] EminenceHC: Is it possible to use a separate params hash for a separate POST method? Even though I specify Object.new(my_separate_params_hash), it still defaults to my first strong params hash.
[14:16:25] EminenceHC: tbuehlmann: Strange that it only uses my custom strong params if I comment out the other params hash, even though I am specifying the correct params hash in the Object.new(correct_params_hash)
[14:17:06] EminenceHC: tbuehlmann: Will do, one sec.
[14:18:47] EminenceHC: tbuehlmann: https://dpaste.de/dwRk
[14:20:03] EminenceHC: tbuehlmann: That controller method is a POST set from routes.rb. My aim is to override the default create method with this route and strong params.
[14:22:23] EminenceHC: tbuehlmann: Because I want logged in users to have a different form and be able to specify the unit_id start_date and end_date.
[14:25:08] EminenceHC: tbuehlmann: Hmm thats a possibility. I was just thinking it was so much conditional logic in the controller with different redirects, different forms, different attributes being automatically set etc. Is a separate create method bad practice?
[14:29:49] EminenceHC: tbuehlmann: Plus one form is using a nested route, and the other one isnt.
[14:33:34] EminenceHC: tbuehlmann: Can I use a different controllers with the same model Reservation?
[14:34:15] EminenceHC: tbuehlmann: I never thought about doing that. I'll give that a whirl. Thank you.
[14:38:03] EminenceHC: tbuehlmann: Awesome
[14:53:59] EminenceHC: tbuehlmann: I am trying with the same create method, but it still won't override the strong params unless I comment them out.
[14:59:01] EminenceHC: tbuehlmann: Oh it looks like I needed to put the conditional logic in one strong params method instead of having two separate methods and calling them from a conditional.
[16:29:06] EminenceHC: Remote host closed the connection
[16:36:31] EminenceHC: has joined #ruby
[16:36:31] EminenceHC: has joined #RubyOnRails
[17:08:55] EminenceHC: Remote host closed the connection
[17:24:22] EminenceHC: has joined #ruby
[17:24:22] EminenceHC: has joined #RubyOnRails
[17:24:31] EminenceHC: Read error: Connection reset by peer

2018-12-22

2018-12-21

[01:04:22] EminenceHC: Ping timeout: 250 seconds
[03:01:01] EminenceHC: has joined #ruby
[03:01:01] EminenceHC: has joined #RubyOnRails
[03:05:27] EminenceHC: Ping timeout: 240 seconds
[05:02:29] EminenceHC: has joined #RubyOnRails
[05:02:30] EminenceHC: has joined #ruby
[05:07:22] EminenceHC: Ping timeout: 272 seconds
[07:03:56] EminenceHC: has joined #ruby
[07:03:56] EminenceHC: has joined #RubyOnRails
[07:08:22] EminenceHC: Ping timeout: 250 seconds
[11:05:47] EminenceHC: has joined #RubyOnRails
[11:05:48] EminenceHC: has joined #ruby
[11:10:54] EminenceHC: Ping timeout: 272 seconds
[15:07:35] EminenceHC: has joined #ruby
[15:07:35] EminenceHC: has joined #RubyOnRails
[15:11:51] EminenceHC: Ping timeout: 246 seconds
[15:13:59] EminenceHC: has joined #RubyOnRails
[15:14:00] EminenceHC: has joined #ruby

2018-12-20

[02:27:49] EminenceHC: has joined #ruby
[02:27:49] EminenceHC: has joined #RubyOnRails
[02:36:56] EminenceHC: Remote host closed the connection
[13:37:15] EminenceHC: has joined #RubyOnRails
[13:37:16] EminenceHC: has joined #ruby

2018-12-19

[23:05:30] EminenceHC: Remote host closed the connection
[23:06:05] EminenceHC: has joined #RubyOnRails
[23:06:06] EminenceHC: has joined #ruby
[23:10:26] EminenceHC: Ping timeout: 250 seconds

2018-12-18

[00:39:51] EminenceHC: Remote host closed the connection
[00:51:17] EminenceHC: has joined #ruby
[00:51:17] EminenceHC: has joined #RubyOnRails
[02:04:40] EminenceHC: Remote host closed the connection
[12:35:57] EminenceHC: has joined #RubyOnRails
[12:35:58] EminenceHC: has joined #ruby

2018-12-17

[15:33:05] EminenceHC: has joined #ruby
[15:33:05] EminenceHC: has joined #RubyOnRails
[15:37:01] EminenceHC: I filter my index page by using conditional .where queries. The objects that do not meet the conditionals do not show in the index. Is there a way to display these objects along with a message why they did not meet one or more of the conditionals?
[15:41:04] EminenceHC: Basically an inverse of the query.
[16:38:56] EminenceHC: TheNet: I do like that solution but my where clauses are fairly complex.
[16:42:31] EminenceHC: Currently I am separating all objects that pass and all objects that fail into two active record association objects and displaying them both on the index page. For each object that fails displayed on the index I am running a separate query on the object to change text color to red. I'd like to not have to do this query on the index page.
[16:44:59] EminenceHC: TheNet: I totally like the idea of flagging the object with an additional attribute in the active record collection, but I haven't been able to figure out a way to do that whilst preserving the object methods.
[16:49:03] EminenceHC: Does anyone know a way to add an arbitrary attribute to each object in an active record association? The attribute does not need to persist to the database, it simply needs to be there when displaying it on the view.
[17:04:22] EminenceHC: TheNet: I figured it out. I used an attr_accessor and set it by using .each over the collection. @objects = Object.where(.....) @objects.each do |o| o.attr_accessor_name = "my_value"
[17:04:55] EminenceHC: I think the problem I had when trying to figure this out earlier is that I was using .map to change the object instead of setting it using .each

2017-09-22

[03:18:33] EminenceHC: Remote host closed the connection
[14:03:44] EminenceHC: has joined #ruby
[14:03:44] EminenceHC: has joined #RubyOnRails

2017-09-21

[20:31:52] EminenceHC: has joined #ruby
[20:31:52] EminenceHC: has joined #RubyOnRails

2017-09-20

[03:11:58] EminenceHC: Remote host closed the connection
[12:31:21] EminenceHC: has joined #ruby
[12:31:21] EminenceHC: has joined #RubyOnRails

2017-09-19

[04:09:21] EminenceHC: Remote host closed the connection
[13:00:30] EminenceHC: has joined #ruby
[13:00:30] EminenceHC: has joined #RubyOnRails

2017-09-18

[12:18:19] EminenceHC: has joined #ruby
[12:18:19] EminenceHC: has joined #RubyOnRails
[22:01:02] EminenceHC: has joined #RubyOnRails
[22:01:03] EminenceHC: has joined #ruby

2017-09-17

[11:49:46] EminenceHC: has joined #ruby
[11:49:46] EminenceHC: has joined #RubyOnRails
[13:10:51] EminenceHC: How would I go about editing linux server config files which need sudo access from rails? Is there a preferred way to do this, or do I just use FileUtils commands from any ruby method?
[13:41:15] EminenceHC: wmoxam: Thanks!
[14:46:42] EminenceHC: Remote host closed the connection
[15:28:20] EminenceHC: has joined #ruby
[15:28:20] EminenceHC: has joined #RubyOnRails
[15:50:49] EminenceHC: Remote host closed the connection
[21:57:25] EminenceHC: has joined #ruby
[21:57:25] EminenceHC: has joined #RubyOnRails
[22:31:58] EminenceHC: Remote host closed the connection

2017-09-16

[22:00:31] EminenceHC: has joined #ruby
[22:00:31] EminenceHC: has joined #RubyOnRails
[22:57:29] EminenceHC: Remote host closed the connection

2015-11-24

[00:32:48] EminenceHC: Quit: Leaving...

2015-11-23

[01:06:32] EminenceHC: has joined #ruby
[01:06:32] EminenceHC: has joined #RubyOnRails
[01:33:09] EminenceHC: Remote host closed the connection
[03:41:25] EminenceHC: has joined #ruby
[03:41:25] EminenceHC: has joined #RubyOnRails
[04:39:39] EminenceHC: Remote host closed the connection
[15:43:25] EminenceHC: has joined #ruby
[15:43:25] EminenceHC: has joined #RubyOnRails
[16:10:17] EminenceHC: Remote host closed the connection
[16:11:15] EminenceHC: has joined #ruby
[16:11:15] EminenceHC: has joined #RubyOnRails
[17:26:09] EminenceHC: Remote host closed the connection
[18:25:38] EminenceHC: has joined #ruby
[18:25:38] EminenceHC: has joined #RubyOnRails
[19:36:59] EminenceHC: Remote host closed the connection
[19:42:29] EminenceHC: has joined #ruby
[19:42:29] EminenceHC: has joined #RubyOnRails
[20:42:15] EminenceHC: Remote host closed the connection
[20:49:05] EminenceHC: has joined #ruby
[20:49:05] EminenceHC: has joined #RubyOnRails
[21:32:13] EminenceHC: Remote host closed the connection
[21:32:46] EminenceHC: has joined #RubyOnRails
[21:32:47] EminenceHC: has joined #ruby
[21:40:10] EminenceHC: Remote host closed the connection
[21:42:47] EminenceHC: has joined #ruby
[21:42:47] EminenceHC: has joined #RubyOnRails
[21:59:49] EminenceHC: Remote host closed the connection
[22:05:03] EminenceHC: has joined #ruby
[22:05:03] EminenceHC: has joined #RubyOnRails

2015-11-22

[00:18:33] EminenceHC: has joined #RubyOnRails
[00:18:34] EminenceHC: has joined #ruby
[00:51:36] EminenceHC: Remote host closed the connection
[00:53:49] EminenceHC: has joined #ruby
[00:53:49] EminenceHC: has joined #RubyOnRails
[01:22:53] EminenceHC: Remote host closed the connection
[02:05:23] EminenceHC: has joined #ruby
[02:05:23] EminenceHC: has joined #RubyOnRails
[03:39:12] EminenceHC: Ping timeout: 264 seconds
[04:05:49] EminenceHC: has joined #ruby
[04:05:49] EminenceHC: has joined #RubyOnRails
[05:46:56] EminenceHC: Remote host closed the connection
[06:14:43] EminenceHC: has joined #ruby
[06:14:43] EminenceHC: has joined #RubyOnRails
[06:24:53] EminenceHC: Remote host closed the connection
[20:51:07] EminenceHC: has joined #ruby
[20:51:07] EminenceHC: has joined #RubyOnRails
[22:54:47] EminenceHC: Remote host closed the connection

2015-11-21

[00:44:37] EminenceHC: has joined #ruby
[00:44:37] EminenceHC: has joined #RubyOnRails
[00:47:10] EminenceHC: Remote host closed the connection
[02:00:56] EminenceHC: has joined #ruby
[02:00:56] EminenceHC: has joined #RubyOnRails
[02:12:34] EminenceHC: Remote host closed the connection
[02:19:32] EminenceHC: has joined #ruby
[02:19:32] EminenceHC: has joined #RubyOnRails
[03:48:40] EminenceHC: Remote host closed the connection
[03:51:00] EminenceHC: has joined #ruby
[03:51:00] EminenceHC: has joined #RubyOnRails
[04:14:03] EminenceHC: Remote host closed the connection
[05:39:51] EminenceHC: has joined #ruby
[05:39:51] EminenceHC: has joined #RubyOnRails
[07:17:27] EminenceHC: Remote host closed the connection
[07:26:28] EminenceHC: has joined #RubyOnRails
[07:26:29] EminenceHC: has joined #ruby
[07:45:08] EminenceHC: Remote host closed the connection
[10:26:17] EminenceHC: has joined #ruby
[10:26:17] EminenceHC: has joined #RubyOnRails
[10:31:02] EminenceHC: Ping timeout: 250 seconds
[18:21:44] EminenceHC: has joined #RubyOnRails
[18:21:45] EminenceHC: has joined #ruby
[18:55:31] EminenceHC: Remote host closed the connection
[18:56:52] EminenceHC: has joined #ruby
[18:56:52] EminenceHC: has joined #RubyOnRails
[19:07:55] EminenceHC: Remote host closed the connection
[19:11:52] EminenceHC: has joined #RubyOnRails
[19:11:53] EminenceHC: has joined #ruby
[20:05:17] EminenceHC: Remote host closed the connection
[22:13:48] EminenceHC: has joined #ruby
[22:13:48] EminenceHC: has joined #RubyOnRails
[23:03:54] EminenceHC: Remote host closed the connection
[23:19:14] EminenceHC: has joined #ruby
[23:19:14] EminenceHC: has joined #RubyOnRails
[23:24:33] EminenceHC: Remote host closed the connection

2015-11-20

[17:45:55] EminenceHC: has joined #RubyOnRails
[17:45:56] EminenceHC: has joined #ruby
[17:55:28] EminenceHC: Remote host closed the connection
[17:57:52] EminenceHC: has joined #ruby
[17:57:52] EminenceHC: has joined #RubyOnRails
[21:08:44] EminenceHC: Remote host closed the connection
[21:35:05] EminenceHC: has joined #ruby
[21:35:05] EminenceHC: has joined #RubyOnRails
[21:58:17] EminenceHC: Remote host closed the connection
[22:24:55] EminenceHC: has joined #ruby
[22:24:55] EminenceHC: has joined #RubyOnRails
[22:49:30] EminenceHC: Remote host closed the connection

2015-11-19

[00:34:02] EminenceHC: Remote host closed the connection
[01:22:29] EminenceHC: has joined #ruby
[01:22:29] EminenceHC: has joined #RubyOnRails
[02:45:42] EminenceHC: Remote host closed the connection
[02:47:21] EminenceHC: has joined #ruby
[02:47:21] EminenceHC: has joined #RubyOnRails
[03:48:25] EminenceHC: Remote host closed the connection
[03:54:52] EminenceHC: has joined #ruby
[03:54:52] EminenceHC: has joined #RubyOnRails
[04:11:32] EminenceHC: Remote host closed the connection
[04:12:47] EminenceHC: has joined #ruby
[04:12:47] EminenceHC: has joined #RubyOnRails
[07:06:57] EminenceHC: Remote host closed the connection
[17:14:25] EminenceHC: has joined #ruby
[17:14:25] EminenceHC: has joined #RubyOnRails
[17:32:37] EminenceHC: Remote host closed the connection
[18:55:55] EminenceHC: has joined #ruby
[18:55:55] EminenceHC: has joined #RubyOnRails
[19:40:37] EminenceHC: Remote host closed the connection
[19:43:47] EminenceHC: has joined #ruby
[19:43:47] EminenceHC: has joined #RubyOnRails
[20:26:50] EminenceHC: Remote host closed the connection
[20:49:15] EminenceHC: has joined #ruby
[20:49:15] EminenceHC: has joined #RubyOnRails
[21:53:31] EminenceHC: Remote host closed the connection

2015-11-18

[16:14:23] EminenceHC: has joined #ruby
[16:30:16] EminenceHC: Remote host closed the connection
[17:05:06] EminenceHC: has joined #ruby
[17:05:06] EminenceHC: has joined #RubyOnRails
[17:19:38] EminenceHC: Ping timeout: 260 seconds
[18:01:01] EminenceHC: has joined #ruby
[18:01:01] EminenceHC: has joined #RubyOnRails
[18:22:17] EminenceHC: Ping timeout: 250 seconds
[18:33:38] EminenceHC: has joined #ruby
[18:33:38] EminenceHC: has joined #RubyOnRails
[18:48:18] EminenceHC: Ping timeout: 260 seconds
[19:50:25] EminenceHC: has joined #ruby
[19:50:25] EminenceHC: has joined #RubyOnRails
[20:12:51] EminenceHC: Remote host closed the connection
[20:33:57] EminenceHC: has joined #ruby
[20:33:57] EminenceHC: has joined #RubyOnRails
[20:52:15] EminenceHC: Remote host closed the connection
[21:21:44] EminenceHC: has joined #ruby
[21:21:44] EminenceHC: has joined #RubyOnRails
[21:31:27] EminenceHC: Remote host closed the connection
[21:48:56] EminenceHC: has joined #RubyOnRails
[21:48:57] EminenceHC: has joined #ruby
[21:49:14] EminenceHC: Read error: Connection reset by peer
[21:49:50] EminenceHC: has joined #ruby
[21:49:50] EminenceHC: has joined #RubyOnRails
[21:53:55] EminenceHC: Ping timeout: 240 seconds
[22:08:22] EminenceHC: has joined #ruby
[22:08:22] EminenceHC: has joined #RubyOnRails
[22:12:48] EminenceHC: Ping timeout: 252 seconds
[23:07:17] EminenceHC: has joined #ruby
[23:07:17] EminenceHC: has joined #RubyOnRails