Questions tagged as 'ruby-on-rails'

1
answer

Add CSS class in collection_select via html_options in Rails

Community, I present a problem with the colletion in Rails since I do not know how to place a CSS class inside the colletion. I'm doing it this way:     
asked by 28.08.2017 / 17:46
1
answer

collection_selec Rails does not take CSS class

I am rendering a JS in rails but the colletion_select does not take me a class of css that I am placing. name file: options.js.erb var html = "<%= j(collection_select(:item_pro, :name, @items, :id, :name, {class: 'style-colletio...
asked by 28.08.2017 / 16:41
1
answer

How to pass collection_select to simple gem form

Good community, I have a problem with the simple form gem, since I need to pass a colletion_select to a simple form, to do so gives a method error. I appreciate your help. Thanks!     
asked by 20.08.2017 / 01:57
0
answers

Error raising server in Ruby

I need help with this error, I'm new to this and I do not know why I get this /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in 'require': cannot load such file -- bundler/setup (LoadError) from /usr/lib/ruby/2.3.0/rubygems...
asked by 12.08.2017 / 01:49
2
answers

Perform mathematical operations in Rails

So far I have only worked with information processing in Rails, companies, articles, products, etc. However there is something I have never done and curiously I do not find explicit information about it, but rather, directly in Ruby but not in R...
asked by 13.08.2017 / 00:08
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

Authentication error OAuth2 facebook Login

I am making a connection to facebook with ruby on rails and omniauth-facebook , but it is not validating my credentials. I would be grateful if you could help me with this error that I am having, this is the code: I created a model called...
asked by 21.08.2017 / 20:23
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
1
answer

Way to use literals and other ES6 enhancements and precompile them in rails 4

Do you know if there is any support for precompiling javascripts using literals and other improvements to ES6? I wanted to start using projects rails ES6 but when I precompile in production it fails me. Thanks     
asked by 18.08.2017 / 05:13