Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in 1993.

learn more… | top users | synonyms | ruby jobs

0
votes
0answers
3 views

How to enable Cross Origin Resource Sharing in Rails application?

I have developed a Rails Application which servers as a back-end for mobile devices.Now i am trying to access my Rails Resource through Web Application.I tried creating an sample web application ,but ...
0
votes
0answers
6 views

ROR Heroku push error Bundler could not find compatible versions for gem “hashie”:

Getting this error while pushing code on heroku. IS there anyone who can solve my problem. Resolving dependencies... ..Bundler could not find compatible versions for gem "hashie": In ...
0
votes
0answers
5 views

Ruby OpenSSL Cipher

When I instantiate a cipher with AES GCM like so, it works: OpenSSL::Cipher.new('aes-256-gcm') However, I get an unsupported cipher error when I do the following (the way mentioned in the docs): ...
0
votes
1answer
18 views

Ruby Regex for 1 or two Digit Match with Elsif

I'm trying to use the following regexp in ruby <% elsif entry.name=~(/^[0-9][0-9]/) %> to check the entry.name string for a 1 or more digit number. I can't seem to get the syntax right. For ...
0
votes
0answers
5 views

Spree 2.0.0 Combine 2 States during checkout?

I have 1 question and 1 issue plz guide me ASAP if you can spare couple of seconds from your busy schedule. Thanks in advance. Scenario: I have removed delivery step from Spree checkout process in ...
0
votes
0answers
11 views

Not sending recovery password in ruby on rails

I'm doing a rails application and I'm trying to send an email to the user for recovering their password. I'm using the "devise" library and I cant understand why my application is not sending the ...
0
votes
1answer
16 views

32 bit ruby 1.9.2p290 Time can't handle 2038?

32-bit ruby 1.9.2p290 (which I must use), seems to be having a hard time with adding 25 (but not 24!) years to the current time. now = Time.now more_time = (24*365*24*60*60) puts "more_time.class = ...
0
votes
0answers
7 views

How to combine combine 2 checkout steps spree rails?

I'm new to spree. I have removed delivery step in my spree2.0.0 application. I want to render its view in "_payment.html.erb" do you know how to do this? Thanks.
0
votes
0answers
7 views

Carousel Next with a Back to Top Feature

I have added Bootstrap Carousel and a Back to Top Button to my rails app. Everything works perfect. Is there anyway in which I can combine Bootstraps Carousel's Next Button with my Back to Top ...
0
votes
1answer
14 views

assets:precompile doesn't seem to work, locally or not

When pushing a Rails 3.2.11 app to heroku, running rake assets:precompile or RAILS_ENV=production rake assets:precompile doesn't seem to make assets available - it doesn't matter if I run this rake ...
-1
votes
1answer
24 views

Error Running Ruby on Rails App in Production Mode

I'm just starting to use Ruby on Rails and I am going through a tutorial to get started. I have everything working for testing, so I can use a rails server command in the directory to make it show the ...
0
votes
1answer
6 views

bundle install libv8 keeps loading for ages

So I'm trying to install libv8 (3.11.8.17) that is a dependency of therubyracer on Mac OS Mountain Lion. However it keeps loading for ages.... Saying: Installing libv8 (3.11.8.17) with native ...
0
votes
2answers
21 views

Parse JSON with Ruby

I have two JSON returns. One I am able to parse fine {"login"=>"foo", "id"=>bar, with @foobar_collect["login"] But one I am having issues with {"items"=>[{"user_id"=>foo, ...
2
votes
1answer
29 views

Get all items inside quotes in Cucumber Step Definition

I have a string: I attach "dog.png", "cat.png", and "alphabet.doc" This is what I want matched: 1. dog.png 2. cat.png 3. alphabet.doc I can do this by doing "([^"]*)", however, the string has to ...
1
vote
0answers
19 views

How to read base64 encoded picture from rails by android

I want to send an base64 encoded picture from ruby on rails to android. Sending the data to rails included the picture encoding and decoding works, the data transfer from rails back to android works ...

1 2 3 4 5 5285
15 30 50 per page