Questions tagged as 'ruby-on-rails'

2
answers

Vue js multi inputs

I created the following code for vue js to add multiple inputs but it does not work for me could you help me. When I click to add it refreshes the page. This is my multi_text.vue component <template> <div class="multi-text">...
asked by 12.05.2018 / 04:17
0
answers

Materialize does not work in ruby on rails?

I'm trying to customize a design but when I add materialize files in the html code I do not get anything, it's like I did not read the materialize . I have already made the necessary modifications to the necessary files: application.csc...
asked by 04.05.2018 / 07:39
1
answer

NoMethodError in Reservations # new with a form_for in Ruby on Rails

I'm doing a cabin rental system in RoR and I get this error in the view new of Reservations (reservations), which gives when I try to create a form in the view. If I show the empty object that passes the controller does not throw m...
asked by 29.04.2018 / 18:07
1
answer

I can not raise the server in Rails Mac os

When trying to raise the server with Rails from the terminal, it turns out that I have the following problem: MacBook-Pro-de-Brian:~ Brian$ rails new twitter /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems.rb...
asked by 29.04.2018 / 22:31
1
answer

How to know if a model has 0 relations. Rails

I have a question about how to optimize a query, I'm doing it with a select to an active record query. How could I do this in a single SQL query. Here, for example, is a request. maintenance_service_requests has a Has and belong to many with...
asked by 12.04.2018 / 02:35
1
answer

SSHKit :: Runner :: ExecuteError: Exception while executing as [email protected]

I'm doing the deploy of my ruby on rails application. and it throws me the following error    SSHKit :: Runner :: ExecuteError: Exception while executing as   [email protected]: fingerprint d1: 81: 65: 57: 08: 9f: c5: 5b does not   match fo...
asked by 19.04.2018 / 01:00
1
answer

help I have a problem in haml

This is my code !!!5 %html{class:"no-js", lang:"es"} %head %meta{charset:"utf-8"} %title La mejor comida. %meta{name:"description", content:"Come rico en el mejor restaurante de la ciudad, servicio de prime...
asked by 11.04.2018 / 16:59
1
answer

Failure / Error: expect (page) .to have_content Capybara does not check page content

Hi, I created my test with capybara and rspec. This is my test require 'rails_helper' RSpec.feature "Users", type: :feature do context "crear nuevo usuario" do scenario "creacion exitosa" do user= FactoryBot.create(:user, :super_u...
asked by 03.04.2018 / 17:23
0
answers

Capybara :: InfiniteRedirectError: redirected more than 5 times, check for infinite redirects. - edit user

I have an error running my user editing tests, it throws me the next exception Capybara :: InfiniteRedirectError:        redirected more than 5 times, check for infinite redirects. This is my feature class. require 'rails_helper' RSpec....
asked by 04.04.2018 / 00:04
1
answer

undefined method 'new_record?' for nil: NilClass

I'm using the Cocoon gem and it gives me the following error    undefined method 'new_record?' for nil: NilClass the situation is as follows. I have an Event ( event ) which has many users ( user ) and to relate them I have the model eve...
asked by 21.03.2018 / 18:19