Questions tagged as 'ruby-on-rails'

1
answer

Bundler problems

Hello friends when trying to run my app shows me the following error: You are trying to install in deployment mode after changing your Gemfile. Run 'bundle install' elsewhere and add the updated Gemfile.lock to version control. The dependenci...
asked by 05.07.2018 / 00:57
0
answers

Gemfile does not accept changes.

On my production system, I have the gem mysql2 0.3.11 installed, but locally I have mysql2 0.3.18 installed because it is not able to find the 0.3.11 when bundle install or gem install mysql2 0.3.11 I have t...
asked by 03.07.2018 / 11:45
1
answer

How to test the Ruby code

I have to test the code that I have of a small application in Ruby. I wanted to do it automatically with Sonarqube, but I see that Ruby does not support. I installed a plugin for Ruby, but the program remains hung. So now I wanted to try ruby mo...
asked by 03.07.2018 / 15:03
0
answers

Wicked_pdf background image

I am working in rails 4 and I have an html.erb that I convert in .png image and in the html it was generated by an each where I change the field of my document with the wicked_pdf, I have several div where in each one I have to put a different b...
asked by 02.07.2018 / 03:38
1
answer

Check stock of an inventory product with Ruby on Rails

I have a small inventory system ready which works perfectly, however, I have not been able to get it to check the availability of a product at the time of making a sale, although on the one hand it is checking if there are stocks, and on the oth...
asked by 30.06.2018 / 08:31
1
answer

load vue component in modal bootstrap

Hello I have a component in vue I am using rails 5, turbolink 5 and webpack. If the component is placed directly on the page where the renderer makes a path, for example new.html.erb, the component loads But if I want to show that component i...
asked by 23.06.2018 / 04:54
0
answers

bin / foreman-runner: 41: exec: bin / rails: Permission denied

I can not run foreman start throws me the following error. /home/jarvis/.rvm/gems/ruby-2.3.1@rails_5_gemset/gems/foreman-0.63.0/bin/foreman-runner: 41: exec: bin/rails: Permission denied 16:58:41 frontend.1 | /home/jarvis/.rvm/gems/ruby-2....
asked by 19.06.2018 / 00:01
1
answer

Add all inventory transactions Rails

I am creating an inventory system, in which I have the following 2 models: Product Model class CreateProducts < ActiveRecord::Migration[5.2] def change create_table :products do |t| t.string :name t.float :price...
asked by 22.06.2018 / 20:07
0
answers

Chartkick in ruby show data

I have a scaffold called statistics with the following data: Year, Sales, Agents. Year is a select with several years and sales and agents are integer fields. I installed the gem Chartkick to be able to visualize the data of these 3 columns (...
asked by 16.06.2018 / 23:43
0
answers

Rails and Datatables

Hi, I tried to implement Datatables in Rails 5, but it turned out that it was imcompatible according to lei in stackoverflow in English and recommended another page. link I already followed step by step, but I can not get the options to...
asked by 11.06.2018 / 03:49