Page 1 of 1
[07:50:48] Vashy: I recently upgraded my local ruby version from 2.4.1 to 2.5.1 and set it to the current and default with rvm
[07:51:04] Vashy: but I just tried using rails and it said the gem wasn't isntalled, and when I tried 'gem install rails' it said gem wasn't found
[22:26:34] Vashy: hd1, I guess I'm not entirely sure myself, so here's the situation: I created a rails app, created some models/views/controllers, then decided to try building a react front end but idk how to interact with the app?
[22:26:55] Vashy: some tutorials I looked up created a brand new rails api app for the tutorial using: 'rails new --api ...'
[22:30:08] Vashy: hd1, do you have some material you can point to that I can read to better understand how to use an existing rails app as an api?
[04:04:59] Vashy: e.g. I'm trying to create an edit view for a model (Property) that has_many of another model (PropertyDocument) and each of those has_one_attached document
[04:05:35] Vashy: but whenever I go to the edit view of that Property, and hit save, it creates another attachment that's a copy of the existing document
[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:06:33] Vashy: here's what I'm looking at: https://guides.rubyonrails.org/active_storage_overview.html
[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:17:45] Vashy: so I would have to have the form dynamically create an input field for each document they want to upload?
[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?
[00:30:23] Vashy: is it possible to tell if a linux command is installed/available from a ruby script?
[06:07:54] Vashy: baweaver, if I refactor the code to no longer use the Ruby namespace, is it okay to keep the name of the project/gem as 'ruby-lspci' ?
[04:54:07] Vashy: https://gist.github.com/hebron-george/9898dee4ff041be5355462925d9fd6b8#file-new_nil-rb-L6
[04:55:01] Vashy: but if I call it from a pry session: Parser.parse('asdf') it creates the object and calls #parse
[02:33:07] Vashy: hi all, I'm trying to capture the output of airmon-ng, I tried something like: IO.popen(`airmon-ng wlan0`) but that doesn't work (or at least not as I expected)
[05:04:24] Vashy: anyone know how I can check if something is installed from a ruby script? e.g. if I want to write a script that checks to see if postgres is installed
[05:04:58] Vashy: I want to write a script that will help me set up projects easily, so it will do some set up like check if postgres is installed, create a rails app, set the db credentials properly, etc
[05:05:45] Vashy: my machines are running ubuntu and macos so I'll have terminal commands to work with
[05:27:52] Vashy: I want to create a helper script to help me set up new rails apps. E.g. check and see if postgres is installed, create proper users in the db, etc; Anyone know how I can check if postgres is installed with ruby?
[03:54:52] Vashy: so most languages have support for Regex so I think you'll be okay with just googling mostly
[03:56:41] Vashy: you can use the "Lesson Notes" section on the right side to choose the topic you're interested in
[05:06:33] Vashy: kapil___, hope mozzarella's answer helped -- to add to it, the reason he's passing in &block to `a` inside of `b` is because blocks are the implicit last argument to methods in ruby
[05:05:52] Vashy: I want to create a scaffold for the details of a game. Something like: `rails g scaffold MatchDetails`
[05:07:19] Vashy: I want to create a scaffold for the details of a game. Something like: `rails g scaffold MatchDetails`
[00:39:29] Vashy: I just started a rails project that uses a library to create an api client to make calls with
[00:39:50] Vashy: and I'm using the same client in a bunch of different files so I know i want to move it into it's own module and have these classes extend it
[00:40:36] Vashy: so for example: in my `app/jobs/` dir, I have two classes: `job1.rb` and `job2.rb`, where should I create the new module?
[00:42:31] Vashy: <Vashy> and I'm using the same client in a bunch of different files so I know i want to move it into it's own module and have these classes extend it... so for example: in my `app/jobs/` dir, I have two classes: `job1.rb` and `job2.rb`, where should I create the new module?
[00:42:31] Vashy: <Vashy> I just started a rails project that uses a library to create an api client to make calls with
[00:42:31] Vashy: <Vashy> hi all, I'm a beginner rubyist; I'm wondering how to lay out part of my project