Questions tagged as 'ruby-on-rails'

0
answers

How can I make an access control visually in ruby on rails?

I've already managed to do the gráfica(FRONT) part, however I'm having problems in the code part. Access control works as follows: if the new group (or profile) is created, I can decide what permissions it will have inside the system, i...
asked by 04.12.2017 / 20:18
1
answer

Help with Heroku, does not it show pages with the Ruby language?

Hello, I need the help of the noble knowledge holders. I'm studying Ruby on Rails through the Codecademy website. I got some things I learned there, and I tried to put it online at Heroku. Everything went right at the beginning, everything perfe...
asked by 10.12.2017 / 06:10
1
answer

Error trying to create in a Windows environment a controller in RubyOnRails using Gemfile gem tiny_tds

I set up a RubyOnRails environment on Windows OS and need to access a MSSQL database with a database already created and populated, I just wanted to consult the database and return data through queries. I saw that there is a gem called tiny_t...
asked by 13.12.2017 / 14:01
0
answers

programming in Ruby on Rails

I have a form and I include a médicos table, and in this table there is a enum field where you can choose the cooperativa option, but I have to check in another cooperativa table if this doctor has a cooperativa...
asked by 14.11.2017 / 15:50
1
answer

How can I create a query with alternating sorting in rails 5?

I have the following formatting in my database Products  - Name  - Store Id with the following records product 1 - Shop 1 product 2 - Shop 1 product 3 - Shop 3 product 4 - Shop 1 product 5 - Shop 2 product 6 - Shop 2 product 7...
asked by 07.11.2017 / 13:21
1
answer

Install Redmine Debian 9

I'm trying to install redmine on debian 9 (stretch), following the tutorial: link When I go to the bank migration, the following message appears: root@redmine:/opt/redmine-3.4.3# bundle exec rake generate_secret_token root@redmine:/opt/redmi...
asked by 09.11.2017 / 11:45
0
answers

PostgreSQL compare time between two hours, and if you exceed the hours of the day, limit until 23:59

I am making a query sql on ruby-on-rails on PostgreSQL where I check if user input is between hora_entrada and hora_entrada + (hora_entrada + limite_banco_horas) and same for hora_fim , in a certain...
asked by 09.11.2017 / 17:35
1
answer

Routes calling the same action as the controller

Hello, I have the following problem: I'm creating a movie rental system in a college job, where the user can rent movies from different rental companies. The first problem I'm having with routes is that a user can add movies to favorites,...
asked by 26.10.2017 / 13:54
1
answer

link_to_remote in Rails 5

I'm leaving for Rails 5 and I can not find a replacement for link_to_remote that has been discontinued. In my old code, I have a "Cadastro" link, which when clicked, makes a request to the "register" action and renders the return in th...
asked by 10.10.2017 / 01:17
1
answer

Problems using nested_attributes and devise

I'm creating a user settings form that uses devise, I'm using nested attributes, but for some reason the settings registry is not updated, but rather deleted, does anyone have any idea what's going on? Form: link Console log: link (Als...
asked by 12.10.2017 / 23:54