# Plugins problems with RoR 1.1 in production

**URL:** <https://www.ruby-forum.com/t/plugins-problems-with-ror-1-1-in-production/57928>\
**Category:** Rails\
**Created:** [April 16, 2006, 12:50pm UTC](https://www.ruby-forum.com/t/plugins-problems-with-ror-1-1-in-production/57928 "2006-04-16T12:50:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphael\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7c8e57/32.png) [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Post date:** [April 16, 2006, 12:50pm UTC](https://www.ruby-forum.com/t/plugins-problems-with-ror-1-1-in-production/57928/1 "2006-04-16T12:50:49Z")

</div>

Hi,

I’m looking to upgrade an application based on rails 1.0, and I have a  
problem with plugins working fine in development, but not in  
production or test. Actually, it happens in all environments with  
their dependency mechanism set to :load.

For example for the selenium on rails plugin, it needs the class  
SeleniumOnRailsConfig, which triggers the dependency on  
‘selenium\_on\_rails’. First, the file ‘rails/selenium\_on\_rails’ is  
searched. If cannot be loaded, it raises the exception LoadError. The  
problem I see is that only MissingSourceFile exceptions are treated in  
activesupport/lib/active\_support/dependencies.rb on line 102. When  
the dependency mechanism is :load, it stops here.

When the exeption MissingSourceFile is raised (happens in development  
where the dependency mechanism is :require), it tries to use the file  
“selenium\_on\_rails”, without the “rails/” prefix and it succeeds.

Anyone know how I can fix this?

Here is the svninfo from vendor/rails (where I checked out a stable  
version some time ago, and I updated it with svn update):

Path: .  
URL: [http://dev.rubyonrails.org/svn/rails/branches/stable](http://dev.rubyonrails.org/svn/rails/branches/stable)  
Repository UUID: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de  
Revision: 4214  
Node Kind: directory  
Schedule: normal  
Last Changed Author: rick  
Last Changed Rev: 4212  
Last Changed Date: 2006-04-14 16:14:27 +0200 (Fri, 14 Apr 2006)  
Properties Last Updated: 2006-04-08 10:21:32 +0200 (Sat, 08 Apr 2006)

Thanks

Raph

---

<div class="post-metadata">

**Author:** ![raphael\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7c8e57/32.png) [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Post date:** [April 19, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/plugins-problems-with-ror-1-1-in-production/57928/2 "2006-04-19T23:23:02Z")

</div>

Hi Raph,

I just tried to install Rails 1.1.2 (on ruby 1.8.2 (2004-12-25)  
[i386-mswin32]), created a new app and installed Selenium on Rails. It  
seems like everything is working just fine (rake test\_plugins, accessing  
/ and /selenium/).

Do you have this problem with newly created apps or just your Rails 1.0  
app?

Hope you’re able to sort it out!

Cheers,  
Jonas Bengtsson

Raphael B. wrote:

> Hi,
> 
> I’m looking to upgrade an application based on rails 1.0, and I have a  
> problem with plugins working fine in development, but not in  
> production or test. Actually, it happens in all environments with  
> their dependency mechanism set to :load.
> 
> For example for the selenium on rails plugin, it needs the class  
> SeleniumOnRailsConfig, which triggers the dependency on  
> ‘selenium\_on\_rails’. First, the file ‘rails/selenium\_on\_rails’ is  
> searched. If cannot be loaded, it raises the exception LoadError. The  
> problem I see is that only MissingSourceFile exceptions are treated in  
> activesupport/lib/active\_support/dependencies.rb on line 102. When  
> the dependency mechanism is :load, it stops here.
> 
> When the exeption MissingSourceFile is raised (happens in development  
> where the dependency mechanism is :require), it tries to use the file  
> “selenium\_on\_rails”, without the “rails/” prefix and it succeeds.
> 
> Anyone know how I can fix this?
> 
> Here is the svninfo from vendor/rails (where I checked out a stable  
> version some time ago, and I updated it with svn update):
> 
> Path: .  
> URL: [http://dev.rubyonrails.org/svn/rails/branches/stable](http://dev.rubyonrails.org/svn/rails/branches/stable)  
> Repository UUID: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de  
> Revision: 4214  
> Node Kind: directory  
> Schedule: normal  
> Last Changed Author: rick  
> Last Changed Rev: 4212  
> Last Changed Date: 2006-04-14 16:14:27 +0200 (Fri, 14 Apr 2006)  
> Properties Last Updated: 2006-04-08 10:21:32 +0200 (Sat, 08 Apr 2006)
> 
> Thanks
> 
> Raph
