Questions tagged as 'ruby-on-rails'

1
answer

How to test Web Service in Ruby on Rails

I'm having the following question, I'm doing a web- service server with my application ruby -on-rails , I'm using gem wash-out , I understood how it works and managed to get my web-service to run, but I'd like to know how to test my ser...
asked by 05.06.2014 / 15:55
1
answer

Dynamic Field Forms in Rails?

For my CBT project, I have the following specification: A user, to register a production item, needs to report all of their ingredients. To facilitate the interaction, I thought of, listing all the ingredients registered in checkboxes. When t...
asked by 02.07.2014 / 16:03
1
answer

Relationship of products in models and bank

I'll try to be brief in my doubt. How can I model a class scheme that suits me in some things: This is all going to be done in rails 4.1, using ActiveRecord as ORM acting on MySQL. I will have a Person entity that will have a refere...
asked by 02.07.2014 / 04:47
1
answer

Problems with multiple ajax forms on the same page

I'm having a strange problem when I put multiple forms on a single page (in the index case) all have the remote: true parameter created from a loop in my records. The problem is that only the first form works with ajax, the second sends a...
asked by 06.03.2014 / 12:06
1
answer

Rack - Error Posting Redmine Plugin

I'm creating a plugin for Redmine that will act as a generator and publisher of projects within a repository, however I'm having trouble accessing my Publish project button. The function I created to publish the project is in the same file...
asked by 25.02.2014 / 15:44
0
answers

Treating URL / string in Ruby on Rails

I have to edit a received URL, but in some cases the URL may contain an external reference with http and this breaks my system because it only accepted paths to the platform itself. Here is a snippet of code and some output: <%-ob...
asked by 17.12.2018 / 17:22
1
answer

How to do authentication with Devise via AJAX?

I need to , for example, on my site's home page using GEM Devise with AJAX. Does anyone know any way?     
asked by 04.05.2014 / 02:13
1
answer

Return / Scope problems in CoffeeScript / Javascript

I have in Rails a get '/estados_por_pais/:pais_id route that returns me a JSON array with states in this country. This works perfectly. I created a CoffeeScript class with a static method that should fetch this array of states: class...
asked by 02.05.2014 / 16:30
0
answers

Rails / Nginx / Devise redirecting to http on login

Hello, I am not an underdog, I am a mere programmer enslaved by the stupidity of anyone who has money. That said, my doubt. Rails / nginx / certbot / DigitalOcean / devise are the cause of the problem, I think it's the main nginx, the co...
asked by 04.12.2018 / 16:33
1
answer

Error while editing an object in Rails_Admin

I enter rails_admin and it works normally with users, but when I edit an activity it gives this error. I've already researched what it can be, but I did not find anything very clear. So I'm going to put my activity model to help with the u...
asked by 29.11.2018 / 18:55