Displaying 20 results from an estimated 70000 matches similar to: "acts_as_comparable: gem installation"
2006 Sep 07
1
gem mysql buggy on Win32
Hi,
Just running a simple unit test and trying to save an object gives me
this error.
test_validations(FriendTest):
NoMethodError: undefined method `each'' for #<Mysql:0x38f60d0>
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_a
dapter.rb:292:in `columns''
....
....
Rails 1.1.6
mysql 5
mysql gem 2.71
After I
2007 Aug 25
2
Color gem
I''m using the ruby gem "Color" and I''m having some troubles with to_hex.
I''ve installed the gem, and when I try and run the test program I get
this error:
>> red = Color.new(''ff0000'')
=> #<Color:0x3685990 @saturation=1.0, @hue=0.0, @lightness=0.5>
>> yellow = Color.new(''ffff00'')
=>
2007 May 04
3
ERROR While executi gem (NoMethodError)undefined method =
I''ve just installed ruby and rubygems on a solaris machine, but when i
do this :
gem install rails --include-dependencies -p http://10.17.0.1:3128
it crashes out with :
ERROR: While executing gem ... (NoMethodError)
undefined method `[]='' for #<Gem::ConfigFile:0x84691d4>
Does anybody have any idea why its hapenning? Im totally at a loss. Any
help would be greatly
2006 Jun 22
1
acts_as_taggable gem problems
With acts_as_taggable 1.04...
1. how can I get a frequency of tags?
i.e. /tags/list I want to list of tags sorted and listed with
their frequency
tags_controller.rb:
def list
@tags = Tags.find_by_sql ''select name, count(*) as freq from tags
group by name order by freq desc''
End
tags/list.rb:
<ul>
<% @tags.each do |t| %>
<li><%= t.freq %>
2008 Jul 05
0
Undefined Method Angst After Rails / Ruby / Gem Updates
I have what appears to be a problem accessing methods from within an
application. I can access them from irb, but not from within the
app. In other words:
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''haml''
=> true
irb(main):003:0> Haml.respond_to?(''init_rails'')
=> true
2009 Dec 08
0
ActiveSupport 2.3.5 and json 1.2.0 gem
Hey,
I''ve tried every trick I can find, yet I''m still unable to get the
json gem and ActiveSupport to play nice.
No matter in which order I load json and active support, I still end
up with: NoMethodError: undefined method `[]'' for
#<JSON::Ext::Generator::State:0x104b7fac0>
I''m trying to use the JSON object directly, *not* as a ActiveSupport backend:
2011 Jun 17
0
gem error?
ruby 1.9.2dev (2010-07-02 revision 28524) [x86_64-darwin10.5.0]
rails 3.0.1
No matter what gem command I give I am getting this response. What does this mean and how to fix?
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:86:in `<top (required)>'': undefined method `load_plugins'' for Gem:Module (NoMethodError)
from /usr/local/bin/gem:9:in `require''
2008 Jun 18
1
Vpim gem
On Wed, Jun 18, 2008 at 6:32 AM, Joost Hietbrink <joost at joopp.com> wrote:
> Hi Sam Roberts,
> First of all. Thanks for the Vpim gem. We use it at www.yelloyello.com and
> it works great.
I''m glad to hear that.
> We''ve only encountered the following error:
> # NoMethodError (undefined method `to_str'' for []:Array):
> #
>
2010 Mar 24
3
How to include a ruby gem environment.rb file?
I''m doing a Web Service Based on a page I found
(http://blog.complitech.net/web-services-basics-ruby-on-rails/) using
the rails version 2.3.4, the web service is already working, but when
working on a version Previous:
RAILS_GEM_VERSION = ''2 .0.2 ''unless defined? RAILS_GEM_VERSION
I can not run the service.
On the previous page, there''s a part that says:
3)
2011 Jan 27
2
GeoIP gem working locally but not on server
I have the GeoIP gem working in my local environment (OSX), but when I
move the code to our dev server (Ubuntu) via scp then it doesn''t work -
it
looks like the file is being treated like a text file instead of binary:
>> g = GeoIP.new("#{RAILS_ROOT}/lib/GeoIP.dat")
NoMethodError: undefined method `bytes'' for "ved":String
from
2010 Feb 04
3
Rails Edge: gem bundle error
Hi.
Having installed Ruby 1.9 from source, I decided to have a look at
Rails3 aka Rails edge from git. Therefore, I followed wycats
instructions (http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app-
running-on-edge), but keep getting an error related to Bundler:
$ sudo gem bundle --backtrace
ERROR: While executing gem ... (NoMethodError)
undefined method `path'' for
2009 Oct 20
3
gem installation failed
i got this error message while installing mysql gem.....
kindly help me to solve this issue....
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
C:/Program Files/NetBeans
2008 Jan 20
9
Ferret Gem Installation on Windows
Trying to install ferret on my windows XP environment. Using
InstantRails 2.0 with RoR 2.0.2, and NetBeans 6.0. I had successfully
installed and built RailsSpace in InstantRails 1.7, but am trying to
upgrade RailsSpace to RoR 2.0.2 using the code that Michael has kindly
provided for us on the website.
When I run the gem install ferret command, I get the following error:
C:\Documents and
2011 Jun 22
0
has_many relationship in Gem
Hello,
I am creating a gem in which I need to add a new has_many
relationships:
...
included do |base|
base.has_many :foos
end
def some_method
self.foos #
end
...
Here Foo is a model I created and it is places in app/models/Foo.rb
I wonder if I can use syntax like the line marked with #?
If yes, I got NoMethodError for using "self.foos" when writing rspec
2009 Apr 05
3
Error reverting back to a previous version of rails
I want to revert back to a previous version of rails (1.2.3) but the
project I want to work on was created in 2.0.2. I have uninstalled 2.0.2
and gem installed 1.2.3 but when I run script\server I get the following
error. (I''m guessing its to do with my environment file but I''m pretty
new to Rails so Im not sure.)
2005 Mar 02
2
Problems installing gems using rails
Hello
I''m trying to use rubyonrails, but had some troubles:
First, there was an issue with gems (it did not finished the installation):
# gem install rails
Config file /root/.gemrc does not exist
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
Updating Gem source index for:
2006 Mar 31
0
can activesupport gem be used in "standalone" fashion?
i''m using ruby 1.8.2, rubygem 0.8.10, rails 1.0.0 where activesupport version = 1.2.5
when i try to run this in RADRail, i get a NoMethodError:
require ''rubygems''
require_gem "activesupport"
print Time.now + 2.days
the error message is: c:/e312workspace/first/test3.rb:5: undefined method `days'' for 2:Fixnum (NoMethodError)
is there a way to use
2008 May 09
3
Depot Application not working
Hello All,
I am doing the depot appliction.
I was first installed Instant Rails 2.0 on my machine.
got error in getting scaffold :product
then after searching in forum took the 1.2.6 version using the below
command
>gem install rails --version 1.2.6 --include-dependencies
Now i am getting the error after starting the server
>ruby script/server
got the below error
2007 Mar 16
5
Bad ActiveSupport gem in gem repository?
All,
I''m attempting to update my gems to 1.2 and I get the following:
Install required dependency activesupport? [Yn] Y
ERROR: While executing gem ... (Gem::InstallError)
invalid gem format for
c:/ruby/lib/ruby/gems/1.8/cache/activesupport-1.4.2.g
em
Anyone else seeing this? Anyone willing to try it to see what''s up?
Thanks,
Wes
--
Posted via
2006 May 02
7
vendor/rails seems to be being ignored in preference to gem?
I have edge rails in /vendor/rails on DreamHost, but when running
dispatch.fcgi I get the following error in my logs:
[02/May/2006:08:52:32 :: 29365] terminated gracefully
[02/May/2006:08:53:53 :: 19526] starting
[02/May/2006:08:53:54 :: 19526] Dispatcher failed to catch: undefined
method `clear_connection_cache!'' for ActiveRecord::Base:Class
(NoMethodError)