Questions tagged as 'ruby-on-rails'

1
answer

Ransack search results

I am new to rails and I have the problem that when I submit, it shows me all, as if I did not search, it gives me everything from the BD. My code is: Controller: class WelcomeController < ApplicationController def index @q = Co...
asked by 13.12.2016 / 20:46
0
answers

In rails, it does not work for me. generate name_of: la: gem: install

Working in Rails I installed the gem devise but at the moment of generating the gem component in my project with the command    rails generate devise: install on GitBash I appreciate the help.     
asked by 27.12.2016 / 18:05
1
answer

How do I remove the white background from a table? Foundation Rails

Well, my problem is that I added foundation rails to my project that is created in ruby on rails and I wanted to create a small table, but when creating this table it gives me a white background, what I want to do is that my table be transparent...
asked by 20.12.2016 / 17:09
0
answers

Why does not the file_field of my form build me? Rails

I'm trying to create a polymorphic association with Nested attributes in Rails, but my enemy here is Devise, which is not allowing me to build my file_field within my nested, and as a consequence it does not show me the option to select my image...
asked by 13.10.2016 / 07:34
3
answers

Rails: Generate table based on data containing dates

I am working on an application in RoR to keep track of maintenance services performed on various machines. To try to simplify a bit, let's say we have two models, on the one hand machines and other services, so that service belongs_to...
asked by 18.09.2016 / 18:19
0
answers

Pundit does not make mistakes but does not do what it should

I have read in several forums the way in which I can use pundit to create an ACL module and everyone says it is easy to use but it is the date that I can not solve my problem. Basically I have this 1.- Add the gem gem 'pundit' 2....
asked by 28.09.2016 / 19:52
1
answer

Capistrano aborts when you run bundle install Rails 4

I have a problem doing deploy on Ubuntu 16.04 in Digital Ocean, specifically when I run $ cap production deploy --trace the command is aborted in the part where bundle: install , the last line where capistrano no longer passes is this:...
asked by 30.08.2016 / 19:25
1
answer

Determine what to print using wicked_pdf on ruby on rails

I have a view of the data of a person (contact data, address, work data, medical data, etc.). At the moment I can convert everything I have in the PDF into PDF, but what I need is that when I press the button to convert to PDF I will see a scree...
asked by 25.10.2016 / 13:34
1
answer

Possible solutions to the system of multiple users in Rails with Devise

I have been trying to create an ideal way to have multiple users in Rails. The idea is that there is only a single login and a single registration regardless of the number of user models. The other option will be a single user model, but I do...
asked by 07.10.2016 / 18:23
0
answers

path for an engine is not recognized

I need your support to verify this situation I am following the documentation, to make a engine with rubyOnRails and I want to test the gem as the documentation says. I add in the file that will call the engine: gem 'blorgh',...
asked by 24.08.2016 / 22:57