« Back to channel list

#RubyOnRails - 13 May 2018

« Back 1 day Forward 1 day »
[00:03:41] orbyt_: has joined #RubyOnRails
[00:06:04] hgost: has left #RubyOnRails: ("WeeChat 2.1")
[00:07:49] ur5us: has joined #RubyOnRails
[00:08:07] eckhardt: has joined #RubyOnRails
[00:09:47] andrew9184: has joined #RubyOnRails
[00:41:25] andrew9184: has joined #RubyOnRails
[00:42:55] andrew9184: has joined #RubyOnRails
[00:47:30] cagomez_: has joined #RubyOnRails
[00:47:50] Ericx2x: has joined #RubyOnRails
[01:17:02] samosaphile: has joined #RubyOnRails
[01:21:21] tdy: has joined #RubyOnRails
[01:21:59] cagomez: has joined #RubyOnRails
[01:34:18] gambl0re: has joined #RubyOnRails
[02:04:20] gheegh: has joined #RubyOnRails
[02:17:43] garyserj: has joined #RubyOnRails
[02:17:53] garyserj: I was looking on http://guides.rubyonrails.org/v5.0/form_helpers.html and it says form_tag({controller: "people", action: "search"}, method: "get", class: "nifty_form") But when try that in my erb file, I get this in my html form_tag(controller: "people", action: "search", method: "get", class: "nifty_form") which is clearly not valid html. Also, should my controller be called person or
[02:17:53] garyserj: people? I thought the controller should be singular and the table will be plural. Yet it has controller as plural.
[02:19:15] aex: has joined #RubyOnRails
[02:45:34] mices: has joined #RubyOnRails
[02:57:36] sevenseacat: has joined #RubyOnRails
[03:31:59] bobbobbins: has joined #RubyOnRails
[03:33:03] apparition: has joined #RubyOnRails
[04:02:10] roamingdog: has joined #RubyOnRails
[04:29:58] duderonomy: has joined #RubyOnRails
[04:37:40] Technodrome: has joined #RubyOnRails
[04:43:14] quazimodo: has joined #RubyOnRails
[05:02:00] quazimodo: has joined #RubyOnRails
[05:15:42] psychoslave: has joined #RubyOnRails
[05:23:24] andrew91841: has joined #RubyOnRails
[06:08:10] Radar: GOOD AFTERNOON
[06:08:33] baweaver: GOOD AFTERNOON RADAR
[06:08:57] Radar: I spent 5 hours at a shopping centre today which is about 4hrs30 longer than I wanted to be there.
[06:10:57] baweaver: New article out on dealing with different types of state in Ruby - https://medium.com/@baweaver/functional-programming-in-ruby-state-5e55d40b4e67
[06:10:58] baweaver: Stemmed from a lot of questions I got from juniors I mentor
[06:12:05] Radar: I was just reading that now
[06:12:36] Radar: "That especially applies to methods." <- you should show an example for the code block after here
[06:12:41] Radar: ACTION And then the next code block too
[06:17:58] baweaver: Be back on in a bit.
[06:25:25] Saukk: has joined #RubyOnRails
[06:34:59] Technodrome: has joined #RubyOnRails
[06:38:01] troys: has joined #RubyOnRails
[06:46:51] Technodrome: has joined #RubyOnRails
[07:00:45] mikecmpbll: has joined #RubyOnRails
[07:01:56] lunarkitty7: has joined #RubyOnRails
[07:04:37] apparition: has joined #RubyOnRails
[07:13:33] ariejan: has joined #RubyOnRails
[07:23:44] vedu_: has joined #RubyOnRails
[07:31:39] darkhanb: has joined #RubyOnRails
[07:54:04] quazimodo: has joined #RubyOnRails
[07:56:20] conta: has joined #RubyOnRails
[08:06:36] alfiemax: has joined #RubyOnRails
[08:26:06] roamingdog: has joined #RubyOnRails
[08:27:05] apeiros: has joined #RubyOnRails
[08:28:29] Puffball: has joined #RubyOnRails
[08:45:21] Technodrome: has joined #RubyOnRails
[08:49:04] prahal: has joined #RubyOnRails
[08:50:42] marr: has joined #RubyOnRails
[09:01:34] alfiemax: has joined #RubyOnRails
[09:26:35] sameerynho: has joined #RubyOnRails
[09:31:58] alfiemax: has joined #RubyOnRails
[09:32:50] apparition: has joined #RubyOnRails
[09:50:16] sonOfRa: has joined #RubyOnRails
[09:55:21] alfiemax: has joined #RubyOnRails
[10:12:30] apeiros: has joined #RubyOnRails
[10:15:56] prahal: has joined #RubyOnRails
[10:16:36] prahal: has joined #RubyOnRails
[10:22:12] mices: has joined #RubyOnRails
[10:22:17] apeiros: has joined #RubyOnRails
[10:23:14] mices: i'm trying to render a partial from create.js.erb and the log says missing template, the template is in app/views/transactions but it's searching app/views
[10:23:52] mices: $('#drop_in_container').html('<%= j render partial: '/transactions/receipt', locals: @transaction %>')
[10:24:13] mices: the path to the file is app/views/transactions/_receipt.html.erb
[10:30:05] qnaal: has joined #RubyOnRails
[10:40:03] alfiemax: has joined #RubyOnRails
[10:43:24] Radar: mices: UnknownFormat I'm betting because you're rendering javascript
[10:43:33] Radar: format for the partial is wrong likely. You've got html. It'd be expecting js.
[10:43:39] helpa: Next question, please!
[10:44:04] mices: when i googled this, it appears as if it's perfectly normal to render the html partial
[10:47:51] prahal: has joined #RubyOnRails
[10:48:03] conta: has joined #RubyOnRails
[10:53:06] sevenseacat: not making any kind of guesses without seeing the error message
[10:58:35] universa1: has joined #RubyOnRails
[11:01:43] alfiemax: has joined #RubyOnRails
[11:18:21] Prutheus: has joined #RubyOnRails
[11:19:56] Prutheus: Hello. I am using sidekiq. I have a model called Search where search requests on data gets queued. Now I have a scheduler which should iterate every second over all searches and check if they should get executed. For that, my scheduler is a sidekiq job with a inf loop where it reuqests all Searches: searches = Search.all ...
[11:20:26] Prutheus: My problem is, that when I update a search outside the scheduler, it still has the old data in the scheduler
[11:20:32] Prutheus: Do you need to check any code?
[11:23:47] conta: has joined #RubyOnRails
[11:24:39] nigh7fox: has joined #RubyOnRails
[11:26:32] nigh7fox: hello, is rails able to launch if my ruby version is 2.5.1 but it was developed on 2.5.0? or should I downgrade getting random errors.
[11:29:01] Radar: nigh7fox: your punctuation is faulty
[11:29:09] Radar: nigh7fox: "getting random errors"?
[11:29:12] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[11:29:37] nigh7fox: ofcourse. i'll try again sec lol
[11:33:44] nigh7fox: https://pastebin.com/2g6SjEaK <-- stacktrace, problem: got a production server source that I need to launch to check performance but I have little to no rails experience. I did install the bundle gems etc.
[11:37:57] jottr: has joined #RubyOnRails
[11:53:16] kapil___: has joined #RubyOnRails
[11:54:42] jottr: has joined #RubyOnRails
[12:10:17] vedu_: has joined #RubyOnRails
[12:13:08] gheegh: has joined #RubyOnRails
[12:30:26] tomaw: has joined #RubyOnRails
[12:32:39] lunarkitty7: has joined #RubyOnRails
[12:33:39] jnollette: has joined #RubyOnRails
[12:33:39] psychoslave: has joined #RubyOnRails
[12:39:34] za1b1tsu: has joined #RubyOnRails
[12:47:47] drale2k_: has joined #RubyOnRails
[13:07:22] mostlybadfly: has joined #RubyOnRails
[13:08:44] za1b1tsu: has joined #RubyOnRails
[13:13:00] GodFather: has joined #RubyOnRails
[13:33:01] ariejan: has joined #RubyOnRails
[13:57:13] za1b1tsu: has joined #RubyOnRails
[13:58:49] conta: has joined #RubyOnRails
[14:06:33] DrYockel: has joined #RubyOnRails
[14:25:24] lunarkitty7: has joined #RubyOnRails
[14:26:49] RougeR: has joined #RubyOnRails
[14:26:50] RougeR: https://gist.github.com/CodePint/a3d86e6dbb14d884836d404f4093ede4
[14:27:06] RougeR: anyone able to look at this, new rails. i dont know how to pass the params from new to create
[14:29:37] conta: has joined #RubyOnRails
[14:30:01] tuskkk___: has joined #RubyOnRails
[14:38:10] codelahoma: has joined #RubyOnRails
[14:45:31] ariejan: has joined #RubyOnRails
[14:46:12] gheegh: has joined #RubyOnRails
[14:47:08] ellcs: has joined #RubyOnRails
[14:49:23] codelahoma: has joined #RubyOnRails
[14:55:49] tuskkk___: Hello, I need to use AWS sdk with rails, I have installed the gem, what is the correct way to initialize it and use it?
[14:56:02] tuskkk___: e.g is there any Component class I can make for it?
[14:56:15] tuskkk___: horizontal availability?
[15:00:13] ariejan: has joined #RubyOnRails
[15:00:26] dang`r`us: are there no docs?
[15:09:18] mices: has joined #RubyOnRails
[15:09:31] mices: sevenseacat: ActionView::MissingTemplate (Missing partial transactions/_receipt, application/_receipt with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
[15:11:35] RougeR: is there a rails 5 way of doing this
[15:11:36] RougeR: https://stackoverflow.com/questions/4641044/how-to-pass-parameters-between-new-and-create-actions?rq=1
[15:15:55] vedu_: has joined #RubyOnRails
[15:16:24] cagomez: has joined #RubyOnRails
[15:19:01] Dimik: has joined #RubyOnRails
[15:21:34] tuskkk___: dang`r`us: not very clear, https://docs.aws.amazon.com/sdk-for-ruby/v3/api/index.html
[15:28:20] roamingdog: has joined #RubyOnRails
[15:33:57] sagax: has joined #RubyOnRails
[15:38:14] apeiros_: has joined #RubyOnRails
[15:47:06] Fernando-Basso: has joined #RubyOnRails
[15:55:39] drale2k_: I have a bug in my rails app where everything is logged to the terminal twice. redirect_to is also not working and i think it has something to do with turbolinks
[15:56:12] drale2k_: also when i navigate through my app, the page laods and then it loads again after the blue turbolinks progress bar at the top finishes loading
[15:56:34] drale2k_: has anyone experiences this issue with Rails 5?
[15:56:40] drale2k_: experienced *
[15:57:49] ellcs: has joined #RubyOnRails
[16:04:18] RougeR: i might have seen something similar
[16:04:31] RougeR: ended up restarting the server
[16:04:46] RougeR: not a very useful answer i know
[16:16:47] dang`r`us: tuskkk___, have you found https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/welcome.html ?
[16:17:10] dang`r`us: it's linked on that page
[16:40:52] orbyt_: has joined #RubyOnRails
[16:43:37] tuskkk___: dang`r`us: I did, but I need to use Route53 only, unable to get it initialized, all they have is https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Route53/Client.html
[16:43:45] quazimodo: has joined #RubyOnRails
[16:44:24] prahal: has joined #RubyOnRails
[16:45:14] prahal: has joined #RubyOnRails
[16:47:05] tomaw: has joined #RubyOnRails
[16:51:02] codelahoma: has joined #RubyOnRails
[16:54:04] nemesit|znc: anyone got an idea how I can get rid of
[16:54:06] nemesit|znc: /rails/railtie/configuration.rb:97:in `method_missing': undefined method `active_storage'
[16:54:35] nemesit|znc: just tryingto upgrade from rails 4 to 5
[16:56:11] tomaw: has joined #RubyOnRails
[17:17:46] gheegh: has joined #RubyOnRails
[17:27:49] jottr: has joined #RubyOnRails
[17:31:00] tuskkk___: its being so non trivial :(
[17:33:36] alfiemax: has joined #RubyOnRails
[17:42:29] prahal: has joined #RubyOnRails
[17:44:39] ellcs: has joined #RubyOnRails
[17:45:07] reber: has joined #RubyOnRails
[17:48:43] gheegh: has joined #RubyOnRails
[18:06:23] ariejan: has joined #RubyOnRails
[18:06:27] RougeR: quick quested regarding nested resources
[18:06:42] RougeR: i have a climbs controller
[18:06:52] RougeR: and i want to view climbs by gym or by user
[18:07:54] RougeR: using resourceful nested routing i could get gym/routes/:id and user/route/:id
[18:08:01] ariejan: has joined #RubyOnRails
[18:08:07] RougeR: but they are oth going to use the show method on the climbs controller
[18:08:15] RougeR: should i use seperate controller methods
[18:08:27] RougeR: i.e show_route_by_gym
[18:08:37] RougeR: or should i use an if/else statement and query the params
[18:08:50] jottr: has joined #RubyOnRails
[18:11:52] marr: has joined #RubyOnRails
[18:16:38] mices: has joined #RubyOnRails
[18:26:19] ule: has joined #RubyOnRails
[18:36:19] tuskkk___: can someone link to an intermediate rails app that connects some API, displays some result through the UI, for learning purposes...
[18:36:58] tuskkk___: I found the blog example video very basic, still have no idea how to render some service call data through the view
[18:40:21] Saukk: has joined #RubyOnRails
[18:41:58] mikecmpb_: has joined #RubyOnRails
[18:46:19] psychoslave: has joined #RubyOnRails
[18:54:36] gheegh: has joined #RubyOnRails
[18:54:43] ayonkhan: has joined #RubyOnRails
[19:05:40] weaksauce: has joined #RubyOnRails
[19:10:15] prahal: has joined #RubyOnRails
[19:16:47] ayonkhan: has joined #RubyOnRails
[19:41:55] NoGodDamnIdea: has joined #RubyOnRails
[19:42:25] blackcross: tuskkk___, if you have an API available, you don't need rails, what you're asking about is more javascript than 'rails' specific
[19:43:08] blackcross: tuskkk___: http://edgeguides.rubyonrails.org/action_cable_overview.html
[19:43:31] blackcross: has streams, broadcasting, subscription, etc
[19:43:48] tuskkk___: don't need that
[19:44:54] tuskkk___: first use case - api gives me a list of IP's, my db has some code names against them, need to show them to the user.
[19:45:38] orbyt_: has joined #RubyOnRails
[19:46:12] blackcross: list of IPs is stored as json, model instance, or what?
[19:47:09] blackcross: how is the API accessed?
[19:48:41] blackcross: and the AWS SDK accesses it how? RESTful API?
[19:50:09] tuskkk___: blackcross: tried writing something, https://bpaste.net/show/fdc743fce840, its probably incorrect, but I hope you get the idea
[19:50:37] tuskkk___: I need to make that work, I created DNSModel as response rendering model
[19:51:04] tuskkk___: Server is the data stored in postgres
[19:54:44] blackcross: i don't see a problem with that pseudo code, so what do you want to do after all the loops finish?
[19:55:58] tuskkk___: blackcross: put all those models in a list and print them at the view
[19:57:20] jottr: has joined #RubyOnRails
[20:00:05] blackcross: add model.save after end of inner loop if you want it saved, otherwise create an array @models = [] or collection @models = {}, and at the end of the inner loop, have models.append(model) or models << model depending on if u are using an array or collection, then just do return models or render json: models
[20:00:14] blackcross: depending on how you want to send it to the client
[20:01:38] cagomez: has joined #RubyOnRails
[20:03:29] tuskkk___: https://usercontent.irccloud-cdn.com/file/tNHKBrdT/Screen%20Shot%202018-05-14%20at%201.33.06%20AM.png
[20:03:37] tuskkk___: @blackcross that happened^
[20:04:48] tuskkk___: @blackcross that inner model is just a class for rendering logic, I don't know its terminology in terms of rails
[20:05:22] tuskkk___: yes, I can make it a dictionary, but I'd prefer a class...
[20:06:22] tuskkk___: the screenshot came from https://bpaste.net/show/ff38e6fee7bd
[20:07:26] prahal: has joined #RubyOnRails
[20:24:59] dviola: has joined #RubyOnRails
[20:26:51] cagomez: has joined #RubyOnRails
[20:28:02] cagomez: has joined #RubyOnRails
[20:36:04] uks: has joined #RubyOnRails
[20:37:46] jackhum: has joined #RubyOnRails
[20:55:53] ariejan: has joined #RubyOnRails
[21:06:21] jottr: has joined #RubyOnRails
[21:07:45] ur5us: has joined #RubyOnRails
[21:17:18] ur5us: has joined #RubyOnRails
[21:38:19] vedu_: has joined #RubyOnRails
[22:11:47] dblessing: has joined #RubyOnRails
[22:41:02] gheegh: has joined #RubyOnRails
[22:52:44] cagomez: has joined #RubyOnRails
[23:00:55] Bonjourm8: has joined #RubyOnRails
[23:03:17] ellcs: has joined #RubyOnRails
[23:32:38] K3rber0s: has joined #RubyOnRails
[23:34:01] jottr: has joined #RubyOnRails
[23:34:34] vedu_: has joined #RubyOnRails
[23:35:17] sameerynho: has joined #RubyOnRails
[23:36:58] GodFather: has joined #RubyOnRails
[23:50:46] quazimodo: has joined #RubyOnRails