Questions tagged as 'ruby'

3
answers

How to install rvm in Debian squeeze

I'm trying to install rvm but I can not. When checking for dependencies it complains about the libgmp-dev package that is not installed and trying to install it is not localized. So I've been searching and it looks like there really is no suc...
asked by 04.07.2016 / 00:44
2
answers

Ruby error after updating ubuntu

After updating Ubuntu, it does not load Ruby anymore or something, the error message that returns is:    / usr / bin / env: "ruby2.1": File or directory not found Every time I have to start the application     
asked by 01.07.2016 / 03:02
2
answers

Gem not available

Error:    Cound not find gem 'jquery-rails (> = 0) ruby' in the gems available on this machine Image: I'm using a virtual box, can this be?     
asked by 01.07.2016 / 05:48
1
answer

Problem of perfomance when returning json with rabl after consultation with activerecord

I'm having trouble adjusting performance by returning json after a query to the database. I've tried a lot of things, and I'm not getting any faster. Can anyone give me strength with this? This is the query in the controller Methodnotmo...
asked by 29.06.2016 / 21:06
1
answer

Multiple Joins with Active record returning null

Friends, I have the following console outputs (Rails 4.1): Product.all Product Load (0.2ms) SELECT "products".* FROM "products" => #<ActiveRecord::Relation [#<Product id: 4, cod: "160", descricao: "Sutiã", price: #<BigDecimal:...
asked by 02.06.2016 / 21:07
1
answer

Function Reference in the Array in Ruby

I could not understand how the relationship in Ruby is to the reference of an array variable ( best and vector ) with the return of a function or bitstring for example). Consider the following case: best[:fitness] Where best is an...
asked by 08.06.2016 / 03:50
1
answer

Select duplicate field with chosen-rails and relationship has many through

Personal speech, I have a GROUP_TV table and it relates to the City table through the has many through. In the _from.html.erb of the GROUP_TV view, I have a collection_select to select as many cities as I want. This works perfectly. The...
asked by 06.05.2016 / 22:23
1
answer

Parameters Action Mailer with BlueHost Brasil

Hello, I'm trying to send notifications in my rails application, in development mode. With GMAIL, everything is ok, but I'm not able to use it with the hosting I have at BlueHost Brasil. I've tried changing several parameters, it's currently lik...
asked by 25.04.2016 / 06:16
1
answer

I would like to connect rails to Intel xdk

My final goal is to create an app in xdk that interacts with rails. If nobody knows exactly how it works but give a light on how to access sqlite with ruby and javascript already helps a lot. I have some doubts about the correct way to do this....
asked by 18.04.2016 / 05:30
1
answer

Problem with Mysql connector in rails

I am not able to create a database for my Rails application it says the following message: Error    C: \ Ruby21-x64 \ DevKit \ Project> rake db: create DL is deprecated, please   use Fiddle rake aborted! LoadError: Please install the mys...
asked by 01.04.2016 / 01:18