xploshioon

Activity Graph

Page 1 of 5 | Next »

2017-12-06

[22:54:20] xploshioon: has joined #RubyOnRails
[23:00:18] xploshioon: hello guys, I am having a problem with ransack, I have this https://gist.github.com/xploshioOn/9b6d75bd48564d8459df46d1961a1083 it seems that the request is doing good, but the query isn't done, and after clicking on search, the form is empty, even when the values are on the url, thanks
[23:00:59] xploshioon: it's like ransack is ignoring the params and not firing the search
[23:04:40] xploshioon: it can cause a problem if the model is called "Record"?
[23:20:42] xploshioon: ok, thanks @havenwood, I changed the model, routes, table and all the views that work with that, but still have the problem with ransack, do you see something wrong there? thanks
[23:36:38] xploshioon: Quit: Leaving

2017-11-28

[13:14:27] xploshioon: has joined #RubyOnRails
[13:49:50] xploshioon: Read error: Connection reset by peer

2017-08-10

[16:21:37] xploshioon: has joined #RubyOnRails
[16:55:47] xploshioon: Ping timeout: 260 seconds

2017-07-14

[00:24:12] xploshioon: has joined #RubyOnRails
[00:34:19] xploshioon: Quit: Leaving

2017-06-09

[03:53:20] xploshioon: has joined #RubyOnRails
[03:55:08] xploshioon: hello people how can I add format pdf to this link? I tried different ways but nothing <%= link_to lot_report_path(@lot.id, params.permit(:borough, :block, :receiving, :transferring, :adjacents)), :class => "btn btn-info btn-circle btn-lg", :target => "_blank" do %>
[03:56:07] xploshioon: at the begining, at the end, sometimes it does take the format, but not the params and viceversa
[03:57:44] xploshioon: @Radar, that adds a format param to the get params but don't create the url like report.pdf
[03:58:50] xploshioon: it creates a link like http://localhost:3000/lots/9084/report?receving=asd&block=123...
[03:59:06] xploshioon: it creates a link like http://localhost:3000/lots/9084/report?receving=asd&block=123&format=pdf...
[03:59:43] xploshioon: but i don't need it as param, I need it in the url, like the format to respond with a pdf file
[03:59:56] xploshioon: http://localhost:3000/lots/9084/report.pdf?receving=asd&block=123...
[03:59:59] xploshioon: like that one
[04:01:51] xploshioon: like this https://gist.github.com/xploshioOn/e5cba989ead3944a40c95d374010af33
[04:04:27] xploshioon: if I add it manually it works
[04:04:53] xploshioon: but need to generate the button to open the report with those get params
[04:08:28] xploshioon: if I remove the params and let just the format it works
[04:08:53] xploshioon: the button open reports.pdf
[04:09:03] xploshioon: but obviously without the params
[04:12:52] xploshioon: lot_report_path(@lot, {format: :pdf}.merge(params.permit(:name, :adjacents....
[04:12:56] xploshioon: that did the trick
[04:13:24] xploshioon: but why this works and in the other way don't? and, it's a bad way to do this?
[04:18:52] xploshioon: @radar, i know, that's why I am asking, really weird
[04:20:45] xploshioon: created 2 buttons in the same view with both and the same behaviour, I don't know why
[04:36:02] xploshioon: Quit: Leaving

2016-07-31

[20:40:22] xploshioon: has joined #RubyOnRails
[20:41:44] xploshioon: Hello Guys, someone has used this gem before? https://github.com/zquestz/omniauth-google-oauth2#configuration I am trying to change the name, I added the name to the initializer, but still comming with Google Oauth2 on the url
[20:41:46] xploshioon: https://github.com/zquestz/omniauth-google-oauth2#configuration
[20:56:32] xploshioon: @elomatreb, I added the name parameter to the initializer, but seems like a need to change the provider name in the model too, thanks
[21:14:28] xploshioon: Quit: Leaving

2016-07-25

[16:37:30] xploshioon: has joined #RubyOnRails
[16:38:14] xploshioon: hello people, can someone help me with this?
[16:38:17] xploshioon: https://gist.github.com/xploshioOn/9a96b5d5aaef237a38ec13847513d969
[16:38:45] xploshioon: I try to run rails s and it says middleware/stack.rb:74:in `insert': can't modify frozen Array (RuntimeError)
[16:41:16] xploshioon: @tubbo done https://gist.github.com/xploshioOn/9a96b5d5aaef237a38ec13847513d969
[16:41:27] xploshioon: its a rails 5 application
[16:41:41] xploshioon: idk if this has something to do
[16:42:01] xploshioon: bundle update
[16:42:27] xploshioon: and then it crashed
[16:42:48] xploshioon: is there a way of how can I put back a bundle update?
[16:43:39] xploshioon: I saw that is problematic hehe
[16:44:39] xploshioon: @havendwood that did the trick!
[16:45:09] xploshioon: thank you both guys @tubbo @havenwood
[18:34:58] xploshioon: Quit: Leaving

2016-07-22

[22:46:20] xploshioon: has joined #RubyOnRails
[22:51:26] xploshioon: hello guys, I am trying to run a migration and it says
[22:51:28] xploshioon: HINT: You might need to specify "USING geared::boolean".
[22:51:28] xploshioon: ActiveRecord::StatementInvalid: PG::DatatypeMismatch: ERROR: column "geared" cannot be cast automatically to type boolean
[22:51:44] xploshioon: something like this?
[22:51:45] xploshioon: t.change :geared, "USING geared::boolean", :default => false
[23:37:39] xploshioon: Quit: Leaving

2016-06-29

[06:06:50] xploshioon: has joined #RubyOnRails
[06:30:54] xploshioon: Quit: Leaving

2016-06-07

[20:43:39] xploshioon: has joined #RubyOnRails
[22:25:28] xploshioon: Quit: Leaving

2016-06-05

[06:13:48] xploshioon: has joined #RubyOnRails
[06:25:17] xploshioon: Quit: Leaving
[06:34:19] xploshioon: has joined #RubyOnRails
[06:52:50] xploshioon: hello people, can someone help me with this? https://gist.github.com/xploshioOn/1c05adc4df135ec5029c2606b5b46ee6 I am trying to format a text response to json
[06:53:33] xploshioon: the response.txt is whaat the API give to me
[07:01:59] xploshioon: yeah, but this will work just if the other key is "To" is there something more generic? for the case when the key have another name
[07:02:24] xploshioon: or maybe if the line has more than 3 keys
[07:03:29] xploshioon: it's crazy how they give a response with txt with no simple format to read
[07:04:54] xploshioon: maybe ill have to go with a request.each by line
[07:05:02] xploshioon: and format in that way
[07:06:41] xploshioon: right, is just the same...
[07:11:28] xploshioon: I think I need to sleep haha
[07:14:41] xploshioon: maybe a split inside the first split?
[07:31:06] xploshioon: what about something like this?
[07:31:07] xploshioon: https://gist.github.com/xploshioOn/58e3da90873f76f8c7a8a0ecae4d3b18
[07:31:20] xploshioon: is just an idea of course, need to be clean xD
[07:35:46] xploshioon: yeah,sorry I am a newbie
[07:36:07] xploshioon: @universal solution sounds good, at least to start
[07:39:36] xploshioon: yeah, that is exactly what the API give me
[07:45:12] xploshioon: ok, and this will work if the value has no commas?
[07:46:32] xploshioon: nice, how can I put this in my example? xD
[07:54:01] xploshioon: it gives me an empty json
[07:58:33] xploshioon: https://gist.github.com/xploshioOn/1c05adc4df135ec5029c2606b5b46ee6
[07:59:20] xploshioon: never seen crpaste before
[08:10:31] xploshioon: perfect, both solutions works perfectly guys
[08:10:34] xploshioon: so much thanks
[09:26:57] xploshioon: @universal are yu there?
[16:00:58] xploshioon: has joined #RubyOnRails
[16:04:29] xploshioon: hello people, I am having problems creating a gem, I was runing "gem build my_file.gemspec" and everything was ok, but when I renamed a File inside a lib subfolder, now when I run the gemspec it tells me that "[route_to_file]are not files"
[16:05:33] xploshioon: like it was looking for the file that was there, but in my gem there is no call to that file, I changed the require too
[16:06:04] xploshioon: Gem::InvalidSpecificationException
[16:09:56] xploshioon: hello again jhass hehe
[16:10:15] xploshioon: well seems to be that i need to add my changes to the git repository
[16:10:43] xploshioon: I just make a commit and everything works again
[16:11:12] xploshioon: am I doing something wrong or bad?
[16:11:22] xploshioon: is just my first gem
[16:14:12] xploshioon: whatis a best approach?
[16:14:23] xploshioon: make an array manually?
[16:24:36] xploshioon: and that include all the neccesary?
[18:35:31] xploshioon: Quit: Leaving

2016-06-01

[14:01:16] xploshioon: has joined #RubyOnRails
[14:19:29] xploshioon: Hi guys, can someone help me with this? (I need to load the contracts and order this by the count of fees but where amount > used AND date < Date.today) https://gist.github.com/xploshioOn/56770f52b91689fd0b6e8bd40aa88d12 I read about count_cache but don't work for me because the count need to be conditioned.
[14:25:27] xploshioon: I tried with the second solution here http://stackoverflow.com/questions/16996618/rails-order-by-results-count-of-has-many-association but same problem, when there is no asociation created, they dissapear from the list
[14:30:37] xploshioon: Hi guys, can someone help me with this? (I need to load the contracts and order this by the count of fees but where amount > used AND date < Date.today) https://gist.github.com/xploshioOn/56770f52b91689fd0b6e8bd40aa88d12 I read about count_cache but don't work for me because the count need to be conditioned.
[14:35:27] xploshioon: ok, of course, sorry for that folks ;)
[14:36:22] xploshioon: well, I think ill use callbacks for after save and after destroy to update a counter field manually
[14:36:40] xploshioon: seems to be the only solution
[14:40:07] xploshioon: @matthewd I tried with a subquery, but when there is no associations created, they dissapear from the list. and thinking about the use, is better to have the field and not doing always the calculation
[14:53:47] xploshioon: Quit: Leaving

2016-05-13

[00:45:54] xploshioon: Quit: Leaving

2016-05-12

[21:18:40] xploshioon: has joined #RubyOnRails
[21:26:39] xploshioon: hello, can someone help me to understand if I am doing something wrong with this? Here is the gist https://gist.github.com/xploshioOn/da0b4c9f031326405051c64c4c990439 I have the doubt, why is "Fee Load (0.4ms) SELECT DISTINCT..." in the log after something is rendered if I load that in the controller?
[21:28:08] xploshioon: and in the same log of webrick, why the "Fee Load (0.4ms)" in the log is color purple, but the "Contract Load (0.2ms)" is in turquoise?
[21:30:33] xploshioon: I tried to search about the color thing but can't find something, my english is not so good
[21:40:28] xploshioon: @tubbo sorry, why this line https://gist.github.com/xploshioOn/da0b4c9f031326405051c64c4c990439#file-log-txt-L9 is after some rendered partial?
[21:41:52] xploshioon: a database call is fired after something is rendered?
[21:42:21] xploshioon: or I am just interpreting this bad?
[21:46:07] xploshioon: @tubbo here is an image about the color thing, why this have diferent colors? http://i.imgur.com/W4FNv9U.png
[22:42:56] xploshioon: @tubbo thanks, I understand now. so then I can make something like Users.all in a select in the view instead of @users and filling @users in the controller and there is no diference in performance?

2016-05-04

[08:16:39] xploshioon: has joined #RubyOnRails
[09:20:02] xploshioon: Quit: Leaving

2016-05-02

[20:39:58] xploshioon: has joined #RubyOnRails
[21:10:09] xploshioon: Quit: Leaving

2016-04-28

[20:34:51] xploshioon: has joined #RubyOnRails
[20:37:13] xploshioon: hi guys, i am working with delayed jobs to update some contracts table and want to send a flash to the user when this is finished, is there a way to acomplish this without a third party platform like pusher?
[20:41:17] xploshioon: there is just an user
[20:41:35] xploshioon: is an app in the server of client and just 1 person use this
[20:43:30] xploshioon: so I try to see if in delayed jobs are still rows and when no i send the notification?
[20:43:42] xploshioon: sorry for my english
[22:15:32] xploshioon: Quit: Leaving

2016-04-06

[18:30:33] xploshioon: has joined #RubyOnRails
[18:42:16] xploshioon: Quit: Leaving

2016-03-22

[02:12:31] xploshioon: has joined #RubyOnRails
[02:23:31] xploshioon: Ping timeout: 248 seconds

2016-03-21

[21:11:37] xploshioon: has joined #RubyOnRails
[21:13:55] xploshioon: Hi guys, I am trying to use this gem https://github.com/mhfs/devise-async I installed too the gem delayed job and configured, but I need to run a command to start delayed job in production or I just push and don't need anything to do? and thanks, new with this...
[22:06:53] xploshioon: Quit: Leaving

2016-03-19

[16:17:10] xploshioon: has joined #RubyOnRails
[19:01:58] xploshioon: Quit: Leaving

2016-03-16

[17:50:11] xploshioon: has joined #RubyOnRails
[17:50:55] xploshioon: Hi guys, i have a helper and need to pass a partial to this, how can I achieve this?
[17:56:12] xploshioon: Quit: Leaving

2016-03-12

[17:15:26] xploshioon: has joined #RubyOnRails
[18:23:51] xploshioon: Quit: Leaving

2016-03-11

[16:02:12] xploshioon: has joined #RubyOnRails
[16:51:18] xploshioon: Quit: Leaving

2016-03-02

[21:33:45] xploshioon: has joined #RubyOnRails
[21:37:02] xploshioon: in a nested form, how can I validate if "ID"... if I make and f.input i can see the value, but in and if how can I know the value?
[22:00:21] xploshioon: @arup_r that works,thanks
[22:15:36] xploshioon: Read error: Connection reset by peer
[22:32:05] xploshioon: has joined #RubyOnRails
[23:44:12] xploshioon: Quit: Leaving

2016-02-29

[14:46:51] xploshioon: has joined #RubyOnRails
[14:57:42] xploshioon: hello guys, how are you? I have a problem, I am using this gem https://github.com/ritxi/sermepa_web_tpv/blob/master/lib/sermepa_web_tpv/request.rb and need the signature to be in the options or in another variable, but I can't understand how to do it, the options are filled correctly, but I need the signature too, if I try with variable.signature it says is a private method, can you tell me what is the way? thanks
[15:06:38] xploshioon: @arup_r I am not an expert and maybe I am wrong but something like this maybe can help config.autoload_paths += Dir["#{config.root}/app/validators/**/"] maybe the path is wrong but you can start from that... I think... hahaha
[15:11:25] xploshioon: hello guys, how are you? I have a problem, I am using this gem https://github.com/ritxi/sermepa_web_tpv/blob/master/lib/sermepa_web_tpv/request.rb and need the signature to be in the options or in another variable, but I can't understand how to do it, the options are filled correctly, but I need the signature too, if I try with variable.signature it says is a private method, can you tell me what is the way? thanks
[15:13:59] xploshioon: @arup_r I am a simple man xD
[15:42:32] xploshioon: hello guys, how are you? I have a problem, I am using this gem https://github.com/ritxi/sermepa_web_tpv/blob/master/lib/sermepa_web_tpv/request.rb and need the signature to be in the options or in another variable, but I can't understand how to do it, the options are filled correctly, but I need the signature too, if I try with variable.signature it says is a private method, can you tell me what is the way? thanks
[15:42:58] xploshioon: I am blocked here, sorry :(
[15:49:50] xploshioon: you are the funny person at parties? :-/
[15:50:40] xploshioon: oh no, with my problem
[15:58:13] xploshioon: why there is a signature private method?
[15:58:35] xploshioon: in the params method is called, but I really don't understand the way it works
[16:02:33] xploshioon: if I run request.options, it gives me all the params I need except the signature, can you tell me why?
[16:02:57] xploshioon: and sorry for my bad english
[16:06:09] xploshioon: I tried with signature = SermepaWebTpv::Signature.new(), but then what? I need to pass parameters? need to run then signature.signature? I tried that and it says is nil and throws error
[16:06:16] xploshioon: sorry, I am new with this
[16:14:42] xploshioon: @tubbo this is my controller https://gist.github.com/xploshioOn/440f15709f0b714ce82a, what I need to add to create the signature?
[16:15:58] xploshioon: well, let me verify the config
[16:21:44] xploshioon: @tubbo well, fuck the gem, I make my private method that create the signature and @options["DS_Merchant_MerchantSignature"] = signature(@options)
[16:22:04] xploshioon: aaaand it works
[16:22:40] xploshioon: hahaha created and issue in the gem to know what's the problem but now is working, thanks for your help @tubbo
[17:18:03] xploshioon: Quit: Leaving
[21:57:51] xploshioon: has joined #RubyOnRails
[21:58:19] xploshioon: hi people, anyone know how can I solve this error? Mcrypt::InvalidKeyError (Key length 15 is not supported by tripledes.)
[22:00:00] xploshioon: where do I change that? that error happens when the bank sends me a notification with a json
[22:00:54] xploshioon: ok, let me gist this
[22:08:01] xploshioon: ok @tubbo here it is https://gist.github.com/xploshioOn/c4df518cc09416fe5f31
[22:08:26] xploshioon: I receive a post with data, and that's the action, the data and the error
[22:10:47] xploshioon: if remote_response.valid? && remote_response.success?
[22:11:14] xploshioon: and it goes to here, the valid and success
[22:11:15] xploshioon: https://github.com/ritxi/sermepa_web_tpv/blob/master/lib/sermepa_web_tpv/response.rb
[22:15:49] xploshioon: @acosonic with that you are saying that every number, in numbers is "num"
[22:35:20] xploshioon: Quit: Leaving

2016-02-24

[21:51:42] xploshioon: has joined #RubyOnRails

2016-02-19

[16:56:52] xploshioon: has joined #RubyOnRails
[17:14:20] xploshioon: Quit: Leaving

2016-02-18

[15:25:50] xploshioon: has joined #RubyOnRails
[15:30:09] xploshioon: hi guys, i have a nested form,and the problem is that when i load the edit, the fields of the other model isn't loaded
[15:30:33] xploshioon: anyone have an example of create and update with a nested form?
[15:30:52] xploshioon: reusing the form from a partial
[15:38:21] xploshioon: @arup_r https://gist.github.com/xploshioOn/1591bb19c9242a3f8bb3
[15:38:44] xploshioon: the thing is that i want to reuse the same form in create and update
[15:38:50] xploshioon: the create works nice
[15:39:10] xploshioon: but when i go to edit, the fields of user aren't loaded in the form
[15:40:10] xploshioon: the last file
[15:48:52] xploshioon: arup_r the seems to work in the update but now in the new the form isn't rendered
[15:54:04] xploshioon: @arup_r I make the build in the new, that was the trick
[15:54:08] xploshioon: @arup_r thanks
[17:53:58] xploshioon: Ping timeout: 255 seconds

2016-02-17

[22:27:02] xploshioon: has joined #RubyOnRails
[22:45:23] xploshioon: hi guys, i am having a problem saving in database with nested attributes, here is the gist
[22:45:25] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35รง
[22:45:28] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35
[22:45:50] xploshioon: i am getting this "ActiveRecord::AssociationTypeMismatch in CompaniesController#create"
[22:47:39] xploshioon: anyone that knows that is the error in the gist and why i am getting that error?
[22:51:28] xploshioon: @maletor i updated the gist
[22:51:29] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35
[22:51:37] xploshioon: included the params
[22:56:24] xploshioon: @maletor updated https://gist.github.com/xploshioOn/50022fd19880511e4d35
[23:00:02] xploshioon: ok, that works, the action don't give me and error
[23:00:07] xploshioon: but the user isn't created
[23:04:32] xploshioon: in the log it says "Unpermitted parameter: user"
[23:10:23] xploshioon: @StaticVoid <%= stylesheet_link_tag "chartist.min" %>
[23:11:26] xploshioon: how can I create both, company and user in the same .save? @maletor
[23:12:41] xploshioon: the permit with user_attributes pass the form like ok, save the company but the user isn't saved
[23:12:58] xploshioon: it says in the log unpermitted param [:user]
[23:13:15] xploshioon: unpermitted param: user*
[23:31:26] xploshioon: @maletor thanks, that works perfectly
[23:31:29] xploshioon: have a good night
[23:31:37] xploshioon: Quit: Leaving

2016-02-16

[21:20:12] xploshioon: that gives me and empty collection
[21:23:04] xploshioon: https://gist.github.com/xploshioOn/a7cb083eb477aedbfdd0
[21:23:53] xploshioon: tha's so simple
[21:27:18] xploshioon: that did the trick :D
[21:27:35] xploshioon: i owe you a beer ;)
[21:28:39] xploshioon: ill try hehe
[22:31:00] xploshioon: Quit: Leaving