Questions tagged as 'ruby-on-rails'

1
answer

AbstractController :: ActionNotFound for a destroy action

Hello, I have two applications running in Heroku with the same code, but I'm having a problem with the production version. When trying to make a request, I have the following log: AbstractController::ActionNotFound (The action 'destroy...
asked by 28.06.2014 / 17:30
1
answer

How to test the locals on a render?

I have the following question, I make my tests using Ministest, however I have a problem when testing the locals of a render ... I do not know how to test, for example: Controller: def salvou render('cadastro/salvou', locals: {id: params...
asked by 30.06.2014 / 21:23
2
answers

JavaScript files do not load into production. How to solve?

I have the following problem. In production some JS files do not appear, already in development they appear. Production: Development: Does anyone know how to solve it?     
asked by 01.07.2014 / 15:24
1
answer

Create a service together with the Ruby on Rails app

I'm developing a new project using Ruby on Rails to communicate with a legacy system made in COBOL. This communication will be done through TXT files, that is, when I have to get information I have to read a folder, open the TXT files and ren...
asked by 16.04.2014 / 17:04
1
answer

How to create Access rules for a plugin?

I'm developing a plugin for REDMINE. I have menu created using :top_menu , so it stays at the top of REDMINE, next to Administration, etc ... However, I want that not all users logged into the system, see this "Button". Only User...
asked by 09.04.2014 / 15:53
1
answer

Calendar in Rails 4

I would like to create a calendar in Rails 4. I followed some tutorials on the internet, however, I did not succeed. I was able to do the table_builder calendar in "per month" format, but I need a lot more of the weekly view (with hours on the l...
asked by 24.06.2014 / 14:17
1
answer

Update user Devise via API with security

In an app I need to edit a user's user name, email, phone, and password (for the optional password, I found this solution ). But this change is made via API. Since it involves data change I need to know how to make this change safely. If it...
asked by 25.03.2014 / 21:24
2
answers

How do I query a polymorphic relationship in Rails 3/4?

I have a jobs table and a activities table. A Job can have multiple Activities. The relationship is polymorphic. Tables: job activities ----------- ------------- id id ... target_id target_...
asked by 31.01.2014 / 18:54
2
answers

Rails update to 5.2 error: The direct method can not be used inside a routes scope block

I'm trying to upload the Rails version from version 5.1.2 to version 5.2.2 and I'm having the following error when I try to upload the application server: The direct method can't be used inside a routes scope block (RuntimeError) Here...
asked by 04.01.2019 / 20:41
1
answer

link_to action e id

I want to make an action to change the password and I have the following link_to to redirect to html.erb with the correct user <%= link_to 'Mudar Senha', "edit_password_form/" + @usuario.id.to_s %> I feel like I'm doing the wrong th...
asked by 23.05.2014 / 01:39