Questions tagged as 'ruby-on-rails'

2
answers

(Network error while fetching https://rubygems.org/quick/Marshal.4.8/puma-3.8.1.gemspec.rz)

I get this error when running bundle install, I'm new to rails the first time you go to: Network error while fetching link     
asked by 13.03.2017 / 20:05
0
answers

I get an error Password can not be blank ruby on rails 5

I am using Rails and angular 2 for my app, in my api rails I have added the gem 'bcrypt', '~> 3.1.7' my database table has password_digest: string and my model has_secure_password . When I sent my form I get an error  ...
asked by 22.02.2017 / 09:02
1
answer

Problem with nested routes

I have the following nested path: resources :companies do resources :weeks do resources :payrolls end end My problem arises when I realize a new_company_week since it ignores my answer. In the controller I have the follow...
asked by 16.05.2017 / 21:15
1
answer

Error uninitialized constant ActiveSupport :: EventedFileUpdateChecker (NameError) in Rails

When I try to create something, I get the following error in the console:    marcom@marcom-Lenovo-G40-80:~/Escritorio/APPI$ rails g controller asd /home/marcom/Escritorio/APPI/config/environments/development.rb:53:in block in ': u...
asked by 02.02.2017 / 21:45
1
answer

Problem closing session using the devise gem ("No route matches [GET]" / users / sign_out ")

I am creating a social network project and for this I am using the devise gem, everything is fine (user registration, I think post) but when I close the user's session I get this error message:    "No route matches [GET]" / users / sign_out "...
asked by 01.01.2017 / 16:56
1
answer

Why do I get this error in Ruby "ActionController :: UrlGenerationError"?

What I want to get is to get to my form to be able to add information or new records but the problem is that when I click on add new, I get an error tab. Controller def new @serie = Serie.new(); end def create @folio = par...
asked by 18.12.2016 / 21:17
1
answer

avoid duplicate records in query and date correction

I have two small problems with a query 1) I am conducting a search of the clients related to the logs, this query should bring me those bitacoratime logs where the code is equal to the id of the clients, the problem is that the clients should...
asked by 23.12.2016 / 01:26
1
answer

duplicate records of a query

I am making a query to find all those products that are not related to a table called Stock where the "Path" field within the Stock table is different from the id that I am passing through the URL. I'm doing it in the following way: @productos...
asked by 17.11.2016 / 23:59
0
answers

Error in rails Object does not support #inspect with table name with reserved word in mysql

The name of the table is "char" which is a reserved word in mysql, how can I correct the error without having to change the name of the table? I can not change the name of the table because it is from the game ragnarok In the model (Char...
asked by 10.12.2016 / 03:07
1
answer

Ransack and multiple models in Rails

I need to have a form that autocompletes, and I'm using Ransack with jQuery , the subject is with Ransack . THE problem: I need to have a form that in a single field look for two different models or maybe up to 3. I have...
asked by 28.11.2016 / 20:56