search for: require_gem

Displaying 20 results from an estimated 144 matches for "require_gem".

2006 Mar 20
7
error using feedtools
I performed a gem install feedtools, I then added these 2 lines to my environment.rb: require ''rubygems'' require ''feed_tools'' I then added this method in my controller: def rss @post = Post.most_recent feed = FeedTools::Feed.new feed.title = ''Recent Rambles'' feed.subtitle = ''random thoughts by me''
2008 Aug 20
2
Re: undefine "require_gem"
...n 20 Aug 2008, at 13:47, Amin Shah wrote: > > Frederick Cheung wrote: >> On 20 Aug 2008, at 13:41, Amin Shah wrote: >> >>> update, boot.rb replace the "requiregem" etc. But still don''t get at >>> any >>> success. >>> >> require_gem is just gem now. >> >> Fred > > Thanks for your reply, > So at which file i have to make changes, so that my application work > proper. I mean is there any specific file. > Your suggestion help me a lot. > anywhere it says require_gem Fred > Thanks > amshah...
2008 Jul 12
4
Act as Taggable with Rails 2.0
...ng to start my application and ran into other problems. My application was developed last year in rails 1.2.3. I since upgraded my computer and have the latest version of rails. When I tried to star the application I got the following error message: /.../config/environment.rb:62: undefined method `require_gem'' for main:Object (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'' my environment.rb: 62 has: require_gem ''acts_as_taggable'' which I know isn''t compatible Would anyone have a suggest...
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here: http://dev.rubyonrails.org/changeset/4010 -- Posted via http://www.ruby-forum.com/.
2006 Feb 23
11
Can''t use Gruff with Rails
Hello list, I''m having a problem getting Gruff working with Rails on a Windows XP box. I installed RMagick, then Gruff via the win32 gem, and it seemed to go OK. From irb, I can do the following - require ''rubygems'' ##### This returns ''false'', but seems to work OK - require ''gruff'' ####### Ditto - g = Gruff::Bar.new etc., and I get
2005 Dec 18
2
EdgeRails with other Gems like RMagick
I am using EdgeRails, and have some of the plugin''s using gems such as Rmagick which are included through a command similar to "require_gems ''rmagick''". Curious how to handle such attempts at inclusion when I am no longer bound to the system gems and am using the code strictly within vendor/rails and such. Is there a way to point require_gems to another location to get these gems? -Nb ~~~~~~~~~~~~~~~~~~~~~~~~...
2005 Nov 03
12
Installation of plugins/gems/mix-ins confusion
...little confused as to the best way to install mix-ins. I''m specifically using "acts_as_paranoid" as an example (as it is one of the simpler implementations). It is a gem and can be "installed" as a gem, but then what''s the best way to integrate it into my app (require_gem?). I''ve seen recommendations to require it in the environment.rb file. But is that the best way now that plugins are available. Should I go straight to the SVN version, download and simply copy into the plugins directory? It would be great to hear what the "best practice" is for...
2006 Dec 23
11
Frustrating "require" problems with RMagick
...e (Fedora Core 5) can''t find RMagick unless I change the "require" syntax from that used on the dev machine (OS X). And the dev machine doesn''t like the syntax that works on the deployment server! To wit: [OS X] $ script/console Loading development environment. >> require_gem ''rmagick'' => true >> Magick => Magick $ script/console >> require ''rmagick'' => false >> Magick => Magick $ script/console Loading development environment. Application strings file ''config/app_strings.dat'' does not...
2009 Jun 12
2
Fail to start a lower Version ( Rails 1.1.6) Rails Project
...ails of version 1.1.6 but when i am going to start to start the server then i got the following error.. D:\simpleticket>ruby script/server ./script/../config/boot.rb:25:Warning: Gem::SourceIndex#search support for Strin g patterns is deprecated ./script/../config/boot.rb:28: undefined method `require_gem'' for main:Object (N oMethodError) from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `ge m_original_require'' from D:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `re quire'' from script/server:2 So, At this Pres...
2009 Jan 17
4
Install older version of rails FAILED
Help! I need your help!!! I have an old rail app which I made a few years ago. Never touched rails since. Now, I need to make it work again. I used the above command to install rails, but I still get rails 2.1.1 [b]gem install rails --version 1.2.6[/b] I tried twice, and fails twice, even the installation says Successfully installed activesupport-1.4.4 Successfully installed
2007 Feb 28
1
hi guys problem with running gruff
...elon", [2, 3, 1, 5, 6, 8]) g.data("Peaches", [9, 9, 10, 8, 7, 9]) g.labels = {0 => ''2003'', 2 => ''2004'', 4 => ''2005''} g.write(''my_fruity_graph.png'') when i replaced require ''gruff'' with require_gem ''gruff'' i got rid of one but still this unintialized name error keeps poppoin when i just run it with ruby >ruby gruff.rb >gruff.rb:4: uninitialized constant Gruff (NameError) Could u guys plese tell me what i am doing wrong. thanks prem Prem Anand Thilagar Univ Of...
2006 May 22
8
flickr tag question
hey, i am using the flickr wrapper for ruby and need to access the tags of a specific photo. i got all the rest working. i must admit i am kind of new to ruby, but i tried and tried and couldn''t figure it out. among other things i want to read geotags like in my example here: http://www.flickr.com/photos/whoisstan/146634506/ i''m sure it is deadsimple and i just overlooked it.
2004 Nov 04
4
Attempt to build a gemspec
Hi all, I''m trying to build a gemspec for win32-ipc, using a precompiled binary. Here''s my gemspec file: #win32-ipc.gemspec require "rubygems" spec = Gem::Specification.new do |s| s.name = "win32-ipc" s.version = "0.3.1" s.platform = Gem::Platform::WIN32 s.summary = "A base class for Win32 synchronization objects."
2006 Jun 20
3
Running Mongrel Cluster on boot
...th this msg: /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:141:in `activate'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem'' from /usr/bin/mongrel_cluster_ctl:17 This may be more of a ruby gems question, but any thoughts/help would be appreciated. Thanks, --James
2008 Jun 25
4
Error with mongrel_rails start
...r-1.2.5... Installing RDoc documentation for actionwebservice-1.1.6... (Then the prompt returned. I assume that meant the install finished). So I changed back to /ruby/rails_apps/alpha and tried mongrel_rails start. Here is what I got: C:/ruby/rails_apps/alpha/config/boot.rb:28: undefined method `require_gem'' for m ain:Object (NoMethodError) from C:/ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:i n `gem_original_require'' from C:/ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:i n `require'' from C:/ruby/rails_apps/alpha...
2006 Mar 28
5
Rails 1.1 for new apps only
Hi, I was very excited to hear that Rails 1.1 project has been released. It gave me the fire I need to get started on a pet project I''ve been thinking about. However I have a couple apps that don''t seem to play nice with Rails 1.1, mainly Typo. So my question is: How can I install Rails 1.1 for only a new application? thanks, scott.
2006 Jan 10
4
Problem creating MockController
Hi there, I''m trying to create a mock controller to test the use of UrlHelper in ActionMailer. I''m trying this: require ''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller'' # Re-raise errors caught by the controller. #class DiscussionsController; def rescue_action(e) raise e end; end class MockController < ActionController::Base def
2006 Aug 15
1
ActiveLDAP
Is there any recent good guide on how to use ActiveLDAP? Thanks, Petr -- Posted via http://www.ruby-forum.com/.
2006 Apr 01
2
Textile headaches
I have the newest version of RedCloth installed (3.0.4). I want the following output: <h1>Header</h1> <p>Some text</p> This is what I tried but no luck: irb(main):002:0> require ''rubygems'' => true irb(main):004:0> require_gem ''RedCloth'' => true irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html => "<h1>Header\nSome Text</h1>" Any ideas? Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails...
2007 Jan 24
0
the vendor dir, gems and openid
...or $ gem unpack ruby-openid Added all to SVN and re-deployed. Still no love. Resulting error: '' MissingSourceFile no such file to load -- openid'' OK, so apparently that did not work, inspecting my openid_controller.rb I say that ''openid'' is only loaded when the require_gem command failed: require "pathname" require "cgi" # load the openid library begin require "rubygems" require_gem "ruby-openid", ">= 1.0.2" rescue LoadError require "openid" end I tried ''require "ruby-openid-1.1.4&q...