ruby-1.9.2
Trouble with threads in OSX and Ruby 1.9.2
Running the following code in IRB: t = Thread.new { loop { puts \'Hi\' } } I receive a single hi and then no more output.Only if I begin pressing the enter key do I receive output as expected until[详细]
2023-04-09 09:44 分类:问答Rails 3 Ruby 1.9.2: UTF-8 characters show garbled in console and view
My database table has a column开发者_开发问答 with utf8_general_ci collation. The database.yml has encoding: utf8[详细]
2023-04-08 19:20 分类:问答Rails 3.1, memory leak for missing local partial variables (Ruby 1.9.2-p290)
If I render a partial like so: = render :partial => \"event_news_item\", :object => event,:variable => true[详细]
2023-04-08 01:17 分类:问答with_index in ruby 1.9.2
I upgraded to ruby 1.9.2p290 (2011-07-09 revision 32开发者_如何学运维553) Any idea why I get ArgumentError in Territories#show[详细]
2023-04-06 04:38 分类:问答Ruby 1.9: Break statement from recursive functions now a syntax error?
I\'m updating a bundle (GetBundles) to be compatible with Ruby 1.9 (1.9.2 specifically). This script uses[详细]
2023-04-05 09:39 分类:问答Weird Proc error in Ruby
I have a method accepting a lambda which will be called or a string which will be evaluated. Why does the fo开发者_运维问答llowing method fail:[详细]
2023-04-04 00:13 分类:问答Ruby Hash statement working in irb and giving error in terminal
My hash开发者_如何学Python statement is working fine in try ruby.org where as its giving error in my terminal. Why so?[详细]
2023-04-03 22:54 分类:问答Shortening enumeration code
What is a succinct way of accomplishing this in Ruby? I simply want to wait until all objects are running. This seems too wordy.[详细]
2023-04-03 16:45 分类:问答How can I reverse this Regex?
I\'ve got a successful match on: /^\\/?build\\/(.+\\.coffee|.+\\.sass|.+\\.erb)$/ Now I want to find all file开发者_高级运维s under /build/ that DON\'T match either of those extensions. I think I c[详细]
2023-04-02 19:47 分类:问答Ruby/Rails: accessing a variable inside a .each on my instance variable array causing Ruby interpreter to crash
I\'ve written a mixin (based on something I read in a blog) that seems to be causing a problem Here is a link to the project: http://www.filehosting.org/file/details/263759/onlinescheduler.zip (or s[详细]
2023-04-02 10:04 分类:问答