ruby-1.8.7 Questions
2
Solved
Note: This question relates to How can I get bundler to use the Ruby version set by chruby and .ruby-version?.
Using chruby I have Ruby 1.8.7 installed on macOS:
$ ruby -v
ruby 1.8.7 (2013-06-27 ...
Reflector asked 2/2, 2018 at 4:48
6
Solved
I'm not a Ruby dev by trade, but am using Capistrano for PHP deployments. I'm trying to cleanup the output of my script and am trying to add a unicode check mark as discussed in this blog.
The pro...
Variegation asked 28/8, 2013 at 15:50
8
Solved
I want to get the last character in a string MY WAY - 1) Get last index 2) Get character at last index, as a STRING. After that I will compare the string with another, but I won't include that part...
Stigmatism asked 14/1, 2015 at 6:51
5
Solved
I need a way to split an array in to an exact number of smaller arrays of roughly-equal size. Anyone have any method of doing this?
For instance
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13...
Unreconstructed asked 11/9, 2012 at 17:9
3
Solved
I'm trying to make a https post request in ruby and it works in curl, but I get a 400 bad request in ruby and I'm having trouble figuring out why.
Heres the ruby code:
require 'rubygems'
require ...
Illuminating asked 29/1, 2013 at 19:41
2
I'm using Rails 3.2.2, with aasm gem, I have Document model this way:
class Document < ActiveRecord::Base
include AASM
aasm do
state :unread, :initial => true
state :read
state :clos...
Armelda asked 16/6, 2012 at 20:7
1
I am in a process of migrating my application from ruby 1.8.7 to 1.9.3 (and later upgrading Rails). However I geht some problems with logging in 1.9.3.
By using the following code in environment.rb...
Barcus asked 28/7, 2015 at 10:33
1
Solved
I wasn't working with ruby 1.8.7 and recently I was surprised that:
{:k => 30}.to_s #=> "k30"
Is there ready to use fix to convert hash to string for ruby 1.8.7 to make it look like:
{:k ...
Soucy asked 19/2, 2013 at 12:10
1
Solved
I've been looking around for the best way to do this and found an easier way than to install both tcl and tk.
Senzer asked 29/10, 2012 at 1:59
1
This is a follow-up to to this answer, regarding ruby 1.8.7's Symbol#to_proc generating a new proc every invocation.
There seems to be more going on than the answers suggest.
Here's some sample c...
Axiomatic asked 2/8, 2012 at 16:24
1
Solved
So I'm writing some rspec tests and I'm embarrassed at my lack of Ruby understanding.
I have a file structure that looks like the following:
GUI_Tests/Tests/test_spec.rb
GUI_Tests/windows_gui.r...
Scriptural asked 15/7, 2010 at 17:35
1
© 2022 - 2024 — McMap. All rights reserved.