similar to: Loadpath question

Displaying 20 results from an estimated 40000 matches similar to: "Loadpath question"

2006 Apr 11
18
Rails 1.1 in Production
My hosting company is still supporting only Rails 1.0. I have installed Rails 1.1.2 to my vendor directory and deployed it in production which should mean that my application should be using the Rails version in my vendor diretory. But It looks like its still using local gem libraries, here is the error from dispatch.fcgi when I try and invoke my app NoMethodError (undefined method
2006 Apr 10
0
Gems on custom dir are ignored
Hi: Im working on my hosting linux platform and Im trying to use custom gems not that default installed on /usr/lib/ruby/gems/1.8 I installed gems on $HOME/apps/lib/gems/1.8 I export: export GEM_HOME=$HOME/apps/lib/gems/1.8 export GEM_PATH=$HOME/apps/lib/gems/1.8 I got rails 1.1.2 rails -v shows Rails 1.1.2 but on a page using dispatch.rb I got
2007 Nov 20
0
nothing rendered, but dispatch.rb returns the page
Browsing to my apps home page times out, and nothing is rendered. However, running the dispatch.rb file via ssh does correctly return the code for the home page. The log file is updated when I hit dispatch, but not when I browse and get the timeout. I''m upgrading to 2.0 on Dreamhost, and have the 1.99.0 gem installed in a custom dir. Everything runs fine locally with the same
2006 May 05
3
Cannot find gem for Rails =1.1.2
First post here: The error is below and i''m sure folks have posted it before, but perhaps i''ve missed the solution: I''m using apache because i first need to see if rails can work with apache. Some particulars: gem -v 0.8.11 ruby -v ruby 1.8.4 (2005-12-24) [i686-linux] rails -v Rails 1.1.2 rails-1.1.2 is installed (via gem) and environment.rb''s
2006 May 22
0
Bug in text_helper.rb
I think there''s a logical mistake in ActionViews text_helper.rb. The TextHelper modul defines the methods textilize and textilize_without_paragraph in a begin rescue block that calls require_library_or_gem "redcloth". The problem is, that this call will always fail and the methods will never be defined when you install RedCloth as a plugin under vendor/plugins. That is
2010 Mar 21
4
Deploying my rails app to GoDaddy
So I''ve written my first real-world RoR app and I''m now getting ready to deploy it. Unfortunately, my client decided to use GoDaddy as the hosting provider and based on what I''ve seen so far from the web, it''s not really the smoothest or ideal hosting for RoR apps. There were several posts here that I tried to follow but they were kinda old (2008, 2007). Most of
2006 Jun 13
0
Yet Another Apache/FastCgi Setup Issue
I have set up FastCGI on the server and added 2 servers/processes and increased the timeout from 30seconds to 60seconds. I _think_ I did that properly because I now have to wait the full 60 seconds like clockwork until I get the "Rails application failed to start" when I browse to my URL. Before it was 30 seconds like clockwork. When I run "ruby dispatch.fcgi" I get the
2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All, Rails 1.1.2 Win XP Pro Rubyful Soup 1.0.4 htmltools 1.0.9 I am terribly confused as to what pulling in a gem does with respect to how many modules get loaded at runtime. I am using two gems in my app, Rubyful Soup and htmltools. RubyfulSoup requires one module from the htmltools gem (html/sgml-parser). My app requires the RubyfulSoup gem. When I started my app, something was causing
2006 Apr 14
2
Rails 1.1.2 is working on shared hosting that has rails 1.0
After many hours I got working It is in spanish but you can copy paste the code. http://wiki.onrails.com.ar/onrailscomarwiki/show/Instalacion+de+Rails+y+Gems+en+un+hosting+compartido P http://wiki.onrails.com.ar -- Posted via http://www.ruby-forum.com/.
2010 Dec 11
2
Problem using rvm in bash script
I am using rvm installed on Ubuntu 10.04 as recommended in the rvm docs (including changes to .bashrc) and all is working well with several versions of Rails, and Ruby 1.8.7 and 1.9.2. If I run rvm use 1.9.2 it says Using /home/colinl/.rvm/gems/ruby-1.9.2-p0 and if I run rvm info It shows exactly what I would expect for 1.9.2 and I can start the rails server and all is well. The problem arises if
2005 Dec 23
0
RE: Maintaining a Dev and a QA environment
Since I develop on one platform and my production servers will be on another, I use virtualization a lot. You can use Microsoft Virtual PC, or VMWare''s products. I am using Microsoft''s Virtual Server, which has a free download, and a 180 day evaluation license. Despite the name, it runs on Windows XP too. With enough memory, I can run a QA system, or a full production
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys, I wanted to fetch some info from webpage and use it in my db. I read hpricot is one way to do it. But the problem is I''m unable to use it with my app. For some reason after successfully installing hpricot it fails when I try to use it in the rails console. I''ve been trying to fix this for the last four-five days. I''m stumped ! I tried re-installing everything
2006 Apr 26
3
My GD2 is not working
I installed GD2 1.0/1.1, but they are both not working, does anyone knows why? Great Thanks! With GD 1.0 I got: ======================================================== RuntimeError unknown symbol "gdImageSquareToCircle" RAILS_ROOT: /home/virtual/site1/fst/var/www/html/imodesite/public/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jun 27
0
mod_fcgid trouble
Hello everyone, I''m having some trouble hosting using mod_fcgid. If I run ruby -d dispatch.rb I get the error: Exception `NameError'' at ./../config/boot.rb:14 - uninitialized constant Rails Any ideas on how to fix this? The weird thing is that running it with webrick works just fine. I tried setting the GEM_HOME environment variable in my environment.rb, but I started to get
2006 Jun 26
2
running lighttpd -> Recognition failed for "/"
i have tried several tutorials on the web for getting my app to run under lighttpd and fastcgi.. my setup is fedora core 5.. i used this to get everything installed: http://www.digitalmediaminute.com/howto/fc4rails/ but i kept getting errors, as the machine i am installing it is a remote machine, i couldn''t get it to work right.. i next tried this:
2006 Apr 10
5
Inflections.rb in spanish
Hi: I have a problem with the plural of fracancia, I got fragancium but in spanish is fragancia. I modified inflections in environment.rb Inflector.inflections do |i| i.irregular ''fragancia'', ''fragancias'' end but is ignored. The solution that I found was comment this inflection on inflections.rb #inflect.singular(/([ti])a$/i,
2008 Apr 15
4
Version Control (and gems)
1. Full version control of a web app would include the constellation of gems actually used. I can do ''gem list'' and put that into a file in version control but that could include unused gems. That is, it could include gems use by other projects. And putting the whole gem in version control seem like overkill since the authors do that. But it might be safer. Do we have a
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and everything went fine up till the part where I had to install gems using gem install. I would get this stacktrace: Attempting local installation of ''rake'' Local gem file not found: rake*.gem Attempting remote installation of ''rake''
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
Hello, I am new to rails but have been having fun so far. Until now. I am sure this is just my inexperience but I have the RMagick gem (ruby gem for using imagemagick manipulation) installed on my machine that I would like to then use in my rails app. I first installed it and tried it out, and it didnt do anything for me, took me a while to realize I needed the windows RUBYOPT
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)