Home
Question
Login
TAG
ruby
ruby - Stringify array for eval - Stack Overflow
I'm preparing a string that will be eval'ed. The string will contain a clause built from an existing A
ruby
admin
2022-6-19
50
0
qtruby - Worker threads in Ruby - Stack Overflow
I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)&
ruby
qtruby
admin
2022-6-19
37
0
Ruby: How to post a file via HTTP as multipartform-data? - Stack Overflow
I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a
ruby
http
post
admin
2022-6-18
46
0
ruby - rspec: How to stub an instance method called by constructor? - Stack Overflow
class A
def initialize
@x = do_something
end

def do_something

ruby
rspec
stub
admin
2022-6-18
42
0
ruby - Rails model without database - Stack Overflow
I want to create a Rails (2.1 and 2.2) model with ActiveRecord validations, but without a database table.What is the m
rubyonrails
ruby
activerecord
admin
2022-6-18
43
0
Python equivalent of continuations with Ruby - Stack Overflow
What is the Python equivalent of the following code in Ruby?

def loop
cont=nil
for
python
ruby
continuations
admin
2022-6-18
41
0
ruby - How do I run a rake task from Capistrano? - Stack Overflow
I already have a deploy.rb that can deploy my app on my production server. 

My app contains a custom ra
ruby
rake
capistrano
admin
2022-6-18
41
0
ruby - How do I run a rake task from Capistrano? - Stack Overflow
I already have a deploy.rb that can deploy my app on my production server. 

My app contains a custom ra
ruby
rake
capistrano
admin
2022-6-18
46
0
What is the "right" way to iterate through an array in Ruby? - Stack Overflow
PHP, for all its warts, is pretty good on this count. There's no difference between an array and a hash (maybe
ruby
arrays
loops
admin
2022-6-18
45
0
ruby - What's the best way to parse a body of text against multiple (15+) regexes on each line? - Stack Overflow
I have a body of text that I have to scan and each line contains at least 2 and sometimes four parts of information. The
ruby
regex
performance
parsing
peg
admin
2022-6-18
56
0
List comprehension in Ruby - Stack Overflow
To do the equivalent of Python list comprehensions, I'm doing the following:

some_array.select
ruby
listcomprehension
admin
2022-6-18
32
0
RoR environment in Ruby standalone script - Stack Overflow
I want to run a standalone ruby script in which I need my RoR environment to be used. Specifically, I need my models ext
rubyonrails
ruby
environment
admin
2022-6-14
50
0
What does __FILE__ mean in Ruby? - Stack Overflow
I see this all the time in Ruby:

require File.dirname(__FILE__) + "....configenvi
ruby
admin
2022-6-14
33
0
komodo - Ruby gets function won't accept empty line more than once - Stack Overflow
I'm trying to write a simple ruby function that can prompt the user for a value and if the user presses ENTER b
ruby
komodo
admin
2022-6-14
42
0
ruby - Can "gem install" be configured to install executables outside usrbin by default? - Stack Overflow
By default, when you sudo gem install thegemname it will install executables into usrbin

Is there a
ruby
installation
rubygems
admin
2022-6-14
47
0
ruby - Can "gem install" be configured to install executables outside usrbin by default? - Stack Overflow
By default, when you sudo gem install thegemname it will install executables into usrbin

Is there a
ruby
installation
rubygems
admin
2022-6-14
38
0
ruby - Can "gem install" be configured to install executables outside usrbin by default? - Stack Overflow
By default, when you sudo gem install thegemname it will install executables into usrbin

Is there a
ruby
installation
rubygems
admin
2022-6-14
46
0
ruby - rails routing controller action change - Stack Overflow
I'm struggling here with a problem:
I have a controller questions which has action new.
Wheneve
rubyonrails
ruby
routing
admin
2022-6-14
47
0
ruby - rails routing controller action change - Stack Overflow
I'm struggling here with a problem:
I have a controller questions which has action new.
Wheneve
rubyonrails
ruby
routing
admin
2022-6-14
54
0
ruby - Can I set up Cascade deleting in Rails? - Stack Overflow
I know this is probably on the Internet somewhere but I can't find the answer here on Stackoverflow so I though
rubyonrails
ruby
database
admin
2022-6-14
47
0
1
2
3
4
5
6
...100
»