Questions tagged as 'ruby-on-rails'

1
answer

no implicit conversion of Symbol into Integer (RAILS)

I'm collecting data from a cinema web services and I want to get the movies, but I get an error:    no implicit conversion of Symbol into Integer This is the function in controller : def set_movies prepare_client_soap @re...
asked by 03.02.2017 / 15:45
2
answers

How to iterate 2 different objects in the same each in Rails?

I have been trying to iterate 2 different objects in Rails, I have 2 resources one of "News" and other of "articles", then I want the 2 iterate in a parallel way in the same section and be added according to the order of date published within my...
asked by 17.01.2017 / 21:35
1
answer

Application rails with remote database

I'm starting in ruby on rails and I want to make an application connected to mysql , but the database is on a remote server. I have to create the database beforehand or I do it later from the console with rake db: create? Here's my datab...
asked by 19.01.2017 / 12:59
2
answers

Problems updating a record with Ajax Rails

A small problem happens to me, more than a problem a bad browsing experience, when I update the record through Ajax, the original record is kept, and the updated one remains as an aggregate, when I should update the same cell, until I update the...
asked by 02.01.2017 / 06:39
1
answer

Problems to delete a record with AJAX in Rails [duplicated]

At the moment of deleting a record with AJAX , it deletes it but does not update the table with the record removed, possibly maybe it is doing wrong the render or I need to specify something more to destroy.js , I share my c...
asked by 01.01.2017 / 23:01
1
answer

In RoR I'm not running the .coffee code

I am designing a social network and I want that when the user clicks on any of his posts, the option to edit or delete the same appears, these options are in a div, and what I intend to do can be done with a style and with the .coffee file as fo...
asked by 01.01.2017 / 07:17
1
answer

How to make a vertical menu in rails?

The truth is I have a problem that I think is noob. It turns out that I am creating a panel for my users and I want to create a vertical menu, the problem is that I want it to be loaded in a part of the page. I leave an image so that they und...
asked by 16.12.2016 / 13:36
0
answers

Sidekiq processes some records and others do not. (Ruby on Rails)

The problem is as follows, the loading of a csv file into the portal and the evaluation of the file data is done in a thread with Sidekiq. The detail is that it processes a number of records of that file correctly and the last records do not pro...
asked by 06.12.2016 / 16:59
0
answers

Change attribute in link_to by a select

I have a select that a provider takes. <%= form_for @claim do |f| %> <%= f.select :provider_id, {}, {include_blank: "Seleccione opción"}, {id: "provider_selector_resend", style: "width:100%;"} %>    Then on the same page...
asked by 01.12.2016 / 15:53
0
answers

Flash message by Ajax Rails

I am trying to show a Flash message by Ajax, since I have a modal that when closing I wish to notify the user that the action was done, I use Foundation 6, and unfortunately this version still needs to be added fundamental things like "Toast" me...
asked by 14.12.2016 / 01:51