I am creating a simple Blackjack game in Ruby, and I have finished all the game logic stuff (finally!) and currently have it running through the command line. It is all working, so now I need a library or gem that will make the whole graphics side of things easier.
Any ideas?
Thanks.
...
What are the available (best) ruby IP-based geolocation gem/plugins?
How do they compare to one another in terms of functionality, performance and ease of use (e.g. do they interact with a web service, or require a separate database, etc.) ?
I'm hoping anyone that has used some can share their experience and give recommendations.
...
The functionality I'm looking for: I have a form that will search my 'Proposal' model. I want the form to contain a select box and display the categories I have. Now, 'category' is merely a column in my 'Proposal' Model, so the following code from railscasts does not work (as it assumes a category table and use of category_id)
<%=...
I have installed the ruby-net-ldap gem version 0.0.4 on my OS X (Snow Leopard) system. When I include the line...
config.gem('ruby-net-ldap')
in environment.rb, my tests won't run and I get this error...
Missing these required gems:
ruby-net-ldap
You're running:
ruby 1.8.6.0 at /usr/local/bin/ruby
rubygems 1.3.5 at /Users/et...
I'm trying to set a gem repository on one of our local servers. Here are the steps I'm running, that I've followed from several guides.
1) I create the BASEDIR folder /var/www/html/gems
2) sudo cp -r /usr/lib/ruby/gems/1.8/gems/someGem /var/www/html/gems
3) sudo gem generate_index -d /var/www/html/gems
However, when I run this, I get...
I had trouble with the gem at first but got it to work when I installed the 64-bit MySQL and reinsatlled the gem with arch flags.
So it work in rails. The error I used to get was
uninitialized constant MysqlCompat::MysqlRes
but that is now gone :)
However in Xcode when I run a RubyCocoa project I still get the old error of
uninit...
I am trying to install the mechanize gem that is supposed to work with 1.9 from here: http://github.com/kemiller/mechanize but I do not know how to add it manually.
I am using Windows, I could just copy the folder to the gems directory, but how do I initialize it?
...
When I build a gem, I get
(in /home/agrimm/ruby/chaser)
WARNING: no rubyforge_project specified
Successfully built RubyGem
Name: chaser
Version: 0.0.2
File: chaser-0.0.2.gem
The friendly manual says "Obviously, if your gem doesn’t have a Rubyforge project, leave this setting alone." (I don't have a Rubyforge project)
Trying ...
I am using Composite Primary Keys plugin and everything is working fine except timestamps. When i insert new row to table that has composite primary key , created_at and updated_at columns became NULL. What can be the problem ? Any help is appreciated.
...
I've been learning about gems lately, and one error I get is:
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/Alex/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
ERROR: Error installing rubygame:
ffi requires rake (>= 0.8.7, runtime)
I u...
Hello there,
I installed the ruby gem Daemons. To make sure it was working I created a script that would print to a file every 5 seconds. I then created another file to run the script using the trivial example they give you in the readme located at http://daemons.rubyforge.org/ . I require both rubygems and daemons. Then I type 'rub...
What is going on when I get this "HTTP Response 403" error?
I am trying to setup Ruby on Rails on OS X 10.5.8 with XCode 3.1.4:
Boston:$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
Boston:$ gem --version
1.0.1
Boston:$ sudo gem update --system
Password:
Updating RubyGems...
ERROR: While executing gem ...
hi all
I am deploying my rails app to a linux server and i have some of the rake tasks missing inlcuding rake gems:install and rake db
I am running rails 2.3.4 from GEM.
Does anyone know why this is?
How do i fix this ? can i update some how ?
thanks alot
richard moss
...
hi
I have ran gem install rails and am running 2.3.4
but i am missing some rake tasks like 'db' and 'gems'
if i run rake -T i get the following tasks. How can i get all the others ?
rake apache2 # Build Apache 2 module
rake clean # Remove compiled files
rake clobber # Remove all generated
files
rake default # Bu...
These are the two errors I am getting. I am on OS X. Honestly, don't know if I installed via gem or not - if that matters.
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/M/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
...
I tried to do
gem install mysql
but there is an error. "Could not create Makefile due to some reason..."
How do I fix this? I believe I installed mysql on cygwin.
Help!!
...
This is the command I gave in command prompt:
gem install sqlite3-ruby > sqlite3-ruby.txt
This is the content of sqlite3-ruby.txt
Successfully installed sqlite3-ruby-1.2.5-x86-mswin32
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.5-x86-mswin32...
Installing RDoc documentation for sqlite3-ruby-1.2.5-x86-msw...
I'm using the Ruby-AWS gem to interact with Amazon. I was testing it out in my controller and it worked fine, but when I moved the code into my Model, it isn't correctly parsing the data back from amazon.
For instance, in my controller
@items[0].medium_image.url = "http://ecx.images-amazon.com/images/I/61YIGdgh86L._SL160_.jpg"
But in...
I'm using the friendly_id gem. I also have my routes nested:
# config/routes.rb
map.resources :users do |user|
user.resources :events
end
So I have URLs like /users/nfm/events/birthday-2009.
In my models, I want the event title to be scoped to the username, so that both nfm and mrmagoo can have events birthday-2009 without them bei...
hi i have installed metric_fu om a rails 2.2 system running hobo and i just can't get to run the metrics command. this is my log:
$:apfcool $item rake metrics:all
(in /Users/$/Documents/apf/apfcool)
* master
/Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:171:in `process_sexp': undefined method `<' for nil:NilClass (NoMethodError)
...