Questions tagged as 'ruby-on-rails'

0
answers

Uploading css and js from active rails admin in apache

Friends decided to post this question after much research and unsuccessful attempts. I am configuring a VPS, where in it, a site containing a administration section is being hosted. the Front eh in React and the Back in Ruby. The adm section was...
asked by 29.11.2018 / 14:49
1
answer

Automatically save to the bank after changing the value of select

I am using the DataTable to show a table to the user with some information, in one of the columns (Status) a select with options is displayed. I want you to select another option from the select, it is automatically saved to the database. I'm no...
asked by 19.11.2018 / 15:03
0
answers

Refresh combobox with data from another Rails table

I have a "professions" field that appears inside the "patient" table. The field "professions" is autocomplete with gene chosen. I want to create a "new profession" button where when searching the combobox and not finding the desired profession,...
asked by 13.11.2018 / 00:20
1
answer

Method returns me as null value

When I create my code below, it returns me this error message, saying that my method is undefined for nil (undefined method 'errors' for nil:NilClass) Code: <ul> <% @task.errors.full_messages.each do |message| %>...
asked by 15.10.2018 / 16:21
0
answers

Configure subdomain in NGINX with rails

I'm uploading a Ruby on Rails application to DigitalOcean, and I need it to stay in a subdomain, I've already set up DNS and it's working. The application works in the primary domain. But the subdomain does not work. I'm using NGINX and th...
asked by 15.10.2018 / 22:50
1
answer

Show the dropdown options in the header and take the search bar off the menu in the mobile view

I have a header that, in the mobile view, does not show dropdown options, and the main option is not clickable. I would like the menu options to be displayed and the search bar would also be outside the menu, also in the mobile view. Below is...
asked by 09.10.2018 / 19:10
2
answers

Rendering a JSON object with the join of different models

I'm developing an API with rails 5 and I have the following models: class cotacao < ApplicationRecord belongs_to :usuario has_many :cotacao_itens, dependent: :destroy accepts_nested_attributes_for :cotacao_itens, allow_destroy: true...
asked by 05.10.2018 / 20:18
2
answers

Ruby on Rails Modeling

I have a question that I can not see how to resolve. I have to run a stock program in Ruby on Rails that contains some hardware, which will contain some insights. For example, I will have computers, printers, phones, among others, each wit...
asked by 04.10.2018 / 17:55
1
answer

Request via Ajax not returning filtered data

I am trying to return data via Ajax to load a select of states in Rails, so that only returns the states that belong to a given Country, but the return never arrives in the conditional, always to the parse of the JSON that I'm requesting from th...
asked by 08.10.2018 / 22:38
1
answer

Rails 5: Iugu and recurring payment

I looked in the Iugu documentation what the function in Rails called to create a recurring payment in iugu, but I could not find it. Can someone give me a light on this? There is Iugu::Subscription.create , but I would like the specific fu...
asked by 20.09.2018 / 13:40