similar to: can activesupport gem be used in "standalone" fashion?

Displaying 20 results from an estimated 2000 matches similar to: "can activesupport gem be used in "standalone" fashion?"

2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION: Ruby 1.8.2 Rails 1.0.0 rubyful_soup 1.0.4 (GEM) FACTS: 0) I have successfully installed the rubyful_soup GEM using (I had previously installed it, which is why the output may look sparse): C:\ruby>gem install -r rubyful_soup Attempting remote installation of ''rubyful_soup'' Successfully installed rubyful_soup-1.0.4 Installing RDoc documentation for
2008 Feb 27
0
Activesupport error on start - extract_options
I''m trying to get Rails up and running on a new port of Ruby to Arm/WinCE devices that I''ve been working on, built using CEGCC tools for ''mostly'' Posix compatability, rather than using the existing Ruby WinCE binaries. Ruby runs and is installed under \ruby in root of the device itself. I''ve edited the following files of a default Rails 2.0.2 *zip*
2006 Mar 31
4
Date magic?
Hi. When I read Dave and Davids excellent book "Agile Web Development with Rails" the first time, I was particularly impressed with the following statement: 1.day.from_now It was used in a test class to set the date of tomorrow dynamically. Since it was enclosed in in ERb tags, I assumed this was a normal ruby statement, but when I tried it in my irb, i get the following error:
2005 May 22
1
ActiveRecord: can not connect to mysql
Hi I would like to write my first application with Active Record: this is my database table: id PRIMAREY KEY auto_increment german_name varchar(50) english_name varchar(50) | wingspan this is my code: ======================= #!/usr/local/bin/ruby -w require ''rubygems'' require_gem ''activerecord'', ">= 1.10.1"
2006 Jun 20
3
Running Mongrel Cluster on boot
I''ve installed pen and mongrel with mongrel_cluster (as gems) on Debian sarge. I can run everything from the command line fine including starting from the /etc/init.d/mongrel_cluster script On boot though mongrel_cluster fails with 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)
2006 Aug 11
0
habtm in a standalone ruby script broken?
Hi, i have a ruby script which uses the activerecord models of my rails application. this is achieved with $LOAD_PATH << ''...../availdb/app/models'' require ''rubygems'' require_gem ''activerecord'' require ''host_downtime'' require ''host_scheduled_downtime'' And in .../app/models/host_downtime.rb: class
2007 Mar 01
1
RoR: Torrent Tracker
Hello their, I managed to find torrent tracker made in RoR language, now I downloaded and trying to run it, but I get error saying: Could not find RubyGem bencode (>= 0.0.0) I don''t know where i can get the bencode, anyone can help please :) require_gem ''bencode'' regards, Jamal -- Posted via http://www.ruby-forum.com/.
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad, I installed and tried out rubygems for one of the win32-utils projects named win32-mmap. This is on Win XP (Home). Here is how I did it but got some errors (see at the end). I must be doing something wrong. Please help ... -- Shashank #------------------------------------------------------------ require ''rubygems'' spec = Gem::Specification.new do |s|
2005 Dec 28
2
Rails didn''t install correctly
Hi all, Apparently rails didn''t install correctly on my Mandrake 10.0 system. ================================= [slitt@mydesk work]$ rails demo /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem rails (> 0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate'' from
2006 Nov 28
2
(no subject)
I''m using wx_sugar 0.1.2 with wxruby2-preview 0.0.37 on OSX and am coming up with a strange error when trying to create a SpinCtrl: class DatePicker < Wx::Dialog def initialize super(nil, :title => "Pick a date...") arrange_vertically(:padding => 5) @month = Wx::SpinCtrl.new(self) # line 19 add(@month) end end gives error:
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi, I was able to successfully Install InstantRails-1.3a and run cookbook throgh Apache and WEBrick , however when I try to create my own app. cookbook2 following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html) , it gives me below error whle creating MyTest controller Cannot find gem for Rails =1.1.2: Install the missing gem with ''gem install -v=1.1.2
2006 Mar 22
2
How to verify that I can see a Gem from Rails?
I am trying to use a RubyGem in Rails. Given that Rails itself is a Gem, I''m a little confused. I don''t seem to be able to successfully get at my gem. Any clever debugging tricks? I have a require ''rubygems'' and the specific require_gem for my GEM file. What else do I need? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2007 Feb 28
1
Rails 1.2 Bug (?): to_text_area_tag
Hi all, I''m fairly new to rails and thus might be missing something here, but I think I have found a but in ActionPack. If this is not the right place to post this, please let me know where. I discovered this issue while attempting to use the lastest edge version of ajax_scaffold (mooey, MUI, whatever it''s going to be called). I kept getting the error: private method
2006 Jan 23
5
can''t install model_security_generator
I''m trying to install Bruce Perens'' ModelSecurity gem, but it keeps asking me if I want to install rails too (I have already installed rails). It exits if I say no and crashes if I say yes: C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install model_security_generator Attempting local installation of ''model_security_generator'' Local gem
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR application). What''s the right way to require such a file? I have a class ModelPathwayObject. It''s in #{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to config.load_paths. In config/environment.rb: Rails::Initializer.run do |config| config.load_paths += %W(
2011 Apr 18
3
ActiveSupport 3.0.6: require 'active_support/core_ext' generates "circular require" warning
Hello, i noticed some strange warnings when doing require ''active_support/core_ext'' with activesupport 3.0.6. If i do gem ''activesupport'', ''=3.0.5'' require ''active_support/core_ext'' then it works fine. Is this a bug in rails 3.0.6? More precisely, if i do $ irb -w > require
2006 Nov 29
5
wxSugar control problem
I''m using wx_sugar 0.1.2 with wxruby2-preview 0.0.37 on OSX and am coming up with an error when trying to create a SpinCtrl (and quite a few others have exactly the same prob.): #file date_picker.rb class DatePicker < Wx::Dialog def initialize super(nil, :title => "Pick a date...") @cal = Wx::CalendarCtrl.new(self) add(@cal) #works fine up to
2008 Oct 20
1
LC_VIRTUAL with Wx::ListCtrl
Wx::ListCtrl#set_item_count appears to be broken. If I pass it anything but a Fixnum (is_a Integer), it crashes and says it needs a "long" (which Fixnum should appease), but if I pass it a Fixnum it crashes with "cannot convert nil into String." Latest WxRuby. Windows Vista. This makes using LC_VIRTUAL impossible. -- Eric Will // xmpp:rakaur@malkier.net
2006 Mar 29
2
rails error on DreamHost all of a sudden
Hello! I''m trying rails on DreamHost.com. It worked fine until days ago. Now if I run "rails", I got the following error. [rampart]$ rails /usr/local/lib/site_ruby/1.8/rubygems.rb:194:in `report_activate_error'': RubyGem version error: activerecord(1.13.2 not = 1.14.0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:136:in `activate''
2006 Jan 23
0
gem install login_generator
I am trying to install a gem into my Dreamhost account: http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Using_gems_installed_in_your_home_directory But it doesn''t work. I don''t quite understand the error message: pico$ gem update --source http://gems.rubyonrails.com Upgrading installed gems... Updating Gem source index for: http://gems.rubyonrails.com Gems: [] updated pico$