Questions tagged as 'ruby-on-rails'

0
answers

NoMethodError: undefined method 'users' - Ruby on Rails

When running the console command 'rails test' I get the following error, referring to the file user_controllers_test.rb The Error: The file user_controllers_test.rb According to the console in error, it is in the line that con...
asked by 02.09.2018 / 19:18
1
answer

I can see all the records (GET) but I can not select one (GET /: id) ... any ideas that can help me? Rails

class UsersController < ApplicationController #before_action :set_user, only: [:show, :update, :destroy] # GET /users def index @users = User.all render json: @users # commented out because a jbuilder template has been adde...
asked by 08.09.2018 / 13:55
2
answers

How to autocomplete fields when selecting a code - Ruby On Rails

Greetings! I have a sales form, in which I need that when writing the product code within its corresponding field, the fields, name and price, are automatically completed with the corresponding information that is in the database, and that they...
asked by 27.08.2018 / 02:09
0
answers

Upload my web app to Heroku without having created it using git

I would like to know what happens if I have not used git to develop my web app. Would it be possible to add git later so you can upload it to heroku? Should I do the app again? Thank you.     
asked by 26.08.2018 / 18:27
0
answers

Rails Server does not start

Good morning to everything, I am learning Rails, I am trying to run my first application, for this I must start the Rails Server, but it votes me Error. I was looking at Google and found that it was because there were missing JavaScript th...
asked by 23.08.2018 / 03:18
0
answers

Error with Haml-rails: the file or directory is not found

It happens to me that I get this error when applying this command with Rails 5 rails generate haml:application_layout convert It does not convert anything to me and I get this on the console    Errno :: ENOENT: No such file or directory...
asked by 28.08.2018 / 21:36
0
answers

Calculating the prices of each item within a form - Ruby On Rails

Greetings! I am trying to calculate the price per item, to later add them, however, is only able to calculate an item, I have honestly had problems to assign a unique and dynamic id, so that each item has its own result, since only the first ite...
asked by 15.08.2018 / 08:16
0
answers

Form in ruby on rails

I'm starting with rails and I need help with the following problem: I have two tables one for recipes and another for recipe details. In a form I need to load a recipe with one or two more details <h3 class="text-muted">Datos afiliado&...
asked by 19.08.2018 / 21:38
0
answers

uninitialized constant Spree :: CustomModelPingsController :: CustomModelPing

Hi, I'm new to Rails and I'm working with the Spree Ecommerce core. Generate a new customized model (CustomModelPing) and when inserting data, I receive the following error. uninitialized constant Spree::CustomModelPingsContro...
asked by 23.08.2018 / 02:35
1
answer

Logical problems when adding dynamic fields - Ruby On Rails

In a purchase form, I add the product plus the requisite data, however, I need that purchase form to accept more than one product in it, this could be achieved using nested form + the coconut gem , however, the attributes belong to the same mode...
asked by 08.08.2018 / 00:30