|
I am writing a web based debugger for Ruby, but in order to do this I need to be able to call the Ruby debugger from within a Ruby program on the server side. Has this ever been done? Is this even possible?
The end product being built will allow Ruby ...
Started by Zubair on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would suggest you do all....
Then you run :
ruby client_script.rb
and this will stop the process once it reaches the debugger line.
I would imagine this as opening the same script a debugger call .
I think you could make use of ruby-debug .
|
|
Is there any way, on Ubuntu 9.04, to install ruby 1.8 as ruby1.8 (or get rid of it altogether) and have ruby 1.9 be the default ruby ?
Started by Martin DeMello on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not really sure, but maybe this can help
update-alternatives --config ruby
try
sudo apt-get a restart 1.9 was the standard ruby.
|
|
I've bought "Programming Ruby" from Pragmatic Programmers (still in beta), but friends say that "The Ruby Way" is much better. Should I buy it or wait for Ruby 1.9 books?
Started by lucashungaro on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Ruby is awesome....
Ruby 1.9 isn't that much different, I'd recommend The Ruby Way as well safest to get the Ruby 1.8 book, learn the stable version of the environment, and if you find release.
Of the incompatible changes in 1.9.
|
Ask your Facebook Friends
|
I have been studying ruby for the past few days and I have noticed there is Ruby on Rails. What is the difference between the two? Do they work to together? Is the syntax the same?
Started by yaar zeigerman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Its popularity prompted many people to take up writing....
Ruby on Rails is a library written in the Ruby language.
Ruby on Rails is a Ruby framework for implementing web applications.
Ruby is a general purpose language.
|
|
Hay Guys, whats the best books to learn ruby (and ruby on rails)?
Any books you guys would recommend?
Thanks
Started by dotty on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I prefer the advanced one but if you....
The Rails Way : is my reference for every day programming
Rails Recipe : Nice examples .
Ruby
why's (poignant) guide to Ruby
best book i've ever read on a programming language with ruby on rails.
|
|
I'm interested in learning ruby. But the most important thing for me is, if there are any good editors for that. That will help me decide if it's worth to switch from PHP to Ruby.
Started by Thanks on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I prefer to use....
See this question: http://stackoverflow.com/questions/59968/best-editor-for-ruby .
Many it to switch from PHP to Ruby.
Vim,emacs,textmate
I, and many other people, use and prefer TextMate for Ruby on Rails work.
|
|
About half a year ago, when I started to learn Ruby and Rails, I first tried Ruby 1.9 but I soon gave up, because at that time nothing worked out of the box and almost every helping blog or tutorial was designed for Ruby 1.8.
What about now? (Dec 2009...
Started by DR on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can read more here: Has anyone successfully deployed a Rails project... .
Unfortunately I dind't have good experiences with Ruby 1.9 and Rails.
Compatible with ruby 1.9, however sepcial cases might exist but I'm not aware of any right now.
|
|
I found this error in Ruby console while I am testing a Rails application.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib /mongrel.rb:285: in `run': Ruby threads cannot be used in RubyCocoa without ...
Started by Teerasej on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ objc/ruby_addition.rb_allowed then warn "#{caller[0]}: Ruby threads cannot be used in RubyCocoa without patches to the Ruby;> Thread.new { puts 'hi' ....
|
|
I'm on OS X (with bash) and a newbie at unix. I want to know if it's possible to amend some file such that to run a ruby program, I don't need "ruby file.rb", but instead can just run "ruby.rb".
Is there a reason NOT to do this?
Thanks!
Started by Alex Mcp on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
EDIT....
Assuming ruby.rb has something like this in it:
#!/usr/bin/env ruby puts 'Hello world'
At the command
For more details see wikibooks .
Yes you can do this.
The shell doesn't care.
(#!/usr/local/ruby or whatever the path is on OSX).
|
|
I'm expanding my Ruby understanding by coding an equivalent of Kent Beck's xUnit in Ruby. Python (which Kent writes in) has an assert() method in the language which is used extensively. Ruby does not. I think it should be easy to add this but is Kernel...
Started by Andrew Harmel-Law on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How Ruby's built-in unit tests.
So while Test::Unit might be useful for unit-tests, rather to catch cases where "this should never happen" .
Testing suite as a way of becoming more familiar with Ruby.
|