PDF editing gem for ruby on rails app

I have a rails app in which user submits a PDF file. I want to edit that PDF file such that i can have line numbers on each line in it. Is there any gem that can help me in doing this task? If there is not any gem for PDF then is there any way or an...
more »

2017-12-03 12:12 (1) Answers

Issues with High Sierra 10.13.1 and Rails?

I've tried installing Rails on a high sierra but keep receiving a "Failed to build gem native extension" error. checking for sys/epoll.h... no ^ This is what I need to be looking at. I'm not sure if this is an issue with the new OS...possibly an i...
more »

2017-12-03 07:12 (1) Answers

Ruby - Check URL for specific in-page result

I am a total newbie and worked out a ruby file that allows to check websites if they are live or if they return a 404 error. It looks like this: #!/usr/bin/env ruby # encoding: utf-8 urls = %w( https://www.nytimes.com/2017/11/30/world/americas/arge...
more »

2017-12-01 12:12 (1) Answers

Gem needs to be required manually

I've created a gem. You can see the full source code here: https://github.com/agilie/instagram_api_gem (in any case, not advertising) However, when I use it in the Rails project # Gemfile gem 'instagram_api_client' it doesn't work untill a manual...
more »

2017-12-01 10:12 (1) Answers

Ruby test raise_if_conflicts error

I created sample_test.rb to run Minitest. require 'minitest/autorun' class SampleTest < Minitest::Test def test_sample assert_equal 'RUBY', 'ruby'.upcase end end I tried to run sample_test.rb but I got this error. Users/xxxxx/.rbenv/v...
more »

2017-12-01 08:12 (1) Answers

Why wont SASS install on my mac?

I am trying to install SASS on my mac, and am having a lot of issues. So the first time it didn't work, I figured out that i had to run this command "xcode-select --install". That worked, and installed. But when I went to install SASS using "sudo gem...
more »

2017-11-29 20:11 (1) Answers

Unable to run ActiveRecord Migration

I added the gemfile: gem 'activerecord-reputation-system', require: 'reputation_system' to my Rails app in order to add upvote/downvote functionity to a model (I'm following Railscast #364). I installed the gem with no problems. I entered 'rails ...
more »

2017-11-29 13:11 (1) Answers

Draper gem not decorating associated model

I'm following the Draper gem documentation, but the associated model is not being decorated. Here's a snippet of my top-level decorator: module Admin class OrderDecorator < Draper::Decorator delegate_all decorates_finders decorates_...
more »

2017-11-27 16:11 (1) Answers

Error when installing sass

I want to install sass on my computer. I installed the latest version of ruby and updated to the latest gem version: C:\Windows\System32>ruby -v ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32] C:\Windows\System32>gem install --local C...
more »

2017-11-27 12:11 (0) Answers

Installing gems, ruby on rails. Error with json

I'm currently trying to create new app with rails, wanted to install gems in my app directory and got following message: root@ubuntup:/dev/movies-forum# bundle install --path vendor/bundle Don't run Bundler as root. Bundler can ask for sudo if i...
more »

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

I'm trying to install OpenGraph gem in ruby

I've searched entire web looking for a way to get over this error. But it won't budge. I installed all the libraries and dependencies according to my knowledge even uninstalled ruby and nokogiri and reinstalled again. But this error remains here. ...
more »

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

Rails does not find gem, although it is installed

I hope somebody can help, I am really confused about this. I want to use the gem svg-graph (github) within my rails app. But require 'svggraph' gives me this error: cannot load such file -- svg-graph, which I don't understand as running a script ins...
more »

2017-11-23 12:11 (0) Answers

Failed to install rails because of old ruby gem

I was using ruby 2.3.0 and now I have updated to 2.4.2.. I have updated ruby version using rbenv. When I run rails -v or rails server it shows /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in to_specs: Could not find 'railties' (>= 0.a) among 5...
more »

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

Filterrific gem array rails

How can I initialize the array for the filterrific and filter the views? @reserves = Array.new I get an error of undefined method `filterrific_default_filter_params' for [[]]:Array Controller @filterrific = initialize_filterrific(@reserves.spli...
more »

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