Forum: Rails Engines Upgrading Rails to 1.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David C. (Guest)
on 2006-04-04 16:24
(Received via mailing list)
So, I've upgrade  rails to 1.1, and then re-installed my 'engines'
plugin, and
'login_engine' from http://svn.rails-engine.org/plugins/ .

Now, when I run my unit tests, I get an error about "add_path" being
missing.
Following the 'edge' directions seems to change (improve?) things, but
should
I still have to say ':edge => true' for 1.1?

David

P.S.
James A. (Guest)
on 2006-04-04 17:08
(Received via mailing list)
You should not have to specify the :edge => true stuff, no. What do
you get if you type

  Rails::VERSION::STRING

in a console?

- james

On 4/4/06, David C. <removed_email_address@domain.invalid> wrote:
>
> _______________________________________________
> engine-users mailing list
> removed_email_address@domain.invalid
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
David C. (Guest)
on 2006-04-05 05:21
(Received via mailing list)
My bad.  Sorry.
Domenic Ippolito (Guest)
on 2006-05-13 20:48
(Received via mailing list)
Hi, I'm also getting the add_path error in engines.rb.
I'm running rails 1.1.2, and I've tried using edge rails and specifying

module Engines
  CONFIG = {:edge => true}
end

at the top of my environment.rb file, but it didn't help.

Rails::VERSION::STRING prints "1.1.2", which seems right.

I am a long-time Unix guy, but new to ruby/rails, so I might be missing
something basic.

Any insights would be appreciated,

Domenic
James A. (Guest)
on 2006-05-15 01:18
(Received via mailing list)
Can you supply the error message in full - the method trace will be
helpful.

- james

On 13 May 2006 16:45:56 -0000, Domenic Ippolito
Guest (Guest)
on 2006-05-23 07:36
James A. wrote:
> Can you supply the error message in full - the method trace will be
> helpful.
>
> - james
>
> On 13 May 2006 16:45:56 -0000, Domenic Ippolito

James,

Here's the message/trace:

vendor/plugins/engines/lib/engines.rb:163:in `start_engine': undefined
method `add_path' for Controllers:Module (NoMethodError)
        from vendor/plugins/engines/lib/engines.rb:122:in `start'
        from vendor/plugins/engines/lib/engines.rb:121:in `start'
        from ./../config/environment.rb:75
        from dispatch.rb:3

Thanks,

Domenic
Nathan Donaldson (Guest)
on 2006-05-25 12:56
Hi James,

I am struggling with the same problem, my trace looks very similar:

/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:163:in
`start_engine': undefined method `add_path' for Controllers:Module
(NoMethodError)
	from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:122:in
`start'
	from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:121:in
`start'
	from
/Users/nathan/Documents/epanel-migrate-to-112/config/environment.rb:80

I am running Rails 1.1.2 on OS X using the latest version of Locomotive.

Regards
Nathan
James A. (Guest)
on 2006-05-25 13:11
(Received via mailing list)
Are you all running with the latest version of the Engines plugin?
Some of those line numbers indicate otherwise...

- james
Anton J Aylward (Guest)
on 2006-05-25 15:45
(Received via mailing list)
I had a similar trace when I downloaded the demo of RikiEngine_0_3_2.
I have
	actionpack-1.12.1
	rails-1.1.2
	activerecord-1.14.2

I did try, as you suggest, upgrading the engine plugin.
I also tried upgrading user_engine and login_engine.

The result was catastrophic, even more error messages spewed.
It was now complaining about what seemed to be the innards of the Oracle
and FCGI adapters, among many things.


I gave up.
Until I saw this thread.

I really like the IDEA of the packaging that 'engines' represents, but
there does seem to be problems with the deployment.
Casper F. (Guest)
on 2006-05-25 15:54
(Received via mailing list)
I have experienced a lot of problems when deploying the combination of
FastCGI, Rails 1.1.2 in the vendors-dir and User- and Logine-engines,
especially those dreaded NoMethodErrors. You might want to take a look
on my
description of how to overcome various problems when deploying, since
you
seem to have similar problems:
http://casperfabricius.com/blog/2006/05/21/rails-o...
Anton J Aylward (Guest)
on 2006-05-25 16:39
(Received via mailing list)
Sadly your blog was not a lot of use.
I'm just trying to get this to run as a demo on my own Linux server with
WebBrick.  No FCGI, no Apache.  ZILCH.
So the stuff about .htaccess, Dreamhost, deployment etc is not relevant.

I'm trying to do the **bare minimum** to get this to work, not deploy it
"in the wild".  I'm trying to solve the very basic problem.

Yes I tried the
   CONFIG = {:edge => true}
thing and variation on that I found at other sites.
The RikiEngline package had the various 'require' and 'start'
items you discuss already in it.
James A. (Guest)
on 2006-05-25 16:45
(Received via mailing list)
Can you post the actual error messages, and also the version of the
Engines plugin you're using? (You can find it in
/vendor/plugins/engines/init.rb). I'm determined to nail this issue
today.

FWIW, the :edge flag should no longer be relevant.

- james
Anton J Aylward (Guest)
on 2006-05-25 17:39
(Received via mailing list)
James A. wrote:
> Can you post the actual error messages, and also the version of the
> Engines plugin you're using? (You can find it in
> /vendor/plugins/engines/init.rb). I'm determined to nail this issue
> today.
>
> FWIW, the :edge flag should no longer be relevant.
>
> - james

This is from the vanilla RikiEngine_0_3_2.tgz I downloaded and unpacked.


[anton@BigBoy RikiEngine_0_3_2]$ more vendor/plugins/engines/init.rb
#--
# Copyright (c) 2005 James A.
....

require 'engines'

module ::Engines::Version
  Major = 1 # change implies compatibility breaking with previous
versions
  Minor = 0 # change implies backwards-compatible change to API
  Release = 6 # incremented with bug-fixes, updates, etc.
end

#....


The basic run is:

$ ruby script/server
=> Booting WEBrick...
./script/../config/../vendor/plugins/engines/lib/engines.rb:163:in
`start_engine': undefined method `add_path' for Controllers:Module
(NoMethodError)
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:122:in
`start'
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:121:in
`each'
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:121:in
`start'
        from ./script/../config/../config/environment.rb:70
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:52
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from script/server:3


If I turn on debugging I get the following, much of which alarms me.

$ ruby -d  script/server
Exception `LoadError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- initializer
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:334:
warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:363:
warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not initialized
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not initialized
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:
warning: method redefined; discarding old allow_concurrency=
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/sqlserver_adapter.rb:456:
warning: method redefined; discarding old remove_column
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- db2/db2cli
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- db2/db2cli
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- db2/db2cli
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/oracle_adapter.rb:119:
warning: (...) interpreted as grouped expression
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:19
- No such file to load -- oci8
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- sybsql
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- sybsql
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- sybsql
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/request.rb:169:
warning: method redefined; discarding old relative_url_root
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- Win32API
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- Win32API
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- Win32API
/usr/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method redefined;
discarding old []=
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57:
warning: ambiguous first argument; put parentheses or even spaces
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8:
warning: method redefined; discarding old initialize_query
Exception `DRb::DRbServerNotFound' at /usr/lib/ruby/1.8/drb/drb.rb:1572
-
DRb::DRbServerNotFound
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- memcache
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- memcache
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- memcache
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session/active_record_store.rb:129:
warning: private attribute?
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session/active_record_store.rb:179:
warning: method redefined; discarding old connection
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- redcloth
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- bluecloth
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- html/tokenizer
Exception `Gem::LoadError' at
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:204 -
RubyGem version error: facets(1.3.3 not = 1.0.3)

Exception `Gem::LoadError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- RubyGem version error: facets(1.3.3 not = 1.0.3)

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/prototype_helper.rb:640:
warning: ambiguous first argument; put parentheses or even spaces
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/prototype_helper.rb:873:
warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/vendor/tmail/facade.rb:486:
warning: method redefined; discarding old create_reply
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- tmail/base64.so
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- tmail/base64.so
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- tmail/base64.so
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- tmail/scanner_c.so
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- tmail/scanner_c.so
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- tmail/scanner_c.so
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- xmlscan/scanner
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- xmlscan/scanner
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- xmlscan/scanner
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- xml/parser
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- xml/parser
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- xml/parser
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- xml/parser
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- xml/parser
Set XSD::XMLParser::REXMLParser as XML processor.
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- http-access2
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- http-access2
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- http-access2
Loading http-access2 failed.  Net/http is used.
/usr/lib/ruby/1.8/net/https.rb:121: warning: method redefined;
discarding
old edit_path
/usr/lib/ruby/1.8/net/https.rb:130: warning: redefine socket_type
/usr/lib/ruby/1.8/net/https.rb:157: warning: method redefined;
discarding
old on_connect
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:581: warning:
method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:590: warning:
method redefined; discarding old []
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:595: warning:
method redefined; discarding old keys
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:600: warning:
method redefined; discarding old find_pair
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:607: warning:
method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:611: warning:
method redefined; discarding old []
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:615: warning:
method redefined; discarding old method_missing
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- fcgi
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:19
- No such file to load -- fcgi
=> Booting WEBrick...
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:212 - File
exists - tmp/sessions
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:212 - File
exists - tmp/cache
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:212 - File
exists - tmp/sockets
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - No such file
to
load -- simplecc
Exception `MissingSourceFile' at
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 - No such file
to
load -- simplecc
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- No such file to load -- simplecc
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:483: warning:
instance variable @after_initialize_block not initialized
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:8:
warning: redefine included
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:39:
warning: method redefined; discarding old authenticate
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:45:
warning: method redefined; discarding old authenticate_by_token
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:59:
warning: redefine hashed
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:68:
warning: redefine salted_password
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:77:
warning: method redefined; discarding old initialize
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:82:
warning: method redefined; discarding old token_expired?
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:86:
warning: method redefined; discarding old update_expiry
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:93:
warning: method redefined; discarding old generate_security_token
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:102:
warning: method redefined; discarding old set_delete_after
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:112:
warning: method redefined; discarding old change_password
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:120:
warning: method redefined; discarding old validate_password?
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:125:
warning: method redefined; discarding old crypt_password
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:132:
warning: method redefined; discarding old new_security_token
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:139:
warning: method redefined; discarding old token_lifetime
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:14:
warning: method redefined; discarding old authorize?
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:29:
warning: method redefined; discarding old protect?
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:42:
warning: method redefined; discarding old login_required
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:65:
warning: method redefined; discarding old access_denied
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:71:
warning: method redefined; discarding old store_location
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:76:
warning: method redefined; discarding old redirect_to_stored_or_default
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:86:
warning: method redefined; discarding old redirect_back_or_default
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:94:
warning: method redefined; discarding old user?
./script/../config/../vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb:111:
warning: method redefined; discarding old current_user
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140
- No such file to load -- controllers.rb
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:143
- No such file to load -- controllers.rb
Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:32
- No such file to load -- controllers.rb
Exception `NoMethodError' at
./script/../config/../vendor/plugins/engines/lib/engines.rb:163 -
undefined
method `add_path' for Controllers:Module
Exception `NoMethodError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- undefined method `add_path' for Controllers:Module
Exception `NoMethodError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- undefined method `add_path' for Controllers:Module
Exception `NoMethodError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- undefined method `add_path' for Controllers:Module
./script/../config/../vendor/plugins/engines/lib/engines.rb:163:in
`start_engine': undefined method `add_path' for Controllers:Module
(NoMethodError)
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:122:in
`start'
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:121:in
`each'
        from
./script/../config/../vendor/plugins/engines/lib/engines.rb:121:in
`start'
        from ./script/../config/../config/environment.rb:70
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:52
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from script/server:3












>
n I downloaded the demo of RikiEngine_0_3_2.
Nathan Donaldson (Guest)
on 2006-05-26 12:29
Hi James,

Yes I updated the engines by running:

ruby script/plugin update

which output

Updating plugin: ar_fixtures
Updating plugin: engines
Updating plugin: javascript_generator_templates
Updating plugin: login_engine
Updating plugin: user_engine

perhaps it only pretended to update them, I will try and update them
manually and see if that helps.

Regards
Nathan



James A. wrote:
> Are you all running with the latest version of the Engines plugin?
> Some of those line numbers indicate otherwise...
>
> - james
James A. (Guest)
on 2006-05-26 13:08
(Received via mailing list)
You may want to confirm that script/plugin is actually downloading
from the proper SVN site (http://svn.rails-engines.org) and not the
very very old defunct one (https://opensvn.csie.org/rails_engines/) -
look at "script/plugin unsource" for more info.

- james
Nathan D. (Guest)
on 2006-05-27 03:32
I deleted the engine plugine, user and login engines and reinstalled
them from the repository. So now I am sure I have the latest version. I
am still getting errors, though they are different now.

Here is the trace:

/Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- authenticated_user
(MissingSourceFile)
        from
/Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/login_engine/init_engine.rb:6:in
`start_engine'
        from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:183:in
`start_engine'
        from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:132:in
`start'
        from
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb:131:in
`start'
Domenic I. (Guest)
on 2006-05-31 08:14
James A. wrote:
> Are you all running with the latest version of the Engines plugin?
> Some of those line numbers indicate otherwise...
>
> - james

Hmmm. I don't how I ended up with something *other* than the latest
version, but I didn't have it. Updating it made the add_path problem go
away.

Thanks!
Jonas E (Guest)
on 2006-06-02 03:08
Nathan Donaldson wrote:
> I deleted the engine plugine, user and login engines and reinstalled
> them from the repository. So now I am sure I have the latest version. I
> am still getting errors, though they are different now.
>
> Here is the trace:
> 
/Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require__': no such file to load -- authenticated_user
> (MissingSourceFile)
>         from
> 
/Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
>         from
>

I get the exact same after upgrading Ubuntu to Dapper (6.0). In that
process I also gor Ruby 1.8.4 and Rails 1.1.

Anyone here that has login_engine running under Rails 1.1?
Jonathan Bloch (Guest)
on 2006-06-03 05:38
FWIW, I couldn't get anything much working following the instructions I
read in this list ("upgrade to the lastest version of engines,
etc....").  Instead, things are goog if I use the following
externals/revisions:

engines http://svn.rails-engines.org/engines/tags/rel_1.1.1/
login_engine http://svn.rails-engines.org/login_engine/tags/rel_1.0.1/
user_engine http://svn.rails-engines.org/user_engine/tags/rel_1.0.1/


rather than the "lastest" releases.

Perhaps I'm missing something?

-Jonathan



Jonas E wrote:

> I get the exact same after upgrading Ubuntu to Dapper (6.0). In that
> process I also gor Ruby 1.8.4 and Rails 1.1.
>
> Anyone here that has login_engine running under Rails 1.1?
James A. (Guest)
on 2006-06-03 18:00
(Received via mailing list)
There was a minor issue with the latest version of the engines plugin
and the login engine. I've just updated the login engine, so the
latest versions of everything should now be compatible.

- james
Jonas E (Guest)
on 2006-06-05 01:34
James A. wrote:
> There was a minor issue with the latest version of the engines plugin
> and the login engine. I've just updated the login engine, so the
> latest versions of everything should now be compatible.

That and:
apt-get install libmysql-ruby1.8
did the trick for me.
Stephen H. (Guest)
on 2006-07-17 20:35
I just went through a similar problem with engines and login_engine
similar to Nathan.  I kept on getting the

> 
/Users/nathan/Documents/epanel-migrate-to-112/config/../vendor/plugins/engines/lib/engines.rb 
163:in `start_engine': undefined method `add_path' for Controllers:Module
> (NoMethodError)

I finally figured out my problem -- I was not using svn:externals, and
had an old snapshot in my vendor/ directory, and it wasn't getting
updated by
script/plugin update

I switched over to using svn:externals by just
script/plugin install --force -x engines
script/plugin install --force -x login_engine

And my script/server works just fine.

For more info on installing and maintaing rails engines:
http://www.snowblink.co.uk/articles/2006/04/05/ins...

Steve
This topic is locked and can not be replied to.