Pathfinder

Activity Graph

Page 1 of 3 | Next »

2016-06-07

[11:32:52] Pathfinder: has joined #RubyOnRails
[12:56:43] Pathfinder: Ping timeout: 244 seconds
[13:17:10] Pathfinder: has joined #RubyOnRails
[18:27:43] Pathfinder: Is that Jamii by any means derived from the Swahili word?
[18:31:28] Pathfinder: Hehehe...at first I thought I had stumbled across a fellow countryman/woman
[18:36:50] Pathfinder: Remote host closed the connection

2016-05-12

[00:45:24] Pathfinder: has joined #RubyOnRails
[07:27:34] Pathfinder: Ping timeout: 240 seconds
[09:35:22] Pathfinder: has joined #RubyOnRails
[10:17:27] Pathfinder: Ping timeout: 260 seconds
[10:17:49] Pathfinder: has joined #RubyOnRails
[11:07:11] Pathfinder: Remote host closed the connection

2016-04-28

[00:30:42] Pathfinder: Remote host closed the connection

2016-04-27

[23:13:37] Pathfinder: has joined #RubyOnRails

2016-04-15

[05:41:17] Pathfinder: has joined #RubyOnRails
[07:04:04] Pathfinder: *.net *.split

2016-04-14

[01:04:48] Pathfinder: has joined #RubyOnRails
[22:05:03] Pathfinder: Ping timeout: 276 seconds

2016-04-13

[08:56:42] Pathfinder: has joined #RubyOnRails
[09:03:12] Pathfinder: I have been trying to debug this error : "app error: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError)" for the last4hrs :(
[09:04:22] Pathfinder: I have already added and ENV["SECRET_KEY_BASE"] to bashrc which is what is used to set secret_key_base, sourced bashrc but still no luck
[09:05:06] Pathfinder: This occurs when deploying with capistrano. This is what leads to my server displaying a white blank page I beliebe
[09:05:27] Pathfinder: boena: Let me share my configuration on a paste
[09:05:54] Pathfinder: boena Done that
[09:12:54] Pathfinder: boena: Here is what I have done
[09:12:56] Pathfinder: http://pastie.org/10796069
[09:15:21] Pathfinder: I have also included my Capfile here: http://pastie.org/10796075
[09:16:35] Pathfinder: Funny thing: ps -aux | grep unicorn returns Sl 08:43 0:00 unicorn worker[0] -c myapp/current/config/unicorn/production.rb -E deployment -D
[09:16:56] Pathfinder: Then -E part shows deployment, should it not point to production?
[09:19:05] Pathfinder: To be honest I have no idea how to make unicorn point to production using capistrano...
[09:19:34] Pathfinder: That seems to come by default maybe generated by gem 'capistrano3-unicorn'
[09:21:24] Pathfinder: boena: Thanks for the incredible help. Let me see if I can find a workaround
[09:51:29] Pathfinder: boena: Even with unicorn set on production I am still getting that message..damn! unicorn master -c myapp/current/config/unicorn/production.rb -E production -D
[09:56:05] Pathfinder: Hey channel, I am very stuck with this issue: http://pastie.org/10796123. If anyone can help point me in the right direction I would really appreciate it
[09:57:02] Pathfinder: It is basically a missing secret_key_base on production after deployment using capistrano
[09:58:25] Pathfinder: sevenseacat on the server
[09:59:27] Pathfinder: In fact I have even changed the secret_key_base on the server secrets.yml to the value in the ENV directly
[09:59:59] Pathfinder: I am quite unsure whether I need that since I can't see any mention of that on the interwebs
[10:01:46] Pathfinder: sevenseacat: Linking happens correctly since I can see symlinks are correctly set
[10:04:19] Pathfinder: Looks like Rails.application.config.secret_key_base returns nil but ENV["SECRET_KEY_BASE"] returns my rake secret
[10:04:32] Pathfinder: What may I be doing wrongly
[10:07:05] Pathfinder: sevenseacat: secrets.yml -> /var/www/myapp/shared/config/secrets.yml
[10:07:38] Pathfinder: in myapp/current/config/secrets.yml
[10:08:08] Pathfinder: I am using capistrano that is why the convestions are a bit different because the actual rails files are inside the current folder :)
[10:09:02] Pathfinder: workmad3: I get the exact output that is on /var/www/myapp/shared/config/secrets.yml
[10:09:22] Pathfinder: sevenseacat: I was informing you in case you use another tool..sorry
[10:11:07] Pathfinder: Hahahaha...I really don't want to blow up any help I am getting since I have been stuck for hours already and I feel I am out of my breadth. Apologies for the repetition
[10:12:58] Pathfinder: Running ls -la returns www-data www-data
[10:15:06] Pathfinder: sevenseacat: On current it
[10:15:33] Pathfinder: And on shared folder it is 775
[10:16:08] Pathfinder: The shared/config/secrets.yml is 664
[10:19:17] Pathfinder: sevenseacat: But the database is being accessed in this format too and it works. I have updated some more info on this paste: http://pastie.org/10796155
[10:24:53] Pathfinder: workmad3: I am launching the unicorn master from /var/www/myapp/current/config/unicorn/production.rb
[10:27:41] Pathfinder: workmad3: But the config/secrets.yml in current directory is a symlink to shared/config/secrets.yml
[10:28:19] Pathfinder: The root of the unicorn/production.rb file points to "/var/www/myapp/current/"
[10:37:38] Pathfinder: Lol..I restarted the process from scratch. Maybe one of those try once more to expect a different result :p
[11:36:06] Pathfinder: Ping timeout: 276 seconds
[12:05:42] Pathfinder: has joined #RubyOnRails
[12:14:22] Pathfinder: Ping timeout: 248 seconds
[15:01:09] Pathfinder: has joined #RubyOnRails
[17:13:27] Pathfinder: Ping timeout: 276 seconds
[17:50:21] Pathfinder: has joined #RubyOnRails
[18:37:37] Pathfinder: Ping timeout: 252 seconds

2016-04-06

[00:01:24] Pathfinder: has joined #RubyOnRails
[01:33:40] Pathfinder: Ping timeout: 252 seconds
[04:26:30] Pathfinder: has joined #RubyOnRails
[10:21:42] Pathfinder: Ping timeout: 268 seconds
[10:22:52] Pathfinder: has joined #RubyOnRails
[10:49:56] Pathfinder: Read error: Connection reset by peer
[10:55:21] Pathfinder: has joined #RubyOnRails
[13:51:02] Pathfinder: Read error: Connection reset by peer
[14:27:55] Pathfinder: has joined #RubyOnRails
[14:30:36] Pathfinder: Read error: Connection reset by peer

2016-04-05

[05:02:35] Pathfinder: has joined #RubyOnRails
[06:13:25] Pathfinder: Ping timeout: 244 seconds
[06:22:02] Pathfinder: has joined #RubyOnRails
[06:22:48] Pathfinder: How do I send out a registration message after save during excel importation. http://pastie.org/10785859
[06:29:58] Pathfinder: Ping timeout: 244 seconds
[06:30:52] Pathfinder: rvanlieshout: Radar: Thanks for the info. I have edited the paste here: http://pastie.org/10785864
[06:34:01] Pathfinder: The problem I am having is knowing how to pass the member's phone_number and pin from the load_imported_members method to the save method at the top
[06:35:08] Pathfinder: rvanlieshout: The api part works independently and I have tested it on the console using my phone_number and dummy data. The issue I am having is more of a logic one on how to pass data between the methods
[06:39:56] Pathfinder: Radar: Yes that is what I would precisely want to do. I would love to call it on a one liner after save has successfully occured
[06:41:34] Pathfinder: I am using bcrypt which uses a password digest, hence I would never be able to query for the member.password hence I have to pass the pin upwards from the load_imported_members to the save method at the top
[06:49:43] Pathfinder: Okay the issue is this. I have a method B called load_imported_members and a method A called save. The problem seems to be since I am calling member.update_attributes instead of member.assign_attributes, the record gets saved in B. When I pass the now already saved member/person to A, I could not extract the password to send to the user since calling member.password cannot work now as it has now been encrypted
[06:52:19] Pathfinder: Okay. I was getting a block. Let me gather my thoughts and notes properly before I ask. Apologies for the time wasted.
[07:00:36] Pathfinder: Blocks are an exciting feature of ruby but Godamn this things are confusing :o !
[07:16:56] Pathfinder: Noob answer here: How about a simple gsub?
[07:17:50] Pathfinder: string.gsub(/\s+/, '-')
[07:22:29] Pathfinder: Radar , sevenseacat & rvanlieshout I have been able to solve my dummy issue by iterating over each individual on save and sending the message to them
[07:44:21] Pathfinder: Read error: Connection reset by peer
[07:53:17] Pathfinder: has joined #RubyOnRails
[08:58:34] Pathfinder: Read error: Connection reset by peer
[09:00:55] Pathfinder: has joined #RubyOnRails
[09:58:38] Pathfinder: Read error: Connection reset by peer
[10:36:24] Pathfinder: has joined #RubyOnRails
[13:22:10] Pathfinder: *.net *.split
[13:24:10] Pathfinder: has joined #RubyOnRails
[14:58:18] Pathfinder: Read error: Connection reset by peer
[15:02:16] Pathfinder: has joined #RubyOnRails
[15:44:13] Pathfinder: Read error: Connection reset by peer
[15:46:38] Pathfinder: has joined #RubyOnRails
[16:59:31] Pathfinder: Read error: Connection reset by peer
[17:01:07] Pathfinder: has joined #RubyOnRails
[17:45:36] Pathfinder: Read error: Connection reset by peer
[18:18:48] Pathfinder: has joined #RubyOnRails
[19:15:11] Pathfinder: Read error: Connection reset by peer
[19:17:58] Pathfinder: has joined #RubyOnRails
[19:52:21] Pathfinder: Read error: Connection reset by peer
[20:17:42] Pathfinder: has joined #RubyOnRails
[20:52:29] Pathfinder: Read error: Connection reset by peer
[20:53:14] Pathfinder: has joined #RubyOnRails
[21:15:08] Pathfinder: Read error: Connection reset by peer
[21:17:33] Pathfinder: has joined #RubyOnRails
[22:13:58] Pathfinder: Read error: Connection reset by peer
[22:17:19] Pathfinder: has joined #RubyOnRails
[23:59:16] Pathfinder: Read error: Connection reset by peer

2016-04-01

[00:13:55] Pathfinder: has joined #RubyOnRails
[01:08:06] Pathfinder: has joined #RubyOnRails
[02:55:26] Pathfinder: has joined #RubyOnRails
[04:43:39] Pathfinder: has joined #RubyOnRails
[05:14:22] Pathfinder: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[05:41:54] Pathfinder: has joined #RubyOnRails
[07:37:41] Pathfinder: has joined #RubyOnRails
[08:15:36] Pathfinder: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2016-03-31

[20:30:08] Pathfinder: has joined #RubyOnRails
[20:32:01] Pathfinder: This is related to a gem. How do I call an action from my default controller from an activeadmin resource. e.g. call a method 'favorite' located app/controllers/posts_controller.rb from app/admin/post.rb
[20:33:06] Pathfinder: lalalaaa: 90% of the time you don't need all that React+Webpack+Redux etc
[20:33:17] Pathfinder: Go with the simpler boring solution to you
[20:37:58] Pathfinder: Hey guys, has someone experienced a similar issue to what I posted above regarding activeadmin?
[21:48:21] Pathfinder: Man I really don't want to be repetitive but I need a small push here
[21:48:34] Pathfinder: How do I call an action from my default controller from an activeadmin resource. e.g. call a method 'favorite' located app/controllers/posts_controller.rb from app/admin/post.rb
[21:48:42] Pathfinder: I don't want to duplicate my code to admin/post.rb
[21:57:51] Pathfinder: cnk: Thanks for the info. Basically what I want to do is that when I click on a button on active_admin it executes code located on a posts_controller.rb
[21:59:05] Pathfinder: mwlang: I think I will move the logic to a model. That makes more sense
[21:59:45] Pathfinder: That controller method has so many redirect_tos and if statements that I feel shameful to even share :o !
[22:02:13] Pathfinder: Radar: Look at this :( http://pastebin.com/Me63S03g
[22:03:07] Pathfinder: Radar: http://pastie.org/10781243
[22:03:48] Pathfinder: That code is so fugly....would appreciate some comments on how to refactor it from anyone
[22:05:17] Pathfinder: mwlang: I understand. I would like to refactor this code to be more beautiful and into many methods but the redirects are too much :o !
[22:06:38] Pathfinder: mwlang: Forgive me but the term business logic, services, domain driven development are shoved around so many times that as a noob it is too much me. Then there is fat models thin controllers. thin controllers fat models :|
[22:08:56] Pathfinder: Radar = Ryan Bigg :o ! .... I have a dusty Rails 4 in Action given to me yesterday by a fellow student in class
[22:09:34] Pathfinder: mwlang: Thanks a lot for the help :)
[22:14:41] Pathfinder: mwlang && Radar: Let me refactor is in a few minutes then if you have some time you can look at it and inform me if it's a least better of or DRYER
[22:16:09] Pathfinder: Lol...I have never written a line of test in my life. But I am getting there I believe
[22:30:01] Pathfinder: Is sidekiq good to be used to trigger a job like 30-40 days later other than on a short interval basis?
[22:35:09] Pathfinder: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[23:16:53] Pathfinder: has joined #RubyOnRails
[23:45:30] Pathfinder: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2016-03-19

[21:36:43] Pathfinder: has joined #RubyOnRails
[21:36:43] Pathfinder: has joined #ruby
[21:51:59] Pathfinder: Remote host closed the connection

2016-03-18

[00:07:07] Pathfinder: has joined #RubyOnRails
[00:07:07] Pathfinder: has joined #ruby
[02:15:17] Pathfinder: Ping timeout: 260 seconds

2016-03-17

[00:11:43] Pathfinder: Hi on a has one relationship e.g. where a driver has one car and the car belongs to a driver. How can I create a named scope on driver.rb that returns all cars that have a driver?
[00:16:20] Pathfinder: I tried placing something like this on driver.rb `scope :with_drivers, -> { where( car: true)}` :/
[00:17:40] Pathfinder: Ropeney: How exactly do I place a joins in the scope. Sorry I am quite a beginner
[00:19:02] Pathfinder: I would like the scope in the driver.rb and not the car.rb so that it is usable on the activeadmin driver resource
[00:22:57] Pathfinder: Thanks alot Ropeney, I just did not understand how to query a child from a parent's scope
[00:27:03] Pathfinder: VeryBewitching: If it is eager loading, how useful is that in a has one relationship. I though includes is usually good when you are iterating looking for multiple hits e,g in a has_many association
[00:30:08] Pathfinder: yeah I get now. I think I even got mixed up in what I was asking. I wanted to know how to get all drivers that have a car but as a scope in the driver.rb. I think Ropeney also suffices for this
[00:31:54] Pathfinder: Thanks VeryBewitching
[00:37:21] Pathfinder: mices: How have you installed your ruby
[00:37:44] Pathfinder: If you have successfully installed ruby just do, gem install rails
[00:38:24] Pathfinder: And it is ruby on rails :)
[00:40:28] Pathfinder: Ropeney so the scope does not work. ActiveRecord returns: SQLite3::SQLException: no such column:drivers.driver_id: SELECT COUNT(*) FROM “drivers" WHERE (“drivers”."driver_id" IS NOT NULL)
[00:41:20] Pathfinder: And here is our scope on the driver.rb scope :with_driver, -> { where.not( car: nil)}
[00:42:03] Pathfinder: bronson: Why would you not like to use capistrano?
[00:45:03] Pathfinder: bronson: Have you seen http://deploybot.com/
[00:47:31] Pathfinder: A friend of mine likes using it to deploy laravel apps so the flow has got to be similar if not simpler :)
[01:06:23] Pathfinder: Ping timeout: 244 seconds

2016-03-16

[23:53:54] Pathfinder: has joined #RubyOnRails
[23:53:54] Pathfinder: has joined #ruby

2016-03-07

[12:06:13] Pathfinder: has joined #RubyOnRails
[12:06:13] Pathfinder: has joined #ruby
[15:31:42] Pathfinder: Ping timeout: 248 seconds
[15:49:12] Pathfinder: has joined #ruby
[15:49:13] Pathfinder: has joined #RubyOnRails
[22:38:52] Pathfinder: Ping timeout: 264 seconds

2016-02-21

[02:12:33] Pathfinder: Ping timeout: 276 seconds

2016-02-20

[15:40:40] Pathfinder: has joined #RubyOnRails
[15:40:40] Pathfinder: has joined #ruby

2016-02-08

[05:24:24] Pathfinder: has joined #RubyOnRails
[05:24:24] Pathfinder: has joined #ruby
[10:11:52] Pathfinder: Ping timeout: 250 seconds

2016-02-07

[20:29:19] Pathfinder: has joined #RubyOnRails
[20:29:19] Pathfinder: has joined #ruby
[22:12:36] Pathfinder: Ping timeout: 272 seconds

2016-01-19

[13:13:41] Pathfinder: has joined #ruby
[14:23:29] Pathfinder: Ping timeout: 276 seconds

2016-01-01

[11:37:54] Pathfinder: has joined #ruby
[15:22:08] Pathfinder: Ping timeout: 246 seconds
[16:13:06] Pathfinder: has joined #ruby
[17:45:09] Pathfinder: Use the 1.6 version if you do not what to do the multithreading by yourself
[17:46:20] Pathfinder: Feedjira is a gem for rss fetching....thought you wanted to scrap new site or smething of the sort
[18:18:36] Pathfinder: Ping timeout: 240 seconds
[18:43:05] Pathfinder: has joined #ruby
[18:43:11] Pathfinder: Remote host closed the connection

2015-12-19

[00:43:24] Pathfinder: Read error: Connection reset by peer
[00:44:42] Pathfinder: has joined #ruby
[01:19:59] Pathfinder: Remote host closed the connection

2015-12-18

[20:39:52] Pathfinder: has joined #ruby
[21:28:35] Pathfinder: Ping timeout: 246 seconds
[22:51:50] Pathfinder: has joined #ruby

2015-12-15

[17:04:31] Pathfinder: has joined #ruby
[17:22:35] Pathfinder: Ping timeout: 240 seconds
[17:29:21] Pathfinder: has joined #ruby
[17:52:15] Pathfinder: Ping timeout: 240 seconds
[18:29:34] Pathfinder: has joined #ruby
[19:22:11] Pathfinder: Ping timeout: 246 seconds
[20:23:39] Pathfinder: has joined #ruby
[20:53:26] Pathfinder: Ping timeout: 240 seconds
[21:23:39] Pathfinder: has joined #ruby
[21:27:17] Pathfinder: Remote host closed the connection

2015-12-09

[11:08:51] Pathfinder: has joined #ruby
[11:26:16] Pathfinder: Ping timeout: 256 seconds
[12:11:24] Pathfinder: has joined #ruby
[12:13:47] Pathfinder: Remote host closed the connection

2015-12-02

[15:33:07] Pathfinder: has joined #ruby
[15:36:30] Pathfinder: *.net *.split
[15:41:40] Pathfinder: has joined #ruby
[15:52:49] Pathfinder: *.net *.split

2015-10-30

[00:52:47] Pathfinder: Ping timeout: 260 seconds
[08:46:12] Pathfinder: has joined #ruby
[09:16:29] Pathfinder: Ping timeout: 250 seconds

2015-10-29

[16:56:01] Pathfinder: has joined #ruby
[17:47:18] Pathfinder: Ping timeout: 260 seconds
[18:29:33] Pathfinder: has joined #ruby
[20:00:27] Pathfinder: Ping timeout: 250 seconds
[21:10:56] Pathfinder: has joined #ruby

2015-10-27

[10:28:19] Pathfinder: has joined #ruby
[11:05:03] Pathfinder: Remote host closed the connection

2015-09-30

[07:07:52] Pathfinder: has joined #ruby
[09:19:38] Pathfinder: Ping timeout: 246 seconds
[11:05:03] Pathfinder: has joined #ruby
[12:36:47] Pathfinder: Remote host closed the connection
[16:25:19] Pathfinder: has joined #ruby
[16:32:49] Pathfinder: Ping timeout: 264 seconds
[20:25:52] Pathfinder: has joined #ruby
[20:47:50] Pathfinder: Remote host closed the connection

2015-09-29

[13:20:29] Pathfinder: has joined #ruby
[13:29:36] Pathfinder: Remote host closed the connection