Questions tagged as 'ruby-on-rails'

1
answer

Why do I get the error ActionController :: UrlGenerationError in Ruby when trying to create a new record?

I have a view where I will create series and I have a list, from the list I link to the aggregation of My series, but mark this error index.html.erb file <section class="capturar"> </section> <section class="detalles...
asked by 02.09.2016 / 06:55
3
answers

real-time validation in rails

Good morning, how could I validate a text_field in real time with js in rails? I have my validates in my model, and the validations and view of errors per field are made post submit, but how do I validate in the field itself without having to su...
asked by 04.11.2016 / 14:11
1
answer

How to create a model of an existing database? rails

Hello, my question is this, I'm doing an application in rails, but I already have the databases created, one of the tables for example is called "UsersMaster" and I can not change its name. Now, how do I create a rails model for that table...
asked by 22.09.2016 / 19:01
1
answer

Error using Nested resources "undefined method 'build' for nil: NilClass"

I'm trying to make a relationship in which a product has a great product, I'm following this tutorial link but when in the form to create a new product you can in turn create a productxpza by adding the field in the form and place in the contr...
asked by 14.07.2016 / 18:44
1
answer

Duplication of confirmation email when the callback is triggered from the User DEVISE model

I just finished following this guide link which worked perfectly, and activate the confirmable module so that when the admin approves the user's account after registration, a confirmation email will be sent after the parameter of the approved...
asked by 19.07.2016 / 03:27
1
answer

Error with link_to method delete in Ruby on Rails

I do not know why this happens but for a few hours I have been struggling with this problem that I really do not know how to solve. Here is my link_to: <%= link_to "sign_out",sign_out_path, method: :delete %> My route: delete 'si...
asked by 26.02.2016 / 05:47
1
answer

Allow different types of data in the same field - Ruby On Rails

I have a logic query that I'm not sure how to solve, I'm doing a kind of survey, in which, when creating the questions, I need to specify the type of response it will receive, be it a text string, a Boolean data, a numeric data, etc. However, th...
asked by 16.12.2018 / 19:50
1
answer

Accepting multiple data types - Ruby On Rails

I come with a problem mainly of logic, I am developing a survey, which works perfectly, your question is created, and you get the answer, all right, but the field that gets the answer only accepts as data type " string ", and there are que...
asked by 21.10.2018 / 20:24
1
answer

Blob URL in Ruby

I have a database in which I have the blob of an image, now I want to show it in an interface created with rails_admin , I'm doing it as mentioned in link in the output formatting part, but I do not know how to pass the blob...
asked by 03.09.2018 / 05:55
1
answer

Duplicate a row of a table in my database - Ruby on rails

When creating a new event I have an option that is enabled with a checkbox that is to duplicate a quote already made of another event already created, I display the list of which event I need to duplicate that quote, I have several tables where...
asked by 24.07.2018 / 18:26