Rails layout using gems stylesheets

I'm a little confused of how stylesheet rendering works on rails. I'm using the Administrate gem that has it's own layout and stylesheets in: app/layouts/administrate/application.html.erb app/assets/stylesheets/administrate/application.scss In my ...
more »

2017-11-09 16:11 (0) Answers

NoMethodError in Spree::Admin::Reviews#index

I am new to spree and ruby on rails.While clicking the 'reviews' in spree back-end, it's throwing an error. Thanks in Advance. NoMethodError in Spree::Admin::Reviews#index Showing - var/lib/gems/2.3.0/ruby/2.3.0/bundler/gems/spree_reviews-e51cae96...
more »

2017-11-09 09:11 (1) Answers

Custom gem not loading into rails app

I've pushed gem into github & rubygems, but constants of that gem are not being loaded into rails app. Tried this by loading from multiple sources and results are like this: rubygems = not loaded github = not loaded local path = loaded Intere...
more »

2017-11-08 18:11 (1) Answers

Can not install Cocoapods with RubyGem 2.7.1

My Cocoapods did not work, therefore I did the following command: 1. run this bash script to remove all the relevant gems: for i in $( gem list --local --no-version | grep cocoapods ); do sudo gem uninstall $i; done 2. delet...
more »

2017-11-08 05:11 (1) Answers

How to copy the gemset from one folder to another

I have a rails application school_management which uses a leaves engine. When I try to generate rails migration in the leaves engine, it is throwing some error; since no gems are installed in this folder. I would like to know how we can copy the gems...
more »

2017-11-08 05:11 (0) Answers

Gem 2.3.1 and Ruby 2.3.3 versions don't match?

I am following the tutorial on deploying a Rails application on to Heroku, I am trying to install the dependencies, when I type in the command, jruby -S bundle install --binstubs I get the following Your Ruby version is 2.3.3, but your Gemfile spec...
more »

2017-11-08 00:11 (1) Answers

Issues Bundling a Local Gem

When bundling a local gem is there a way to also install the dependencies listed in that Gem's Gemfile as opposed to just the one's located in the gemspec? ...
more »

2017-11-07 22:11 (0) Answers

errors with "gem list", "rails -v"

On macOS High Sierra (10.13), 'gem list' returns the following error: gem list /Library/Ruby/Site/2.3.0/rubygems/bundler_version_finder.rb:93:in `pwd': No such file or directory - getcwd (Errno::ENOENT) from /Library/Ruby/Site/2.3.0/rubygems/bu...
more »

2017-11-07 15:11 (1) Answers

Private module method accessible by module classes

I'm trying to wrap the functionality of a command-line utility (let's call it foo) with a Ruby gem. I'm trying to abstract out some of the functionality into different classes, but I'd like to have the logic which deals with calling out to the system...
more »

2017-11-07 04:11 (1) Answers

How to use jar file in Ruby Mine

I have one Java Jar file and i am able to use successfully in my selenium framework. I would like to use the same jar file in my Ruby automation. Can anyone help me ? Note: I am using PDF-util jar file (To compare two pdf's, pixel to pixel) ...
more »

2017-11-02 23:11 (1) Answers

Install gem from ruby script and use it afterwards

I have a private gemserver running by Geminabox. To publish any gem there, there is a command gem inabox my-gem.gem -g $HOST. I'm working on a script for automated publishing new gem versions. So I have something like: `gem install geminabox --no-...
more »

2017-11-02 17:11 (1) Answers

How does Delayed job work in ruby script

I want use delayed job on ruby script (not rails) but i can't find anything in delayed Github page or wiki page I want use a background job gems on ruby script like resque , delayed job , sidekiq or etc. how start background process on ruby script ...
more »

2017-11-02 11:11 (0) Answers

Rails "Browser Gem" support

I'm new to Rails, I'm trying to get the "browser" gem working. (https://github.com/fnando/browser) I was hoping someone had some example code they code post. I installed the gem by putting gem "browser", require: "browser/browser" in my gemfile. ...
more »

2017-11-02 04:11 (1) Answers

rubocop how do you fix Missing magic comment

I have a library of ruby code, and to look for defects I run $ rubocop And I get $ rubocop Inspecting 153 files CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
more »

2017-10-31 01:10 (2) Answers

Zip Code in rails based on city and state

I am currently using city-state ruby gem on my application register form. It helps me to set state dropdown based on country and set city drop down based on selected state. Now I want to show a dropdown that will only be depend on city or city and st...
more »

2017-10-30 13:10 (1) Answers

Rails server command error

When I run Rails s I got this error on my terminal I also set Ruby to 2.3.3 version and typed bundle .rvm/gems/ruby-2.3.3/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:86:in `rescue in block (2 levels) in require': There was an error while ...
more »

2017-10-30 10:10 (1) Answers

Always mobile menu, Rails 5, bootstrap-rubygem

I am using Rails 5 with Twitter Bootstrap gem (Twitter Bootstrap 4.00.beta2.1). I am using Carousels and Grid system and everything works, but not navbar. I am using code for navbar for Bootstrap site Bootstrap site and is always in mobile state. I ...
more »

2017-10-29 00:10 (1) Answers

Debugging ruby in RubyMine

I am new to Ruby and RubyMine but I have tried essentially everything I have found online but can't get the debugger to work in RubyMine, keep getting the following error: Error running 'simple_array_sum': Failed to Install Gems. Following gems wer...
more »

2017-10-28 13:10 (1) Answers