Questions tagged as 'ruby-on-rails'

0
answers

Error saving rails data

I mention my problem, when generating records using a callback (I already tried passing them directly but it does not work either) I always create the record with an id following this one. association: has_many :modelo_hijo se...
asked by 06.06.2018 / 23:24
2
answers

collect data from an index.htm.erb scaffold in ruby and take them to another scaffold index.html through a link

This is the code of index.html.erb of my scaffold contactos : <h1>Contactos</h1> <br> <table class= "table-hover"> <thead> <tr> <th>Nombre</th> <th>Apellid...
asked by 07.06.2018 / 13:22
2
answers

collect data from an index.htm.erb scaffold in ruby and take them to another scaffold index.html through a link

This is the code of index.html.erb of my scaffold contactos : <h1>Contactos</h1> <br> <table class= "table-hover"> <thead> <tr> <th>Nombre</th> <th>Apellid...
asked by 07.06.2018 / 13:22
0
answers

Rails 5 + Datatables

Hi, someone has an updated example of the use of DataTables ... since the best one I found is from 2012 and it marks an error link or some other datagrid that they recommend me     
asked by 02.06.2018 / 06:56
1
answer

Logical problems for an inventory system in Rails

I have done my couple of applications in Rails, basically informative, but this time I was asked for an inventory system, I was trying to translate the logic before doing it, and I made a sketch in Excel, taking that idea, I wanted pass it to Ra...
asked by 08.06.2018 / 02:54
1
answer

Rails 5, model all fields in capital letters

In ASP NET MVC I can create a class library where I have help classes for different situations (date conversion, encryption, etc.), but I have a specific one that receives my model and goes through the properties and those that are type Stri...
asked by 20.05.2018 / 20:18
0
answers

Ruby on Rails 5 - CoffeeScript not working

I am struggling with the use of Javascript in Rails, specifically with CoffeeScript that does not load it into the application; in no internet tutorial I have seen clearly how to schedule events, I have only read that it is handled differently b...
asked by 28.05.2018 / 03:22
1
answer

Problem when trying to register with gem devise

I get the following error when I try to register with a user, fill in the fields and give the sign up and one:    LoadError in Devise :: SessionsController # create       can not load such a file - bcrypt_ext. I have already tried to uni...
asked by 10.05.2018 / 18:35
0
answers

Capybara :: InfiniteRedirectError: redirected more than 5 times

Hello, when I try to run my tests with capybara, I get that error, I do not understand why, what am I doing wrong? this is the error: Failures: 1) Users editar usuario edicion exitosa Failure/Error: click_button 'Grabar' Capyb...
asked by 10.05.2018 / 20:09
1
answer

Add column to a Ruby scaffold

I am a beginner in Ruby and I have the following question: after having generated a scaffold called negotiations with the fields name: string last names: string I have noticed that I am missing one more, age: integer. I tried to generate it manu...
asked by 15.05.2018 / 22:17