rubygems

Unknown gem rack >= 0 error

I keep getting this error message when trying to uninstall rack... $ sudo gem uninstall rack ERROR: While executing gem ... (Gem::InstallError) Unknown gem rack >= 0 When I do gem list -l... *** LOCAL GEMS*** rack (1.2.1, 1.1.0, 1.0.1) Same error with gem uninstall rack (no sudo) I've also tried gem uninstall rack --version ...

Problem with rails scaffolding (windows + netbeans + sqlite3)

I'm experimenting with Ruby on Rails. I'm using NetBeans on Windows 7. I am trying to follow this tutorial, but instead of using MySQL, I'd like to use SQLite3. Here is my database.yml file: # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlit...

Ruby on Rails fails to connect to Mongodb locally using MongoMapper

Hey, I'm very new to rails and have been trying to experiment with using Mongodb on a web app. I have been following this railscast tutorial here word for word and have been running into issues with it not connecting to my local Mongodb. I'm sure Mongodb is up and running since mongod shows up in my activity monitor and going to ht...

When do we need to "require 'rubygems'"?

This is related to this question: http://stackoverflow.com/questions/3179797/how-to-use-rubytorrent-or-other-gems I thought RubyGems is a package manager, similar to apt-get on Ubuntu... So when do we need to require 'rubygems' in our code? ...

How can I get rid of this ruby warning?

I have just installed ruby 1.9.1-p429 with macports. Every time I use it, it displays this error message: $ ruby1.9 -e "puts 'hi.'" Error loading gem paths on load path in gem_prelude can't modify frozen string <internal:gem_prelude>:69:in `force_encoding' <internal:gem_prelude>:69:in `set_home' <internal:gem_prelude>:38:in `dir' <inter...

Must know Ruby on Rails + Ruby plugins

I'm fairly new in the Ruby + Rails scene. Although I have a very strong understanding of design patterns, data structures and algorithms - there's a ton of "must have" plugins that I haven't had a chance to run into yet. There's things for migrations, resource controllers and a myriad of other plugins that make developing for these platf...

What does the "Enclosing class/module 'mXPath' for class Object not known" message mean?

I updated a Ruby gem, and I got that message. Does that mean something has not been installed, and the gem is missing something? ...

Ruby: What does Errno::EEXIST mean when installing a gem?

I am trying to install a ruby gem called activeldap, however, it won't let me install it. I keep getting all kinds of errors including the Errno::EEXIST error. I added the error info below. Any ideas? C:\Ruby\www\demo>gem install activeldap ERROR: While executing gem ... (Errno::EEXIST) File exists - C: C:\Ruby\www\demo>gem install...

Merb, Bundler, RVM and 1.9.1 = Could not locate Gemfile (Bundler::GemfileNotFound)

Hi, Can anyone suggest how to fix this (Ubuntu 9.10): /home/chris/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.26/lib/bundler/shared_helpers.rb:42:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from /home/chris/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.26/lib/bundler/shared_helpers.rb:51:in `env_file' ...

Deploying a Rails app on dreamhost issue

So I'm at a loss with this one. My error is: Missing these required gems: jrails You're running: ruby 1.8.7.72 at /usr/bin/ruby1.8 rubygems 1.3.6 at /home/ryann/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8 Run rake gems:install to install the missing gems. I have unpacked jrails in my vendor directory and frozen my local rails environment. ...

Easy string splitting ?....

I have a string I want to split: D017209D019169D019014 into D017209, D019169, and D019014 with commas in between. If I have a = D017209D019169D019014 b = a.slice("D") puts b My result looks like: 017209 019169 019014 What am I missing? ...

how to convert any audio file to mp3 in rails?

I want to upload any audio file and want the out put in the mp3 formate . Is it possible in rails ? Is there ffmpeg code or any thing that convert any audio file to mp3? if any share ...

Installing rails-3.0.0.beta4 , and getting the royal (Errno::ENOENT)

First let me explain that I've created a million lib directories scouring out all the different responses to this same problem but none of them have really done the trick.. I've tried sudo mkdir /opt/local/lib/ruby1.9/gems/1.9.1/gems/rails-3.0.0.beta4/lib sudo mkdir /opt/local/lib/ruby1.9/gems/1.9/gems/rails-3.0.0.beta4/lib sudo mkdir ...

Updating from Ruby 1.8.7 to Ruby 1.9.1

Currently I have Ruby 1.8.7 and Rails 2.3.8. Is it possible to update ruby so that I do not have to re-install all the gems again? ...

Why does ruby's '$:' or '$LOAD_PATH' change when I run it with sudo?

I am trying to run a ruby script as root. When I try to require a gem, ruby says it can't be found. This is because of $: $ ruby -e "puts $:" /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib /opt/local/lib/ruby/gems/1.9.1/gems/cgi_multipart_eof_fix-2.5.0/lib /opt/local/lib/ruby/gems/1.9.1/gems/daemons-1.1.0/lib /opt/loc...

Installing a gem from a repo I cloned on git hub

Post says it all. I've cloned a gem (particularly radiant) after clone it from its github source. Anybody tell me how I can install it as a gem? Something like "gem install radiant --local"? Thanks, Joe ...

Is there an rss parser that works with rails 3?

Are there any rss parsing solutions that work with the latest rails 3 beta? ...

will_paginate not showing on the Web... ...

The previous question is here : http://stackoverflow.com/questions/3229758/what-is-the-common-practice-on-limit-the-result-in-ror Here's the users_controller: def show @user = User.find(params[:id]) @posts = @user.posts.paginate :page => params[:page] respond_to do |format| format.html # show.html.erb format.xml { re...

Rake can't be found

hey i played around with bundler and some gems and now i can't use rake anymore if i do a simple db:migrate i get this error: mac:app antpaw$ rake db:migrate /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:335:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception) from <internal:gem_prelude>:282:in `method_missing'...

"msvcrt-ruby18.dll was not found" with Ruby

When I try to run even simple rails commands such as: rails -h I get a popup error after a few seconds that says: ruby.exe - Unable To Locate Component This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem. I am running: Windows XP (yes I know...