rubygems

Installed fxruby over macports, now rubygems is broken

Hi, using OS X 10.5.6 I installed fxruby using $sudo port install rb-fxruby As suggested in the book. It works, my hello world program worked correctly. Now, though, other code that I have written is broken, whenever I try to use any code that relies on a gem, it does not work. When I do $ruby -e "require 'rubygems'" in my code, i...

How do I resolve a permission error installing a custom built gem?

I'm attempting to build my first ruby gem and all seemed to go well until I attempted to install the gem. I'm using RVM so no need for 'sudo gem install' here. First I attempted to do the following: jim:~/Desktop/spectest \ [git:master] → rake manifest (in /Users/jim/Desktop/spectest) Cleaning - pkg rm -rf pkg Building Manifest Man...

Ruby on Rails Tables Gem

Does anyone know any good gems that can be used to create tables for Ruby on Rails apps. I am looking for something that has built in sorting, AJAX searches, etc. ...

Importing gmail/yahoo/hotmail/aol address book with rails

Hello, I want to import address book of users from their gmail/hotmail/yahoo and aol address books. I am looking for a gem/plugin in rails which can help me do this. Any help is appreciated. Thanks. ...

Rubygems auto install from source code

Hi all, I was wondering if there was a solution to automatically - from my ruby source code - ask Gem to install various librairies my code my require to work? From what i read on the internet, it seems we are obliged to either use an install script that directly runs "gem install ..." commands or do it manually or some people have pos...

Configuring and running Ruby-On-Rails migrations

Hi, I'm (completely) new to ROR and have got an application to maintain and upgrade. I've the source code and am trying to build database using db:migrate rake command. I've started using Aptana Studio for the development. When I run dg:migrate I get following errors: rake db:migrate (in G:/Projects/.../.../trunk) MissingSourceFile no s...

Dynamically requiring in ruby

All, I was wondering if anyone has an intermit enough knowledge of rubys 'require' to tell me if the following is valid ruby or not; class Something def initialize(mode) case mode when :one then require 'some_gem' when :two then require 'other_gem' end end end s = Something.new If so, would the require plac...

How can I get past "http://gems.rubyforge.org/ does not appear to be a repository" error message

Question 828421 asked similar question, but received only one real answer (update rubygems) and that attempt results in the same error. Ruby version 1.9.1.p243 on Windows. Included Gem, version 1.3.5. Never installed any gems before; never did any special config for this Ruby. Ruby itself works, as does irb, and "gem" operates but can'...

Ruby Enterprise Edition - Rake not found

Hi, I've just had a new VPS set up and have installed Passenger with Ruby Enterprise Edition. However, I can't get rake to work. /opt/ruby-enterprise-1.8.7-2010.01/bin/gem list * LOCAL GEMS * actionmailer (2.3.5, 2.2.3) actionpack (2.3.5, 2.2.3) activerecord (2.3.5, 2.2.3) activeresource (2.3.5, 2.2.3) activesupport (2.3.5, 2.2.3) fa...

Using Rake on a gem with dependencies

I have a gem that requires a 'Cms' namespace to be present when running. However, when running rake tasks, nothing works as this Cms namespace isn't present. How do I get my rake tasks to work? ...

cuke4nuke install issues

Anyone else having trouble installing cuke4nuke via gem install cuke4nuke? I'm getting the following error and can't figure out what to do to solve it: Building native extensions. This could take a while... ERROR: Error installing cuke4nuke: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checki...

Recommended Rails plugins for software as a service app

Hi I am investigating potential Rails plugins or Gems to help develop a SAAS type app. Specifically I am looking for help in two areas: Restricting access to certain areas of the app based on the account's plan. For example, a bronze account allows access to some functionality, upgrading to silver unlocks access to new features and fu...

When working with gems in Rails, what does 'cannot remove Object::ClassMethods' stem from?

Frequently I have run into a problem when installing gems that provides a problem like: Does anyone know what this stems from? I've seen in it several different cases, yet still haven't learned what exactly is causing it. $ sudo rake gems:install --trace (in /u/app/releases/20100213003957) ** Invoke gems:install (first_time) ** Invoke ...

take the table element while clicking on the same table element

I'm developing a project and I have a problem about this subject. I'm constructing ruby on rails project which will provide listing students with name. First of all , I will list my students information in a table and one part is missing. When the user clicks on Student Name , another table will appear and show the other information o...

How can i order the eager loaded model in rails

Hello All, I shot a find query to include certain models in rails but i want to order the included models by my custom criterion. I have shot the query like the following to fetch the qualifications associated with the user ordering the qualifications by the start_date: @user = User.find @current_user.id, :include => [:profile, {:...

How to develop on installed gems

Currently, I have the stable version of a gem (specifically, nanoc3) installed with RubyGems. However, I would like to fork the developer's repository to hack on some stuff. What's the recommended way to have a gem installed (it doesn't actually have to be installed in a technical sense, just somewhere that I can use it if I need to with...

Ruby Gem package manager failing with Gem::GemNotFoundException

I haven't used Ruby for a while on my Mac. Obviously something has changed in my environment as gem is no longer working as it should. Some info from my machine, running OSX 10.5.8: % gem --version 0.9.0 % gem env Rubygems Environment: - VERSION: 0.9.0 (0.9.0) - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - GEM PATH: ...

Need help with Sprouts (Ruby + RubyGems + AS3) - can't rake

So I'm trying to use Sprouts for AS3. I've installed Ruby and I've installed RubyGems, and I'm able to create a new project using "sprout -n as3 MyProject" - that builds fine. However, when I enter into that folder and type "rake" it errors out with the message "Could not find RubyGem win32-open3 (= 0.2.5)" I've googled around a little...

How do I get the pik gem to play nicely with cygwin in Windows XP? Or is there another way to get multiple versions of ruby up and running easily in cygwin?

Pik looks great if you're stuck on a windows machine. The only problem is it appears to be set up for a windows command prompt, and I'm using cygwin. Whenever I try to switch to a different version of ruby in cygwin, it still just uses the default cygwin installation of ruby. $ pik list 186: ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-m...

Installing gems - what does "INFO: `gem install -y` is now default and will be removed" mean

When I install a new gem, I see this message: "INFO: gem install -y is now default and will be removed" What does it mean? My quick Google search didn't turn up anything useful. ...