Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Browsing all 4604 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

WebCam present problem in recorded video in BigBlueButton

I need assistance in integrating BBB into my LMS system. I configured the layout to build the recorded video as follows when the screen and webCam (1) are shared at the same time during the recording...

View Article


Get names of all files from a folder with Ruby

I want to get all file names from a folder using Ruby.

View Article


Passing boolean parameter in ruby

I am wondering how do I pass a false value to my ruby script. If I invoke:ruby myscript.rb falseand then in my script if I say:my_class.new(*ARGV)or my_class.new(ARGV[0])basically a string with value...

View Article

Cannot Initialize Object in Ruby

I am trying to initialize an object in Ruby, but I get an error: "undefined method `Thing' for main:Object (NoMethodError)"However, isn't that what the initialize method is for?class Thing def...

View Article

Ruby puma-dev using wrong version of ruby

I've been debugging this for about a week now with no progress so I thought I'd take it to here. I've been doing research and staring at other StackOverflow solutions for this for hours and haven't...

View Article


How to create custom modules app in rails?

I am newbie in rails, then i started try api only app. I want to try modular app like this structure:├── app│  ├── channels│  │  └── application_cable│  │  ├── channel.rb│  │  └── connection.rb│  ├──...

View Article

how to test lock mechanism

I have a piece of code where I import a BankAccountTransaction to a BankAccount bank_account.with_lock do transactions.each do |transaction| import(bank_account, transaction) end endit works fine but I...

View Article

Ruby Gems returns "command not found"

Ubuntu 9.10Just installed newgem gem install newgemand when i trynewgem new_projectI get adam@adam-ubuntu:~$ newgem newprojectnewgem: command not foundIve checked my path via echo...

View Article


Non-ASCII characters not printing by wkhtmltopdf

I'm stuck in an issue wherein the wkhtmltopdf prints just tofus for non-ascii characters (Chinese, Japanese, Korean etc). Can you please help me to resolve this issue.My DockerfileFROM...

View Article


Optimize Exchange Flow

im actually working in ruby on rails and im watching methods that convert values according to specific exchange rate.For example, for each value of an account, it makes the following...

View Article

Error installing cocoapods:drb requires Ruby version >= 2.7.0. The current...

ı want to develop project with react native Cli. ı read the react native documentation. ı should set cocoapods when ı write sudo gem install cocoapods. the terminal said me Error installing...

View Article

Best way to return recently created object in ActiveRecord?

I'm creating an object that when called it will create an database record and I want this function to return the newly created object. This is what I got:data = {foo: 'foo', bar:...

View Article

Declaring char array in Ruby FFI

I have the following C code:typedef void (*mycallback) (char buf[128]);void take_callback(mycallback cb){}I've written the equivalent Ruby FFI declarations as below (following advice for structs on FFI...

View Article


Pod installation not working due to node modules & podfile

i am trying to setup my environment on my new computer( mac-m3) and i am trying to start a mobile application, when i try to run pod install i face these errors. My project uses:node 14.20.0,and: 3.3.0...

View Article

Cannot load such file - Ruby gkms plugin

I'm trying to use gmks plugin for encrypting files for one of my projects. But whatever I do, I end up with this error:/Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require':...

View Article


Issues connecting Sidekiq to Redis

I have found a piece of open source code that I have slightly re-factored in order to ensure the use of updated dependencies.The open source code uses 3 dockerfiles to run as containers which should in...

View Article

Combine PDF files with Prawn

I am having a problem with the combination of several PDF files.I am generating the PDF using PrawnPDF on the "show" action.I would like to be able to combine multiple selected items into a single...

View Article


Ruby 1.8.7 on windows with cygwin

I am completely new to Ruby, and i am required to use ruby 1.8.7. I was able to install it on windows and when I run the 'gem' command on windows command line it works. I was also able to run hello...

View Article

Steep "compatibility" warning

I'd like to have a Ruby class method return an instance on reading from a file. And I'd like that method to either take a string which is the path to the file, or an IO where the caller has opened the...

View Article

I am trying to configure and setup and old rails project (2.3.8) in ubuntu 20.04

I am trying to setup rails 2.3.8 project in ubuntu 20.04Ruby version is 1.8.7I have installed ruby and and rails of these version successfully.But when i try to run server using command script/serverI...

View Article
Browsing all 4604 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>