Questions tagged as 'ruby'

1
answer

Print data obtained in listen

I have the following lib : module Bitfinex module V1::TradesClient # Get a list of the most recent trades for the given symbol. # # @param symbol [IOTUSD] the name of the symbol # @param params :timestamp [time] Only show t...
asked by 25.10.2017 / 13:39
0
answers

two forms do not update me, ruby on rails

I have a problem I have two forms in the first one saves some fields and then in the second it saves others when I'm going to update the id I get an error. the second form the field is: attention.  thanks def update respon...
asked by 02.10.2017 / 17:33
1
answer

Avoid process using before_action

I am developing the user permissions and I am trying to use a before_action to evaluate a conditional, if it returns false I want the "create" action not to execute, but if it returns true the record will be created this would be my before_ac...
asked by 25.09.2017 / 18:21
2
answers

I can not update the Ruby on Rails version

I want to update the ruby on rails version. I'm using ubuntu and when I run: rails -v Rails 4.2.7.1 It tells me that I have version 4.2.7.1 installed. To update the command I want to use: sudo gem install rails -v 5.1.4 Successfully in...
asked by 12.09.2017 / 21:17
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

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
1
answer

Send mail in app sintra ruby

Well I have the following form in my index view <form action="/mailcontacto" method="post"> <div class="jx-ticket-first-name"> <input type="text" id="reg_name" name="reg_name" placeholder="Nombre" class="...
asked by 19.08.2017 / 22:02
2
answers

migration error Paperclip in rails

Hello, every time I give the migration it throws me an error and it does not let me do the migration. link gem "paperclip", "~> 5.0.0" gem "spring", group: :development the gems that I have installed.     
asked by 22.08.2017 / 22:13
1
answer

Delete several records with checkbox in rails 5

Why does null arrive? controller def multiple_destroy Article.where(id: params[:articles]).destroy_all redirect_to articles_path end route delete 'articles/multiple_destroy' view <% @articles.each do |article|%>...
asked by 06.08.2017 / 01:08
0
answers

what to do when several routes are repeated ruby on rails 5

What happens is that I want to code code just start in this role I want to program well is for a JavaScript and also calls it from controler the methods select_region, select_ciudad, select_planta are repeated in other models Rails.application...
asked by 09.08.2017 / 21:19