Questions tagged as 'ruby-on-rails'

1
answer

Error Do not know how to build task 'run'

I get this error when running my ruby server: $ rails run rails aborted! Don't know how to build task 'run' (see --tasks) /home/daniel/.rvm/gems/ruby-2.3.0/gems/railties- 5.0.6/lib/rails/commands/rake_proxy.rb:14:in 'block in run_rake_task' /h...
asked by 09.09.2017 / 06:49
1
answer

Filtering records of associated tables that match the current session Rails

I have been trying to filter the users who applied for X job offer, but to have a better overview I will explain my association and my problem: class Job < ApplicationRecord belongs_to :enterprise has_many :job_candidates end class J...
asked by 06.09.2017 / 08:53
2
answers

Consume an API

I have this API code that I'm doing to the consumer, it shows me an error that says: "no implicit conversion of String into Integer" I do not know if I need to add anything to the codes. Image of the codes I'm using I do not know if I n...
asked by 02.09.2017 / 21:52
0
answers

Operation of dynos in Heroku

How do the Heroku dynos work? Can I have more than one? For now I have web: node app.js --> levanta la aplicación de Angular worker: bundle exec puma -C config/puma.rb --> Rails API Until then everything works well for me, I ge...
asked by 25.09.2017 / 22:16
1
answer

Problems with the gem of Tawk.to

I am currently trying to link the chat bubble of Tawk.to to my website, I have already installed the official gem of RoR on my gemfile and I have performed the steps described in the documentation (I leave the link below). The problem is that wh...
asked by 27.08.2017 / 00:32
1
answer

Create users with devise from another Rails 5 controller

I am using devise for user authentication and I am trying to create view admin that can create users from that view. Things to know: I am using the ApplicationHelper to be able to login from the home instead of using the default login....
asked by 26.08.2017 / 23:21
1
answer

My master detail does not work ruby on rails

Hi look, I gave an example what I should do, the photos are in this link link but it does not work I recharge the page every time I give it to add another one or if I am going to delete it, I always recharge the page thanks for the attention g...
asked by 25.08.2017 / 15:42
2
answers

I want to make a Toggle Switch in Ruby on Rails

I want to do a Toggle Switch on RoR My versions of ruby on rails are respectively: ruby -v ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] and rails -v Rails 5.1.3 I created a project with scaffold rails new com...
asked by 27.08.2017 / 14:27
1
answer

Problems to centralize a Map by adding it in a modal Rails

It happens that the maps work perfectly and even centered except if I add them inside a modal, at first, it did not even show the map in the modal, but it was solved by adding an initializer that resized the map inside application.js , and altho...
asked by 27.08.2017 / 07:50
1
answer

routes in rails?

I have the models Player , Team and PlayerTeam ; PlayerTeam is the middle table that forms the many to many relationship between Player and Team . player.rb: class Player < ApplicationRecord h...
asked by 29.08.2017 / 14:11