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

How do i fetch popular horror movies from the Movie Database API?

I'm developing a Ruby application that retrieves movie information. When the user hasn't performed a search yet (when they first access the app), I want to implement fetching and displaying the popular...

View Article


How to find unnecessary variable setup in tests using RSpec?

Suppose I have a set of tests like the following. Apparently, test1 and test2 should be separated so that the preparation of var1 or var2 will not be unnecessary in test2 or test1. Anyway I can use...

View Article


Nokogiri installation error and fails with mac os x 14 Sonova

I am trying to install an older version of nokogiri (1.6.8.1) on a x86 intel mac using sonova 14.4 with a ruby project of mine but i am experiencing a problem with either bundle install or gem install...

View Article

Trouble Getting sqlite3 gem to load in AR command-line app

I am writing a command-line app that uses active_record for database interactions. I currently support only postgres, but I want to allow sqlite3 as well. I added a line to my gemspec file to add...

View Article

How to combine Sequel.or with Sequel.like? (mssql or sqlite)

I use ruby and sequel in my programm.I want to execute a deletion in my DB likeDELETE FROM db.tbl WHERE col1 = 'a' and (col2 LIKE '%xxx%' OR col2 LIKE '%yyy%')But I fail to build the statement with...

View Article


Ruby and Ruby on Rails offline API documentation [closed]

In the past I used railsbrain.com to have a nice and handy offline API documentation.But they stop at version 2.3.2Is there any other solution with latest version.

View Article

Failing to add custom certificate to be trusted by ruby

I have installed ruby on my MacOS using brewso:which -a ruby/opt/homebrew/opt/ruby/bin/ruby/usr/bin/ruby/usr/bin/ruby is the system ruby I guess that is not to be messed with.Now I want to add...

View Article

How to parse step definition code for projects using Cucumber?

I'm working on a project where I want to evaluate how Behavior Driven Development is being used. I want to extract Gherkin steps from .feature files and match the underlying step definition code. For...

View Article


External Dependency Manager in Unity installing Cocoapods succeeded but the...

I try to make build on iOs with Unity. But has problem with Branch.io and (Header.h in xCode) file.To resolve dependencies, it is suggested to use External Dependency Manager. It runs the cocoapods...

View Article


How to render flash messages when remote true

I have a time logger controller method that calls from my view, called _embed_menu.html.erb<%= link_to l(:start_time_logger) +' #'+ @issue.id.to_s +'', {:controller => '/time_loggers', :action...

View Article

FactoryBot namespaced models without class_name

I have models which are namespaced such as this:class Vehicle < ActiveRecord::Base; endclass Vehicle::Car < Vehicle; endclass Vehicle::Train < Vehicle; endclass Vehicle::Jet < Vehicle;...

View Article

Rails :include vs. :joins

This is more of a "why do things work this way" question rather than a "I don't know how to do this" question...So the gospel on pulling associated records that you know you're going to use is to use...

View Article

Error with recording headless browser in ruby

We want to create a headless browser and record and stream a page in it. To do this, we use Ferrum and ffmpeg. But there is only one image in the output video, although the video duration is...

View Article


How to implement Enums in Ruby?

What's the best way to implement the enum idiom in Ruby? I'm looking for something which I can use (almost) like the Java/C# enums.

View Article

How to use a Puppet File Resource to give different permissions on a...

I would like to use Puppet to manage a directory. I want the directory to be owned by user root and group admin, with 0770 permissions.I would like all files in the directory to be owned by user apache...

View Article


Where is documentation on the embedding API for the Ruby interpreter? [closed]

I am looking for a comprehensive, online, documentation resource regarding the embedding of the Ruby interpreter into C or C++ programs, and the API(s) for that purpose.The section on this in the...

View Article

VSCode Ruby get message "press 'Enter' to confirm your input or 'Escape to...

I have actually resolved the problem but passing info for anyone else getting same problem. Found several solutions but they were answers to symptoms not this problem.Had created a couple of new...

View Article


Sinatra build REST API documentation [closed]

I have been looking all night for a gem to generate an API documentation from my sinatra routes. I should be able to specify with inline comments.I have found...

View Article

API docs generation tool [closed]

I have a RESTful API written on RubyOnRails (restfulie gem).What is the best way to generate API documentation from project sources?

View Article

Concurrent cause duplicate records inserted

For my rails app, I found the duplicate records from MySQL database table.user_product tableiduser_idproduct_idamountcreated_atupdate_at181115811115180022014-10-16 03:00:132014-10-16...

View Article
Browsing all 4628 articles
Browse latest View live


Latest Images

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