Page 1 of 2 | Next »
[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: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?
[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
[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
[13:23:45] xpl0iter: Hi when I run rails s command, I get these errors and it exits: http://kopy.io/qdsQp#rrpdJIWk88BpKc
[13:26:17] xpl0iter: I mean I would like to know if you did some specific searches or something like that
[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
[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: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?
[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?
[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
[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
[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:51:54] xpl0iter: jhass, thanks, I used include and it worked for me. I thought this one was new in 4. Sorry
[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
[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: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
[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?
[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
[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: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:22:27] xpl0iter: sevenseacat, Its executes js to render a partial. The partial is this: http://pastie.org/private/waw20klormp4fygozpuyw
[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:56:07] xpl0iter: sevenseacat, context : Error: http://imgur.com/a/Kt7HB, code: form - http://pastie.org/private/rdfecskra0mtx6fihesfbg, controller: http://pastie.org/private/doljudydxo42ysqxtyojrw
[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: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.
[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: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?
[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: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?
[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?
[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:28:35] xpl0iter: norc, hmm. I will have to do that. No way of avoiding it. Its becoming more and more clear nowadays
[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?