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

Rails 7, Dokku, and Whenever gem: How to create CRON jobs on production?

I followed a tutorial of setting up the whenever gem to schedule repetitive jobs. I created a rake task that I want to run and I configured the schedule.rb file:set :output, 'log/whenever.log'every...

View Article


How to fix Error running '__rvm_make -j8'

I am having issue in installing ruby 2.7.1I am getting this error:Error running '__rvm_make -j8',please read /Users/luqman/.rvm/log/1690926841_ruby-2.7.1/make.logThere has been an error while running...

View Article


Treat a model attribute as a symbol

My model has a string field (a short) and it stores it in db which is fine. But I want it always to return a symbol instead of string and, also, I'd like to assign a symbol to this string attribute....

View Article

how to solve "ruby installation is missing psych" error?

I used rvm to install ruby 1.9.3. even though it was successfully installed, it complained about libyaml. and now every time i wanna install a gem (say rails) this warning shows up:It seems your ruby...

View Article

Interoperability between Go and Ruby: Verify an RSA signature

good day!I have a sinatra application in ruby that expects a message encoded in base64 and a signature of the message, then uses a public key to verify it. We're running ruby 3.2 and using openssl. The...

View Article


Ruby on Rails giving error on gem install

Keep getting an error when installing rails on my PC. I know that I have the ruby and sqlite installed but I keep getting stuck on the min2. I ahve installed this on my mac and seemed ok. I also see...

View Article

How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0"

I created a Ruby project, but when running bundle update and bundle install it returns an error:Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0An image of it is:...

View Article

How do I view the HTTP response to an ActiveResource request? [closed]

I am trying to debug an ActiveResource call that is not working.What's the best way to view the HTTP response to the request ActiveResource is making?

View Article


Is everything an object in ruby?

Is everything in ruby an object? Does this include Fixnums?

View Article


Ruby Debugging Open Source Libraries

I would like to debug and possibly contribute to some open source gems but am fairly new to Ruby and Rails. What is the best way to go in and start setting breakpoints, etc?Right now I just use...

View Article

Open3.popen3 / how to print the output

I have a little ruby script which does a mysql import in the way: mysql -u <user> -p<pass> -h <host> <db> < file.sql, but utilizes Open3.popen3 to do so. That is what I have...

View Article

Avoid N+1 Queries in Rails

How to eager load the datai have three models called City, User, Bankso i need to eager load the data to avoid N+1 Querieshere in my method of city.rbdef update_data(activity = false) # Used in delayed...

View Article

Im using rails graphql and vue apollo, my mutation is successful, however...

I am using Rails with Graphql and Vue with ApolloI was successfully able to create a Category however whenever I get all updated categories it does not return the updated categoryhere is the function I...

View Article


openssl and ruby certificate verify failed (OpenSSL::SSL::SSLError)

I'm getting a certificate verify failed (OpenSSL::SSL::SSLError) error.ubuntu 12.04ruby 1.9.3openssl installed via rvmThis command works okopenssl s_client -CAfile ./ccapi.pem -connect...

View Article

"Certificate verify failed" OpenSSL error when using Ruby 1.9.3

I'm using Ruby 1.9.3p0 on Mac OS 10.6.8 (installed using rvm). When I attempt to create a new Rails application using an application template hosted on GitHub, with this (for example):$ rails new myapp...

View Article


Monitoring tool in production server [closed]

the production website in under monitored using some monitoring tool.It will alert if it finds a keyword in log stream like "ERROR","Error","error".BUt in one of the api call the siurce code has given...

View Article

Macbook M2Pro - Error running '__rvm_make -j12'

Error running '__rvm_make -j12',please read /Users/user/.rvm/log/1706650388_ruby-2.7.3/make.logThere has been an error while running make. Halting the installation.When trying to install ruby-2.7.3 on...

View Article


Install newer version of bundler with bundler

If I change the version of bundler required in a Gemfile, and then type bundle, I getBundler could not find compatible versions for gem "bundler": In Gemfile: bundler (>= 1.10.2) ruby Current...

View Article

Rails 7: How to include a nested assosiation in a jsonapi-serializer

I have an author that has many books and a book that belongs to an author in an rails 7 api. I am using "jsonapi-serializer", "~> 2.2" to try and get the author and their books. When I look at the...

View Article

Setting Rails config.cache_classes=false causes env['warden'].user to fail

I'm running into an issue where setting config.cache_classes=false in my development.rb causes the following method find_verified_user to not get executed.module ApplicationCable class Connection <...

View Article
Browsing all 4616 articles
Browse latest View live


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