Jekyll Paginate is not working

Checked any possibilities I can think of that I may have missed, but still could not get the paginate working. Would be very appreciated if anyone can help. Ruby version is ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16] Jekyll version...
more »

2017-04-19 09:04 (0) Answers

My rails controller didn't work

My rails application is used acts-as-taggable-on. I would like to add function which articles can be searched by tags. In my articles_controller.rb def index @articles = params[:tag].present? ? Article.tagged_with(params[:tag]) : Article.all ...
more »

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

Globalid and pg not existing when in gemfile

I am trying to rails server from a cloned repo, I have updated ruby, and rails, followed the rvm process, updated all my gem files, and when I go to serve I receive the message Could not find globalid-0.3.7 in any of the sources Run bundle inst...
more »

2017-04-18 01:04 (2) Answers

How to use the Geared Pagination gem

How do I use Geared Pagination? This is /app/controllers/links_conroller.rb: class LinksController < ApplicationController before_action :set_link, only: [:show, :edit, :update, :destroy, :visit] before_action :authenticate_user!, except: [...
more »

2017-04-17 19:04 (0) Answers

How to add image upload system in Active admin?

I tried a lot but couldn't get an idea. I am using windows 32 bit system and mysql as database. I tried this but it didn't save the image and its attributes on database. Ple...
more »

2017-04-17 03:04 (0) Answers

How to update Ruby on Rails in Ubuntu?

Now I have installed 5.0.1 version of Ruby on Rails. I want to update it up to latest version 5.1.0. Firstly I tried to update gem system file. After I changed line in gem on gem 'rails', '~> 5.1.0' Then to run command gem install, but it did ...
more »

2017-04-14 22:04 (1) Answers

Override image in jekyll gem theme

I am using a Jekyll gem theme that defines assets with sub-directories for css, images, js. I want to override one of the images, but when _site is regenerated, the image from the gem is used. # Path to image in gem theme assets/images/test.png # ...
more »

2017-04-14 21:04 (0) Answers

Upgrading rubygems not working

I wanted to upgrade rubygems and did the following C:\>gem install --local C:\rubygems-update-2.6.10.gem C:\>update_rubygems gem install worked fine but when I do update_rubygems I get The system cannot find the path specified. I am not s...
more »

2017-04-14 16:04 (1) Answers

Exclude CSS from rails_admin console

In my application, I have a rails_admin console that I use to read and write data. I used the 'rails_admin' gem to get this. My problem is that the dashboard for the admin console is being effected by my CSS stylesheet and is causing it to look a cer...
more »

2017-04-14 03:04 (0) Answers

Test Kitchen Vagrant Berkshelf

With the following software versions installed: Berkshelf - 2.0.18 Ruby - 2.2.2 Vagrant - 1.9.3 test-kitchen - 1.15.0 kitchen-vagrant - 1.1.0 Chef Server API version - 11.0.2 I am attempting to run test kitchen on my local system. In doing so, I ha...
more »

2017-04-14 01:04 (2) Answers

Ruby on Rails mysql2 gem troubleshot

I have created new ruby on rails project with mysql database. I have run mysql server by running mysql.server start When I try to run rake db:create, I got following error: dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced f...
more »

2017-04-13 00:04 (1) Answers

Error installing json Ruby gem

I'm running gem install json -v '1.8.1' however I get this error.. gem install json -v '1.8.1' Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. current direc...
more »

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

Running a rails application inside a gem

I have a rails application: my_app and it resides within the spec directory of my_gem for integration testing. Here is the directory structure: my_gem | |--.rspec | |-- spec | |----support | | |---my_app(rails application) | | | ...
more »

2017-04-11 21:04 (0) Answers

how to use gem doc_ripper with external links

So I am trying to use the doc_ripper gem and as per whats written all the requirements work fine. What I am trying to implement is that instead of path to local file, I would like to include path to url of the file. When I tried to run the command ...
more »

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

Trouble starting Rails server on Mac

I want to use Rails 4.2.3 and i managed to install it using rbenv and gem. When starting the server i get this error: rails server => Booting WEBrick => Rails 4.2.3 application starting in development on http://localhost:3000 => Run `rails ...
more »

2017-04-10 23:04 (1) Answers