xpl0iter

Activity Graph

Page 1 of 2 | Next »

2018-03-28

[01:21:31] xpl0iter: has joined #RubyOnRails

2018-03-27

[01:08:00] xpl0iter: has joined #RubyOnRails
[08:33:18] xpl0iter: Remote host closed the connection
[08:33:51] xpl0iter: has joined #RubyOnRails
[08:38:46] xpl0iter: Ping timeout: 264 seconds

2018-03-26

[07:33:24] xpl0iter: has joined #RubyOnRails
[08:39:06] xpl0iter: Remote host closed the connection
[08:39:36] xpl0iter: has joined #RubyOnRails
[08:44:29] xpl0iter: Ping timeout: 256 seconds
[13:33:45] xpl0iter: has joined #RubyOnRails
[13:36:59] xpl0iter: Remote host closed the connection

2018-01-08

[01:29:26] xpl0iter: has joined #RubyOnRails

2018-01-05

[01:46:53] xpl0iter: has joined #RubyOnRails
[04:57:05] xpl0iter: Ping timeout: 240 seconds
[05:05:39] xpl0iter: has joined #RubyOnRails
[05:58:57] xpl0iter: Ping timeout: 240 seconds
[06:41:32] xpl0iter: has joined #RubyOnRails
[08:29:36] xpl0iter: Remote host closed the connection

2018-01-04

[06:37:38] xpl0iter: has joined #RubyOnRails
[08:32:13] xpl0iter: Remote host closed the connection
[10:10:20] xpl0iter: has joined #RubyOnRails
[10:59:26] xpl0iter: Remote host closed the connection

2017-12-20

[05:48:37] xpl0iter: has joined #RubyOnRails
[08:28:23] xpl0iter: Remote host closed the connection
[08:28:50] xpl0iter: has joined #RubyOnRails
[08:33:20] xpl0iter: Ping timeout: 255 seconds
[13:08:14] xpl0iter: has joined #RubyOnRails

2017-11-17

[02:38:09] xpl0iter: has joined #RubyOnRails

2017-11-07

[03:12:46] xpl0iter: has joined #RubyOnRails
[04:19:44] xpl0iter: Ping timeout: 268 seconds

2017-09-21

[10:44:19] xpl0iter: has joined #RubyOnRails
[10:44:59] xpl0iter: Hello, is there anyway I could use stdout_redirect to get all the longs along with errors in one file. I am using puma
[10:45:25] xpl0iter: Sorry I meant all warning logs.
[10:45:32] xpl0iter: I don't want request logs to go into that file.

2017-08-04

[10:01:06] xpl0iter: has joined #RubyOnRails
[10:02:21] xpl0iter: Hi I am trying to do user.update(user_params) this works. But when I try to update with duplicate data for a unique column, it rolls back. Now user.errors.messages is empty. So how do I get this error?
[10:05:46] xpl0iter: tbuehlmann_: this model has several validations, but the field I am trying to update doesn't have a validation.
[10:07:55] xpl0iter: tbuehlmann_: oh ok. So I have to add validation for uniqueness in this case, right?
[12:28:37] xpl0iter: Hi I am using 2checkout sandbox to try out implementing a payment page. Now the issues is after the 2checkout payment is complete, it returns something to my application. Now if the page is refreshed the db data gets duplicated. How to avoid this?
[13:36:31] xpl0iter: Read error: Connection reset by peer

2017-07-25

[20:29:36] xpl0iter: has joined #RubyOnRails
[20:33:59] xpl0iter: Hello, I am trying to edit a db record using form_for tag. Now in the action, I am trying to do Profile.update(params.require(:profile).permit(:mobile). I think I am missing something. Anyway its not getting updated because its not getting the profile object from the form
[20:34:38] xpl0iter: Read error: Connection reset by peer
[20:35:28] xpl0iter: has joined #RubyOnRails
[20:35:31] xpl0iter: cAn someone please help me?
[21:37:31] xpl0iter: sorry it was a stupid one, anyway figured it out. Thanks

2017-05-12

[12:46:44] xpl0iter: has joined #RubyOnRails

2017-04-29

[08:56:38] xpl0iter: has joined #RubyOnRails
[12:36:43] xpl0iter: Read error: Connection reset by peer

2017-04-13

[06:11:17] xpl0iter: has joined #RubyOnRails
[11:53:05] xpl0iter: Remote host closed the connection
[12:57:56] xpl0iter: has joined #RubyOnRails
[16:30:24] xpl0iter: Remote host closed the connection
[18:20:21] xpl0iter: has joined #RubyOnRails
[18:33:44] xpl0iter: Ping timeout: 260 seconds

2017-04-12

[05:48:01] xpl0iter: has joined #RubyOnRails
[18:45:20] xpl0iter: has joined #RubyOnRails
[21:03:03] xpl0iter: Remote host closed the connection
[21:03:46] xpl0iter: has joined #RubyOnRails
[21:08:28] xpl0iter: Ping timeout: 260 seconds

2017-04-11

[10:54:01] xpl0iter: has joined #RubyOnRails
[10:57:12] xpl0iter: I am getting this error saying undefined method for active record relations. I have given attr_accessor :modified_by and yet it saying modified by is an undefined method
[10:57:20] xpl0iter: Can someone please tell me why this could be happeing?
[12:57:19] xpl0iter: Remote host closed the connection
[12:57:47] xpl0iter: has joined #RubyOnRails
[13:02:08] xpl0iter: Ping timeout: 252 seconds

2017-04-07

[15:08:23] xpl0iter: has joined #RubyOnRails
[16:30:05] xpl0iter: Remote host closed the connection

2017-04-05

[09:20:15] xpl0iter: has joined #RubyOnRails
[18:33:27] xpl0iter: Ping timeout: 240 seconds

2017-04-03

[13:19:18] xpl0iter: has joined #RubyOnRails
[13:23:45] xpl0iter: Hi when I run rails s command, I get these errors and it exits: http://kopy.io/qdsQp#rrpdJIWk88BpKc
[13:23:51] xpl0iter: Can someone please tell me whats going on?
[13:25:48] xpl0iter: Ok thanks a lot man.
[13:26:02] xpl0iter: Really appreciate it. BTW how did you figure out this is the issue so fast?
[13:26:17] xpl0iter: I mean I would like to know if you did some specific searches or something like that
[13:27:12] xpl0iter: Damn, I searched for the did you mean extend part alone, haha
[13:27:18] xpl0iter: Thanks mate.
[16:28:14] xpl0iter: Remote host closed the connection
[16:28:45] xpl0iter: has joined #RubyOnRails
[16:32:57] xpl0iter: Ping timeout: 240 seconds

2017-04-02

[12:19:42] xpl0iter: has joined #RubyOnRails
[12:22:08] xpl0iter: Hi I am trying to figure out why my rails app doesn't show anything. It just keeps on loading. Can someone please help me? This is the logs from puma: http://kopy.io/aaaC2#d5fPF46x71ZUr6
[12:27:52] xpl0iter: matthewd: oh, so I have to update ruby I guess?
[12:28:35] xpl0iter: wait, I have to downgrade. or upgrade rails. thanks
[12:30:22] xpl0iter: Remote host closed the connection

2017-03-31

[09:07:26] xpl0iter: has joined #RubyOnRails
[09:41:48] xpl0iter: Ping timeout: 260 seconds
[12:42:16] xpl0iter: has joined #RubyOnRails

2017-03-30

[09:21:36] xpl0iter: has joined #RubyOnRails
[10:56:17] xpl0iter: Hi I would like to know whether to use nginx with puma or just puma in my production server?
[11:00:26] xpl0iter: workmad3: thats great to know. Do you have any place where I can read about this stuff?
[11:01:33] xpl0iter: Also I read in digital ocean that puma is not designed to be accessed by users directly. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04
[11:01:59] xpl0iter: workmad3: So are they wrong?
[11:06:28] xpl0iter: workmad3: thanks a lot mate. Really appreciate it.
[16:28:27] xpl0iter: Remote host closed the connection

2017-03-29

[05:08:36] xpl0iter: has joined #RubyOnRails
[06:20:57] xpl0iter: Remote host closed the connection

2017-03-28

[12:54:55] xpl0iter: has joined #RubyOnRails
[14:01:44] xpl0iter: Ping timeout: 268 seconds
[14:04:07] xpl0iter: has joined #RubyOnRails
[14:08:27] xpl0iter: Ping timeout: 240 seconds
[14:14:17] xpl0iter: has joined #RubyOnRails
[15:07:07] xpl0iter: Read error: Connection reset by peer

2017-03-21

[13:28:52] xpl0iter: has joined #RubyOnRails

2017-03-15

[10:54:55] xpl0iter: has joined #RubyOnRails
[14:10:20] xpl0iter: Remote host closed the connection
[14:13:28] xpl0iter: has joined #RubyOnRails
[16:28:25] xpl0iter: Remote host closed the connection
[16:53:13] xpl0iter: has joined #RubyOnRails

2016-07-28

[11:11:48] xpl0iter: has joined #RubyOnRails
[11:12:34] xpl0iter: Hi, if a user selects an item from the dropdown box inside a form, the dropdown below should be populated with new data. Can someone please help me by hinting me on how to achieve this?
[14:59:14] xpl0iter: Ping timeout: 258 seconds
[15:12:09] xpl0iter: has joined #RubyOnRails
[16:07:55] xpl0iter: Ping timeout: 244 seconds
[16:10:20] xpl0iter: has joined #RubyOnRails
[16:12:09] xpl0iter: Client Quit

2016-07-26

[12:58:56] xpl0iter: has joined #RubyOnRails
[12:59:53] xpl0iter: I am using basic http authentication in rails for password protecting a page. Now I plan to move the whole thing to https. So my question is, will this basic http authentication be encrypted?
[13:50:17] xpl0iter: Quit: Leaving

2016-07-21

[09:42:18] xpl0iter: has joined #RubyOnRails
[14:17:53] xpl0iter: Ping timeout: 244 seconds

2016-07-20

[09:45:04] xpl0iter: has joined #RubyOnRails
[12:47:48] xpl0iter: Ping timeout: 276 seconds

2016-07-15

[09:45:25] xpl0iter: has joined #RubyOnRails
[09:47:27] xpl0iter: Hi, I am using will_paginate. Each of the items show a delete button for each entry as well. I don't have clue on how this delete button comes. Can someone please give me a hint? erb file where the paginate is being called:http://pastie.org/private/dxcz6if5zr2uw3bzo80nlg
[10:01:47] xpl0iter: lizard2010, I don't have a clue on how it came. I haven't specified anything May be it took it from this other paginate thing I had. Anyway, I just rmeoved the render part and manually gave a segment.each do statement
[15:19:39] xpl0iter: Quit: Leaving

2016-07-13

[07:14:23] xpl0iter: has joined #RubyOnRails
[07:15:13] xpl0iter: Hi I am having issues with has_many through relations, can someone please help me with this problem: http://stackoverflow.com/questions/38332567/how-to-associate-between-2-models-which-are-not-directly-related-in-rails
[07:33:13] xpl0iter: Quit: Leaving
[12:26:38] xpl0iter: has joined #RubyOnRails
[12:26:51] xpl0iter: I get this error: undefined method `left_outer_joins' when trying to use it.
[12:27:02] xpl0iter: Can some one please tell me why this happens?
[12:29:00] xpl0iter: dminuoso, https://gist.github.com/platoputhur/d9024bfb016a8a94dc8e7e068dc48cb6 But I have to use it
[12:31:53] xpl0iter: dminuoso, I am using AJAX so I am getting these errors in terminal. Also if I use joins instead of left_outer_joins its working. But thats not what I want, so..
[12:32:07] xpl0iter: Also I don't know how to get the full stack trace from terminal
[12:51:54] xpl0iter: jhass, thanks, I used include and it worked for me. I thought this one was new in 4. Sorry
[13:44:48] xpl0iter: Ping timeout: 276 seconds

2016-07-12

[12:55:07] xpl0iter: has joined #RubyOnRails
[12:57:09] xpl0iter: Hi, I have a active record query which returns the way I expected it to. Now I need to change it so that it displays the only records where one more condition is met. The condition is the application_profiles.id shouldn't exist in profile_segments.application_profile_id. Here is my current statement. http://pastie.org/private/vy6bp9mpez8y9goavos6ya
[12:57:28] xpl0iter: How do I add the "doesn't exist" condition along with this?
[12:59:36] xpl0iter: rvanlieshout, Ok. but how do I write it without the variables?
[13:01:33] xpl0iter: rvanlieshout, thanks, elaptics thanks. Will check it out.
[15:04:05] xpl0iter: Quit: Leaving

2016-07-07

[14:14:00] xpl0iter: has joined #RubyOnRails
[14:15:04] xpl0iter: Hi, I am trying to submit a form from a page to a different controller's action. But I need to get the current page's parameter to submit along with the form. So how do I get the parameter from the current URL?
[14:15:07] xpl0iter: Can someone please help me?
[14:17:48] xpl0iter: matthewd, this is my code for the form: http://pastie.org/private/a6cl80yl9evsqcm9sjlv6a and the current url is http://127.0.0.1:3000/segments/fa8fbe65-089e-4749-8513-9a5296d45e2d
[14:18:13] xpl0iter: I need to submit the value "fa8fbe65-089e-4749-8513-9a5296d45e2d" as a hidden value along with the form
[14:18:21] xpl0iter: So how do I get that part?
[14:28:38] xpl0iter: matthewd, yes, so how do I get it? Sorry if my question seems to be stupid.
[14:33:48] xpl0iter: matthewd, get '/segments/:id' => 'segments#show'
[16:29:42] xpl0iter: Quit: Leaving
[18:44:38] xpl0iter: has joined #RubyOnRails
[18:45:42] xpl0iter: Hi, I am trying to save a profile to profiles table. But it shows this: http://pastie.org/private/m0rb8sndnp70tdkyrevbsw instead of the insert statement. Can someone please help me to figure out why this happens?
[19:41:07] xpl0iter: Hi, is there anyway I can do a presence check in the model based on which action is calling it?
[21:04:54] xpl0iter: Remote host closed the connection

2016-07-05

[09:54:22] xpl0iter: has joined #RubyOnRails
[09:54:50] xpl0iter: Hi Ij my rails app, when I click on the submit button(which uses ajax), it is posting twice. So I guess I have included some js file twice in this. Is there anyway I can find out which one is causing the problem?
[09:56:41] xpl0iter: rvanlieshout, I don't see it. :( But the funny part is, if I click on it after a page reload, it only posts once. But then I click on any other page(I use will_paginate) to goto next page(page 2) and then click on this submit button, its getting posted twice
[09:59:27] xpl0iter: dminuoso, yes I am using turbolinks
[10:00:05] xpl0iter: dminuoso, turbolinks came with the rails them I purchased, so no.. :(
[10:00:32] xpl0iter: dminuoso, Ok, let em try. Thanks.
[10:01:17] xpl0iter: dminuoso, Because if came with the theme, I thought it might be something related to to the effects and stuff.
[10:01:44] xpl0iter: dminuoso, :D good enough. Thanks. I think there will be many things, I need to turn off before proceeding further then.
[10:04:22] xpl0iter: dminuoso, ok thanks a lot. Its working now. Really appreciate it. I will read more about it and see. Thanks for the tip.
[10:13:45] xpl0iter: dminuoso, sorry. Here is your cookie: http://www.cookiesociety.com/choc-cookie.png. Seriously though, thanks a lot.
[11:11:36] xpl0iter: So I have edit action(using ajax). After editing, when I hover over the paginate links, it has the id of the edited resource appended to it. Can someone please give me a clue on why this happens?
[11:13:48] xpl0iter: sevenseacat, lol, sorry. this is my edit and update actions: http://pastie.org/private/rgxob1s96bsb8l1wffq
[11:15:17] xpl0iter: sevenseacat, I am using will_paginate. This is the view: http://pastie.org/private/t2ew5gl5ogvtsiy9ywoq
[11:17:11] xpl0iter: sevenseacat, http://pastie.org/private/1ndvwllsu5xulfdoof6g
[11:17:44] xpl0iter: sevenseacat, this only happens after I edit something. I am using ajax for editing and updating the view
[11:18:39] xpl0iter: sevenseacat, before editing the links are: http://127.0.0.1:3000/segments?page=2. But after editing and the view updation, its like this: http://127.0.0.1:3000/segments/5e6d1ebd-9615-487f-a190-6b03c8fb2b41?page=2
[11:20:46] xpl0iter: line 9 in http://pastie.org/private/rgxob1s96bsb8l1wffq
[11:22:27] xpl0iter: sevenseacat, Its executes js to render a partial. The partial is this: http://pastie.org/private/waw20klormp4fygozpuyw
[11:26:08] xpl0iter: sevenseacat, thats super helpful. Thanks for pin pointing the issue.
[11:26:57] xpl0iter: yes :) Really appreciate it.
[14:11:01] xpl0iter: Quit: Leaving

2016-07-01

[12:49:03] xpl0iter: has joined #RubyOnRails
[12:50:19] xpl0iter: I am submitting a form using form helper. Now I have 2 hidden fields one id and another application id(which can't be null in the db). When I submit the form, the db is throwing error saying, application_id is null. What could be the problem?
[12:51:16] xpl0iter: context, now, the error page is showing the params, and it has application_id
[12:51:56] xpl0iter: sevenseacat, one sec
[12:56:07] xpl0iter: sevenseacat, context : Error: http://imgur.com/a/Kt7HB, code: form - http://pastie.org/private/rdfecskra0mtx6fihesfbg, controller: http://pastie.org/private/doljudydxo42ysqxtyojrw
[12:57:43] xpl0iter: sevenseacat, yes it is. I think you're confusing with 'id'. which is not
[12:57:46] xpl0iter: sevenseacat, oh ok.
[12:58:57] xpl0iter: sevenseacat, :O, so thats why its not working. Damn, let me check again
[13:00:04] xpl0iter: sevenseacat, where do I change it? In the hidden_tag helper?
[13:01:59] xpl0iter: sevenseacat, so I have to change it to hidden_tag right?
[13:03:02] xpl0iter: aah, ok, thanks
[14:22:41] xpl0iter: Quit: Leaving

2016-06-30

[11:06:23] xpl0iter: has joined #RubyOnRails
[11:08:17] xpl0iter: Hi, I am trying to do transactions. The problem is I have a transaction which will be affecting 3 tables. And based on some reading I just did, I have to do in the model file. the question is in which model file should be doing the transactions? So can someone please help me with this?
[11:13:32] xpl0iter: rvanlieshout, oh ok. So I will just create a method inside any of the model file and then call it from the controller. IS that correct?
[11:14:27] xpl0iter: I mean a method with the transaction
[11:18:07] xpl0iter: rvanlieshout, Ok thanks a lot. One more question(I think its stupid one, sorry). Whats that Foobar in Foobar.transaction?
[11:19:11] xpl0iter: rvanlieshout, Is that mandatory to give? I was going to give it like transaction do.
[11:21:14] xpl0iter: Ok thanks rvanlieshout
[12:54:09] xpl0iter: Read error: Connection reset by peer
[12:54:35] xpl0iter: has joined #RubyOnRails
[16:28:19] xpl0iter: Remote host closed the connection

2016-06-27

[15:08:26] xpl0iter: Should I put it in the same controller or somewhere else?
[15:08:26] xpl0iter: Hi, I need to use Digest::MD5.hexdigest() in one of my action. So where do I put the require 'digest/md5' statement?
[15:08:26] xpl0iter: has joined #RubyOnRails
[15:09:20] xpl0iter: Hi, I need to use Digest::MD5.hexdigest() in one of my action. So where do I put the require 'digest/md5' statement?
[15:09:21] xpl0iter: Should I put it in the same controller or somewhere else?
[15:10:23] xpl0iter: mikecmpbll, ok thanks
[16:29:21] xpl0iter: Remote host closed the connection

2016-06-22

[17:02:12] xpl0iter: has joined #RubyOnRails
[17:05:30] xpl0iter: Hi, I am trying to add payment gateway to my application. So the button has js associated with it. I have to update the js to include the amount in it. The problem is I have slider which determins the amount. So how do I go on about this?
[17:11:53] xpl0iter: alfiemax, sorry, what?
[17:12:18] xpl0iter: Should I be sending the js from server using Ajax?
[17:40:16] xpl0iter: Hi guys, is there anyway I can render a partial based on an ajax post reply?
[17:41:01] xpl0iter: So I am posting a value using ajax and then does some ops in the db. Now if it replies, I have to render a partial. Can that be done?
[19:40:57] xpl0iter: Remote host closed the connection

2016-06-21

[14:56:25] xpl0iter: has joined #RubyOnRails
[14:58:00] xpl0iter: Hi, I am getting the instance variables in the showplas.html.erb file, but when I try to access it from foobar.js.erb I can't. its showing nilClass nil. Can someone please tell me why this happens?
[16:02:06] xpl0iter: Quit: Leaving

2016-06-20

[12:17:44] xpl0iter: has joined #RubyOnRails
[12:19:13] xpl0iter: I have a slider which determines the cost of the product. Now I have to send a post request to the payment gateway with the cost param. Can anyone tell me how can I do this?
[12:19:50] xpl0iter: Essentially I have to get the value from the slider and then add it to the psot request and send it
[12:24:36] xpl0iter: norc, I tthink its going to be really complicated because I use sending many of the forms data as params for partials :[ Anyway thanks
[12:27:26] xpl0iter: norc, I know, I just never got around learning javascript properly. also just reazlize, I could just rewrite the whole post request by replacing what I don't need with what I need.
[12:28:35] xpl0iter: norc, hmm. I will have to do that. No way of avoiding it. Its becoming more and more clear nowadays
[15:54:51] xpl0iter: Quit: Leaving

2016-06-17

[13:46:17] xpl0iter: has joined #RubyOnRails
[13:47:51] xpl0iter: My action new in http://pastie.org/private/ssuqdqlgfw51hrzstynow is loading the application layout, no matter what I do. I have given the layout only tag at the beginning, Can someone please help me to find the issue?
[13:49:41] xpl0iter: Can someone please tell me why it still uses the application layout?
[13:50:13] xpl0iter: roelof, redirect_to root_url?
[16:27:24] xpl0iter: Remote host closed the connection

2016-06-15

[09:47:41] xpl0iter: Thats the only thing I did yesterday
[15:33:52] xpl0iter: Quit: Leaving