Spawn process and send data to STDIN when data avilable

0
Ruby
I want to spawn a process (golang binary), capture its STDOUT and have a reference to STDIN which i can send to at any time. In my case i am getting data in via Websockets and want to pass them to ...
Drazen posted

How to import javascript from Gems with webpacker

4
Ruby
Ive come across an issue where some gems I want to use (specifically social-share-button) need to have a javascript file imported but with webpacker in rails 6, not quite sure how to do that now
Uttam replied
Solved

Install Ruby 2.3.* in MacOS 11.4 Big Sur M1 TROUBLE!!

0
Ruby
A new Mac: ``` macOS Big Sur 11.4 Apple M1 ``` I have a old project, using the ruby 2.3, rails 4.1.8。 but i cant install the ruby in my new mac。 some problem like : openssl 1.1 can't support < ...
ShowLew posted

How do i check constants in ruby are declared alphabetically or not. (Alphabetical means ADAPTERS, CODESET, EXPLORER)

0
Ruby
I have extracted the elements which are capital but now. Unable to compare and i need line number also to tell line 3 is not alphabetized.
vicky kumar posted

Not able to Subscribe

0
Ruby
Hi there! Im pretty new to programming and have been taking the Multiple Chatroom lessons but.... Getting this error...can somebody help me with it? ```` Started GET "/cable" for ::1 at 2021-05-14 ...
Danniel Tung posted

Help parsing a string down to what I need it to be.

2
Ruby
I am working on an API integration and I have to authenticate via one call, take cookie values from the response, and use them in a new call. Using HTTParty I can make all the calls I need to, but ...
RJ McCollam replied
Solved

Ruby Creator Yukihiro Matsumoto Interview

0
Ruby
Our friend Yukihiro Matsumoto, creator of the Ruby programming language, joined us for an interview right after the release of Ruby 3.0! Grigory Petrov, Developer Relations at Evrone, spoke with Mr...
Elizabeth Lvova posted

Loading ruby SDK from WSL2 into JetBrains RubyMine throws exception

1
Ruby
Hi, so i'm running WSL2, and install ruby with **rbenv**. Running **which ruby** yields the following: ``` /home/tensai/.rbenv/shims/ruby ``` So i put that in the **Ruby or verion manager path** in...
kramer.k replied

ArgumentError: Malformed version number string Yarn v0.1.1 2011 Jesper Kjeldgaard

2
Ruby
I have webpacker gem and yarn gem.. and I'm stuck with this error: (help please :))# console $ bin/rails webpacker:install rails aborted! ArgumentError: Malformed version number string Yarn v0.1.1 ...
huzefa-amura replied

Video idea: Dry Monad

1
Ruby
Hi Chris, Would be nice to watch a video about dry monads. Lately been using a lot of dry-initializer combined with dry-types, I think you could make series of dry-rb gems. But I have not yet st...
Chris Oliver replied

How I can upload some file on my automation Rails

0
Ruby
Hi everyone, I need your help if is possible, on a tecnical doubt I have on my automation, I wrote the code below and the browser opened the window to choose the file I wants to upload: find(:xpat...

How do I add ranges to my application?

6
Ruby
Hi in my app I want to have a price classification table where I want to add a range per person... For example: range_per_person = 1-10, 11-20, 21-30 etc etc. How can I achieve this? See my schema...
Chris Oliver replied
Solved

How can I switch from RVM to RBENV?

3
Ruby
I have followed the deployment capistrano guide in the past on GoRails. At the time I setup using RVM... what are the steps to switching from RVM to RBENV? I think I would need to changeover on m...
asherxo replied

How I can include a camp in form for capture a photo and save in my database in Mongodb. Rails 5. Ruby2.5.1.

0
Ruby
Hello I have a scaffold with many inputs of datas of patients and now I need add a camp for take a photo with webcam and save a photo when the patients go save your datas profile save a photo along...
Thomaz Wanderbruck Schmidt posted

Multiple API integration

0
Ruby
Hey guys, I need some advice on the following task. I need to make an integration between 3 applications. The first application (Python) will provide some data to a second application (Rails) whi...
Kelvin Firmino posted

Shopify App injecting Liquid code into theme files

0
Ruby
I'm developing a new Shopify app and need some Ruby on Rails dev help. When a Shopify Merchant installs my app, we ask the Merchant to manually add some Liquid code to their Theme files. But my S...
Adam Siegel posted

Seed local database

2
Ruby
HI, I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point. $ bundle exec rails db:setup When i execute the above command then its not running. I was execute thi...
bhavya replied

How to Access rails User session into Laravel Application?

0
Ruby
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...

How can I render \\n as newlines in <pre><code> elements?

2
Ruby
I need to render the post's body as HTML, but as it is given to me, it has some "\\n", "\\r" and "\\t" characters. How can I replace them with newlines, carriage return and tab characters respectiv...
Solved

Setting up Ruby on Rails on IIS

0
Ruby
Hi, I am new to Ruby on Rails. I have an existing website that I need to configure on IIS. I installed Ruby Hosting package from Web Platform Installer. When I ran the website, I got the following...
Muhammad Usama Alam posted

Want to stay up-to-date with Ruby on Rails?

Join 88,697+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.