« Back to channel list

#RubyOnRails - 10 August 2018

« Back 1 day Forward 1 day »
[00:04:44] chouhoulis: has joined #RubyOnRails
[00:09:58] cagomez: has joined #RubyOnRails
[00:14:44] cagomez_: has joined #RubyOnRails
[01:04:23] SteenJobs: has joined #RubyOnRails
[01:08:07] sevenseacat: has joined #RubyOnRails
[01:23:26] Radar: hello friends
[01:23:43] Radar: hahuang65: I'm working on the next version of our Junior Engineering Program at Culture Amp.
[01:23:52] Radar: Planning on hiring another 6 juniors and training them up for 9 months.
[01:42:04] Saukk: has joined #RubyOnRails
[01:54:26] Saukk: has joined #RubyOnRails
[01:58:08] Saukk: has joined #RubyOnRails
[02:11:41] tdy: has joined #RubyOnRails
[02:16:00] prettybTech: has joined #RubyOnRails
[02:27:24] srinidhi: has joined #RubyOnRails
[02:36:31] Croata: has joined #RubyOnRails
[02:41:05] mroutis: has joined #RubyOnRails
[02:41:12] prettybTech: has joined #RubyOnRails
[02:49:42] lupine: has joined #RubyOnRails
[02:52:37] mroutis: has left #RubyOnRails: ()
[03:00:10] JamJam_kid: has joined #RubyOnRails
[03:03:45] Saukk: has joined #RubyOnRails
[03:10:35] braincrash: has joined #RubyOnRails
[03:14:11] mojtaba: has joined #RubyOnRails
[03:23:53] orbyt_: has joined #RubyOnRails
[03:27:32] SteenJobs: has joined #RubyOnRails
[03:36:34] Caerus: Radar, that sounds interesting, wha are the requirements to take part in that program?
[03:42:04] lupine: has joined #RubyOnRails
[03:53:14] kapil___: has joined #RubyOnRails
[04:03:52] SteenJobs: has joined #RubyOnRails
[04:04:21] reber: has joined #RubyOnRails
[04:05:01] cagomez: has joined #RubyOnRails
[04:08:13] cagomez: has joined #RubyOnRails
[04:10:43] bewick: has joined #RubyOnRails
[04:16:16] bewick: Hey folks! Can anybody suggest the way to handle this case?
[04:16:17] bewick: https://stackoverflow.com/questions/51664050/how-do-i-get-multiple-values-to-be-edited-individually-on-same-page
[04:35:13] alfiemax: has joined #RubyOnRails
[04:44:39] Radar: Caerus: Thanks! We require a few things: 1) Australian citizenship / permanent residency 2) You live in Melbourne (or are willing to relocate under your own power) 3) You know Ruby up to a "novice" level (think: attr_reader vs attr_accessor, class inheritance, blocks, Enumerable methods, etc)
[04:47:46] Caerus: Radar, good things are far away :( I´m across the pond
[04:47:59] Radar: That's a shame. Maybe there's something near to you?
[04:48:52] srinidhi: has joined #RubyOnRails
[04:51:53] Caerus: It really is, I´m pretty sure that program will be solid. I think I missed the bus on actually working with rails on a day to day. Most of the positions are way up on the RoR experience.
[04:52:27] Caerus: That and the fact that I´m not in the US or US citizen.
[04:54:27] Jameser: has joined #RubyOnRails
[04:58:39] cgfbee: has joined #RubyOnRails
[05:01:17] knightblader: has joined #RubyOnRails
[05:05:24] eckhardt: has joined #RubyOnRails
[05:10:19] mojtaba: has joined #RubyOnRails
[05:32:20] Hexafox[I]: has joined #RubyOnRails
[05:33:25] apeiros: has joined #RubyOnRails
[06:00:21] duderonomy: has joined #RubyOnRails
[06:16:38] snickers: has joined #RubyOnRails
[06:19:09] this_dude: has joined #RubyOnRails
[06:19:22] this_dude: can anyone here explain this? '(%d%d%d) %d%d%d-%d%d%d%d' % array
[06:34:20] sevenseacat: formatting an array of numbers into a phone number string
[06:34:50] this_dude: well i knew tht
[06:34:56] this_dude: but i thought % is modulo
[06:35:05] this_dude: whats it doing in this instance?
[06:35:10] sevenseacat: ...formatting an array of numbers into a phone number string
[06:35:27] this_dude: could i replace % with #?
[06:36:39] sevenseacat: https://ruby-doc.org/core-2.4.0/String.html#method-i-25
[06:38:14] this_dude: holy cow thats confusing..thanks for the link will read into it
[06:43:01] dionysus69: has joined #RubyOnRails
[06:47:20] lexileo_: has joined #RubyOnRails
[06:52:00] za1b1tsu: has joined #RubyOnRails
[07:03:07] rootsudo: has joined #RubyOnRails
[07:03:31] rootsudo: Is Upwork the best place to get a rubyonrails expert?
[07:05:27] this_dude: whats upwork?
[07:06:14] this_dude: oh a freelance coder hiring site
[07:06:18] DTZUZO: has joined #RubyOnRails
[07:07:22] sevenseacat: it depends on what you want an 'expert' for
[07:23:20] quazimodo: has joined #RubyOnRails
[07:25:14] mikecmpbll: has joined #RubyOnRails
[07:28:46] snickers: has joined #RubyOnRails
[07:50:25] mikecmpbll: has joined #RubyOnRails
[07:50:51] rootsudo: sevenseacat https://github.com/sharetribe/sharetribe
[07:51:25] rootsudo: I need someone to help me deploy this, add in some checkout features for bitpay/paypal, but I never touched this stuff so I'm looking at people who are experienced but eh
[07:52:06] rootsudo: Like I want to also give back and whatever changes I make, let it be public but in terms of webapps that isn't my domain and even though I can pick it up, it's going to be. commercial product (eventually)
[08:03:07] cabotto: has joined #RubyOnRails
[08:09:15] DrYockel: has joined #RubyOnRails
[08:17:30] DTZUZO: has joined #RubyOnRails
[08:17:49] jottr: has joined #RubyOnRails
[08:22:37] unCork: has joined #RubyOnRails
[08:44:11] mojtaba: has joined #RubyOnRails
[08:45:22] koichirose: has joined #RubyOnRails
[08:54:28] koichirose: Hi! I can’t figure out how to set the selected time zone with time_zone_select… I have a @params[:time_zone] but I can’t figure out how to do it
[08:55:29] snickers: has joined #RubyOnRails
[09:02:38] Sylario: has joined #RubyOnRails
[09:10:05] tbuehlmann: koichirose: shouldn't it be as easy as `Time.zone = …`?
[09:11:35] koichirose: tbuehlmann: I don’t want to change it globally though. It seems to be working if I switch to a normal select() with time_zone_options_for_select. Weird though
[09:12:23] tbuehlmann: if you don't want to set it globally, how do you want to set it?
[09:17:40] koichirose: a user can see a report in a timezone and is able to change it on the fly
[09:32:03] uks: has joined #RubyOnRails
[09:37:33] alfiemax: has joined #RubyOnRails
[09:39:16] Ergo: has joined #RubyOnRails
[09:43:20] sirensari2: has joined #RubyOnRails
[10:06:49] sameerynho: has joined #RubyOnRails
[10:11:52] apeiros: has joined #RubyOnRails
[10:13:04] mikecmpbll: any ideas why `bin/rails test` wouldn't be running my system tests? test/system/system_builders_test.rb specifically, there is only one.
[10:17:25] linucks: has joined #RubyOnRails
[10:21:58] za1b1tsu: has joined #RubyOnRails
[10:25:39] za1b1tsu: has joined #RubyOnRails
[10:32:48] desperek: has joined #RubyOnRails
[10:33:24] mikecmpbll: err, y u do dis https://github.com/rails/rails/blob/5-2-0/railties/lib/rails/test_unit/runner.rb#L48
[10:33:44] mikecmpbll: doesn't run system tests with bin/rails test. weird.
[10:45:22] za1b1tsu: has joined #RubyOnRails
[10:58:22] lexileo: has joined #RubyOnRails
[11:09:26] snuz: has joined #RubyOnRails
[11:22:00] ciro: has joined #RubyOnRails
[11:37:13] sameerynho: has joined #RubyOnRails
[12:03:04] Dbugger: has joined #RubyOnRails
[12:05:57] Jameser: has joined #RubyOnRails
[12:22:32] snuz: has joined #RubyOnRails
[12:33:08] GodFather: has joined #RubyOnRails
[12:43:02] za1b1tsu: has joined #RubyOnRails
[12:46:41] geospeck: has joined #RubyOnRails
[12:49:46] geospeck: Hi guys, I've got this url "example.com/show?id=1&id=2" and in my controller params[:id] returns only the last value "id=2" but if I change the url to "example.com/show?id[]=1&id[]=2" to include [] then params[:id] returns [1,2]. Does anyone knows why? Thanks!
[12:59:38] fmcgeough: has joined #RubyOnRails
[13:01:02] mikecmpbll: geospeck : because that's a convention for passing array parameters in rails.
[13:01:48] geospeck: so Rails won't accept "?id=1&id=2&id=3"
[13:01:57] geospeck: needs the square brackets
[13:02:20] mikecmpbll: it'll accept it, but the parameter called id will contain only the value of the last occurrence
[13:03:12] geospeck: @mikecmpbll thanks!
[13:03:47] mikecmpbll: you can parse the parameters yourself if you want :) best to stick to conventions if you can though.
[13:05:32] geospeck: yes, with request.query_string
[13:35:28] za1b1tsu: has joined #RubyOnRails
[13:43:09] gheegh: has joined #RubyOnRails
[14:07:03] chouhoulis: has joined #RubyOnRails
[14:19:02] agent_white: has joined #RubyOnRails
[14:19:12] snickers: has joined #RubyOnRails
[14:21:33] akaiiro: has joined #RubyOnRails
[14:21:58] crankharder: how can i modify the webpacker environment for only one pack? i need to prepend jquery, but dont want that to apply to all my packs
[14:22:05] crankharder: e.g. somethin like this: environment.plugins.set('Provide', new webpack.ProvidePlugin({jQuery: 'jquery'})
[14:27:45] moei: has joined #RubyOnRails
[14:38:48] drale2k_: has joined #RubyOnRails
[14:41:29] za1b1tsu: has joined #RubyOnRails
[14:41:35] chouhoulis: has joined #RubyOnRails
[14:43:09] drale2k_: i added ActiveStorage for file uploads and now when i try to link the file with "<%= link_to "File", rails_blob_url(file) %>" , i get "undefined method `signed_id' "
[14:43:33] felix_vs: has joined #RubyOnRails
[14:43:38] drale2k_: google returns some posts form other people but no clear solution. I don't understand what this signe_id is
[14:44:30] drale2k_: my file is being uploaded through an API, not a form
[14:45:14] defsdoor: has joined #RubyOnRails
[14:48:34] chouhoulis: has joined #RubyOnRails
[14:54:35] resting: has joined #RubyOnRails
[14:56:31] dblessing: has joined #RubyOnRails
[15:12:49] ciro: has joined #RubyOnRails
[15:17:04] tycoon177: i'm being very hopeful, but is there any way to graphically build pdfs with prawn?
[15:17:27] tycoon177: i have some reports that i'm needing to rewrite and put values in very specific places on top of an image
[15:17:54] tycoon177: if not, i'll have to print it out and draw a grid on it to get at least rough ideas for pdf units :p
[15:21:32] dblessing: has joined #RubyOnRails
[15:23:07] hammer065: has joined #RubyOnRails
[15:33:25] apeiros_: has joined #RubyOnRails
[15:33:32] dblessing: has joined #RubyOnRails
[15:41:55] mroutis: has joined #RubyOnRails
[15:44:39] mroutis: has joined #RubyOnRails
[15:44:52] mroutis: has left #RubyOnRails: ()
[15:57:46] cagomez: has joined #RubyOnRails
[15:58:59] apeiros_: has joined #RubyOnRails
[16:07:12] agent_white: has joined #RubyOnRails
[16:11:02] hfp_work: has joined #RubyOnRails
[16:11:59] apeiros_: has joined #RubyOnRails
[16:21:00] jottr: has joined #RubyOnRails
[16:23:56] orbyt_: has joined #RubyOnRails
[16:24:24] felix_vs: Hi i'm trying to install Rails on my GNU/Linux dev machine, the installation steps by 'installrails dot com' end up giving me GPG error.
[16:26:26] felix_vs: i'm considering the Rails package from the Synaptic Package Manager, only trouble is a lot of dependencies...
[16:27:08] tycoon177: felix_vs: check out rvm. if you install ruby, you can then install rails with the built in `gem` command (or from a Gemfile)
[16:27:10] tycoon177: with bundler
[16:30:16] felix_vs: tycoon177: ok i'll consider this as well. now that i'm thinking about it, i'd rather not install rails globally on my machine (to serve every project) but instead install ruby virtual environments wherein specific rails versions are installed
[16:30:33] JamJam_kid: has joined #RubyOnRails
[16:30:37] tycoon177: rvm has you covered there :)
[16:31:05] alfiemax: has joined #RubyOnRails
[16:31:06] tycoon177: felix_vs: https://rvm.io/rvm/install
[16:32:38] tycoon177: felix_vs: you're able to set a default ruby version and then a local version if it differs from your default
[16:43:17] samort7: has joined #RubyOnRails
[16:44:14] samort14: has joined #RubyOnRails
[16:46:14] armyriad: has joined #RubyOnRails
[16:51:43] snuz: has joined #RubyOnRails
[16:52:20] alfiemax: has joined #RubyOnRails
[16:52:30] sameerynho: has joined #RubyOnRails
[16:52:31] orbyt_: has joined #RubyOnRails
[16:54:35] jottr: has joined #RubyOnRails
[17:01:03] prettybTech: has joined #RubyOnRails
[17:01:58] prettybTech: has joined #RubyOnRails
[17:03:45] prettybTech: has joined #RubyOnRails
[17:08:20] felix_vs: has joined #RubyOnRails
[17:15:53] darkhanb: has joined #RubyOnRails
[17:16:10] mikecmpbll: has joined #RubyOnRails
[17:30:01] tdy: has joined #RubyOnRails
[17:33:03] snickers: has joined #RubyOnRails
[17:35:36] NoGodDamnIdea: has joined #RubyOnRails
[17:54:09] felix_vs: has joined #RubyOnRails
[17:59:37] srinidhi: has joined #RubyOnRails
[18:03:57] felix_vs: I wanted to have virtual environments for ruby: just finished installing RVM. i did 'rvm install ruby'. any suggestions how to proceed with creating and managing virtual environments? this is my 'rvm info' output: http://termbin.com/99xz
[18:04:10] NoGodDamnIdea: has joined #RubyOnRails
[18:10:17] tycoon177: what do you mean virtual environments? that's what gemfiles are for
[18:10:19] akaiiro: has joined #RubyOnRails
[18:18:36] felix_vs: tycoon177: hm idk what gemfile is but i was looking for good guide to get started with RVM. sorry i didn't make it clear. i found one here and it's good so far: https://www.digitalocean.com/community/tutorials/how-to-use-rvm-to-manage-ruby-installations-and-environments-on-a-vps
[18:19:29] tycoon177: a Gemfile is a file that outlines what gems (ruby packages) a project uses. When you generate a new rails application, this is automatically generated.
[18:20:13] tycoon177: Using this file (or a Gemfile.lock, after the initial dependency resolution) bundler (a gem itself) will automatically manage your project's dependencies
[18:20:34] tycoon177: because of this, virtual environments, like python uses, is not necessary
[18:20:41] prettybTech: has joined #RubyOnRails
[18:21:03] tycoon177: bundler only loads the gems necessary for a project's execution
[18:26:00] felix_vs: tycoon177: well ok so it's nice to have dependencies automatically managed for me, but when i want to use a ruby interpreter i want to be able to choose which one to execute. not sure what you're trying to say
[18:26:34] felix_vs: maybe you mean that it's possible to execute certain version of ruby depending on dependencies specified in Gemfile
[18:26:55] tycoon177: no, i didn't understand your question initially, but i think i do now
[18:27:09] tycoon177: you'd use rvm to switch your ruby version with the `rvm use $version` command
[18:27:22] tycoon177: if you don't include the --default flag, it will only change it for your cwd
[18:29:23] felix_vs: so RVM now enables me to use e.g. version 2.5.1 that i installed with 'rvm install ruby' despite having a ruby installation in my system (2.3.1)
[18:29:47] felix_vs: the ruby installation i have is dependency for crucial system applications
[18:29:57] tdelam: has joined #RubyOnRails
[18:30:07] felix_vs: but with 'rvm use 2.5.1' i can choose to use another interpreter
[18:30:22] tycoon177: i'm not sure how it's best used with existing applications, but you should be able to do that, yes
[18:31:02] felix_vs: neat so that's one problem solved thanks tycoon177
[18:34:33] ellcs: has joined #RubyOnRails
[18:41:38] felix_vs: ok so now i have RVM and a ruby installation. so RVM can also install a specific Rails version for me? tycoon177
[18:44:50] desnudopenguino: `gem install rails -v <version #>` should do the trick
[18:44:58] jottr: has joined #RubyOnRails
[18:46:12] tycoon177: desnudopenguino: ++
[18:46:33] weaksauce: has joined #RubyOnRails
[18:47:23] GodFather: has joined #RubyOnRails
[18:53:38] dviola: has joined #RubyOnRails
[19:04:02] felix_vs: nice it worked for me! took long time to install documentation but after few minutes it was finished. thanks now i can start playing with Rails desnudopenguino tycoon177
[19:04:33] tycoon177: great to hear it :)
[19:06:26] snuz: has joined #RubyOnRails
[19:06:49] alfiemax: has joined #RubyOnRails
[19:07:10] desnudopenguino: if you really get into it, i'd look at some of the pragprog books or ruby/rails. https://pragprog.com/titles/category/ruby_and_rails?f[sort_by]=pubdate&f[category]=ruby_and_rails&f[skill_level]=All&f[title_contains]=
[19:08:30] desnudopenguino: though some are a little dated, they have a lot of good stuff, and are super easy to read
[19:12:28] dionysus69: has joined #RubyOnRails
[19:12:38] prettybTech: has joined #RubyOnRails
[19:32:45] prettybTech: has joined #RubyOnRails
[19:58:22] mojtaba: has joined #RubyOnRails
[20:01:18] chouhoulis: has joined #RubyOnRails
[20:11:21] fmcgeough: has joined #RubyOnRails
[20:11:28] tdy: has joined #RubyOnRails
[20:22:10] GodFather: has joined #RubyOnRails
[20:24:17] lunarfyre7: has joined #RubyOnRails
[20:26:06] lunarfyre7: Do the active support time helpers (like travel_to) work for testing delayed jobs scheduled with a run_at time?
[20:28:22] prettybTech: has joined #RubyOnRails
[20:29:52] tycoon177: why are you trying to test delayed job in your application lunarfyre7?
[20:30:07] tycoon177: delayed_jobs have their own test suite so that you don't have to :)
[20:30:15] tycoon177: just test the code that is run after the delay
[20:30:29] eckhardt_: has joined #RubyOnRails
[20:32:42] lunarfyre7: it's a delay of days though
[20:32:56] tycoon177: what's your point?
[20:33:15] tycoon177: you don't have to wait for the delay
[20:33:29] tycoon177: test the underlying methods and assume that delayed jobs works as intended
[20:33:47] tycoon177: that's what their tests are for, to test delayed jobs.
[20:33:51] lunarfyre7: okay, makes sense
[20:34:29] tycoon177: plus, delayed jobs are run in a separate process to rails, so that'd make it INSANELY hard to test
[20:34:41] gheegh: has joined #RubyOnRails
[20:37:46] mojtaba: has joined #RubyOnRails
[20:59:06] ellcs: has joined #RubyOnRails
[21:04:35] Vashy: has joined #RubyOnRails
[21:05:02] Vashy: hi all I'm following the active storage guide trying to set up a way for users to upload files in my project
[21:05:24] Vashy: it says that we can upload an attachment and that it gets associated with a record in the db
[21:05:42] Vashy: but I don't see how I can associate other data with the document
[21:06:01] Vashy: e.g. if the user wanted to leave a comment or name each document
[21:06:11] Vashy: is that covered in some other docs?
[21:06:33] Vashy: here's what I'm looking at: https://guides.rubyonrails.org/active_storage_overview.html
[21:06:46] Vashy: I only read up to section 9.4 though, so maybe it's in section 10 or 11
[21:06:54] Vashy: but I don't think it would be in there
[21:09:25] tycoon177: Vashy: you'd store any related information in the model that it's attached to.
[21:09:48] Vashy: I'm not sure how that would work when I allow mutiple docs to be uploaded at once
[21:12:16] Vashy: https://pastebin.com/xW85A2hs
[21:12:18] tycoon177: i'm not familiar with how active_storage works atm, i assumed that it just stored a path in the model, but that doesn't appear to be the case
[21:12:19] Vashy: tycoon177: ^
[21:12:36] gheegh: has joined #RubyOnRails
[21:12:37] Vashy: no worries then, I'll keep searching
[21:12:55] tycoon177: Vashy: i'll see if i can find anything as well
[21:13:06] Vashy: thanks! I appreciate that
[21:13:23] wethu: has joined #RubyOnRails
[21:13:43] Vashy: pretty new to this, I work on a back end at my job and this is for my personal project so I'm familiar with Ruby and working with the M part of MVC, but this kind of stuff is unfamiliar to me
[21:14:51] mikecmpbll: just associate the storage with a model with your meta data
[21:15:03] tycoon177: that sounds like the best solution, honestly
[21:15:09] mikecmpbll: and associate that model one to many with another model.
[21:15:21] tycoon177: parent model > image model > active storage
[21:16:00] tycoon177: has_many_attached seems like it'd cause nothing but headaches if you wanted to store metadata in the db
[21:17:45] Vashy: so I would have to have the form dynamically create an input field for each document they want to upload?
[21:17:49] Vashy: I guess that's what I need to google thne
[21:18:39] Vashy: Property has many -> PropertyDocument; PropertyDocument will have the metadata and the attached file associated; the metadata will come from a form on the front end?
[21:18:46] Vashy: sorry these are super basic questions
[21:19:21] prettybTech: has joined #RubyOnRails
[21:23:17] CJKinni: has joined #RubyOnRails
[21:36:28] tycoon177: Vashy: this video (although quite old at this point) will help with nested form creation
[21:36:28] tycoon177: http://railscasts.com/episodes/196-nested-model-form-revised
[21:37:29] Vashy: I'll take a look, thanks!
[21:37:38] CJKinni: has joined #RubyOnRails
[21:41:06] gheegh: has joined #RubyOnRails
[21:51:26] CJKinni: has joined #RubyOnRails
[21:58:24] gheegh: has joined #RubyOnRails
[22:09:23] duderonomy: has joined #RubyOnRails
[22:13:10] Dimik: has joined #RubyOnRails
[22:26:59] ur5us: has joined #RubyOnRails
[22:36:36] alfiemax: has joined #RubyOnRails
[22:51:10] beowuff: has joined #RubyOnRails
[22:55:06] sirensari2: if create! fails while seeding it should throw an error right
[22:55:14] sirensari2: say rollback or something
[22:55:59] za1b1tsu: has joined #RubyOnRails
[23:07:10] Puffball: has joined #RubyOnRails
[23:15:35] dviola: has joined #RubyOnRails
[23:26:33] alfiemax: has joined #RubyOnRails
[23:42:30] beowuff: has joined #RubyOnRails