Rails Engine

Hi all,

I try to implement Rails Engine,

but i get following error

/home/kingston/.rvm/gems/[email protected]/gems/
railties-3.1.3/lib/rails/plugin.rb:87:in block in <class:Plugin>': "Sub-Engine" is a Railtie/Engine and cannot be installed as a plugin (RuntimeError) from /home/kingston/.rvm/gems/[email protected]/gems/ railties-3.1.3/lib/rails/initializable.rb:30:ininstance_exec’
from /home/kingston/.rvm/gems/[email protected]/gems/
railties-3.1.3/lib/rails/initializable.rb:30:in run' from /home/kingston/.rvm/gems/[email protected]/gems/ railties-3.1.3/lib/rails/initializable.rb:55:inblock in
run_initializers’
from /home/kingston/.rvm/gems/[email protected]/gems/
railties-3.1.3/lib/rails/initializable.rb:54:in each' from /home/kingston/.rvm/gems/[email protected]/gems/ railties-3.1.3/lib/rails/initializable.rb:54:inrun_initializers’
from /home/kingston/.rvm/gems/[email protected]/gems/
railties-3.1.3/lib/rails/application.rb:96:in initialize!' from /home/kingston/.rvm/gems/[email protected]/gems/ railties-3.1.3/lib/rails/railtie/configurable.rb:30:inmethod_missing’
from /home/kingston/broking_workspace/Rails-Engine/config/
environment.rb:5:in <top (required)>' from /home/kingston/.rvm/gems/[email protected]/gems/ activesupport-3.1.3/lib/active_support/dependencies.rb:240:inrequire’
from /home/kingston/.rvm/gems/[email protected]/gems/
activesupport-3.1.3/lib/active_support/dependencies.rb:240:in block in require' from /home/kingston/.rvm/gems/[email protected]/gems/ activesupport-3.1.3/lib/active_support/dependencies.rb:223:inblock
in load_dependency’
from /home/kingston/.rvm/gems/[email protected]/gems/
activesupport-3.1.3/lib/active_support/dependencies.rb:640:in
new_constants_in' from /home/kingston/.rvm/gems/[email protected]/gems/ activesupport-3.1.3/lib/active_support/dependencies.rb:223:inload_dependency’
from /home/kingston/.rvm/gems/[email protected]/gems/
activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
require' from /home/kingston/.rvm/gems/[email protected]/gems/ railties-3.1.3/lib/rails/application.rb:83:inrequire_environment!’
from /home/kingston/.rvm/gems/[email protected]/gems/
railties-3.1.3/lib/rails/commands.rb:39:in <top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’

I am using rails 3.1 and ruby 1.9.3

please tell the solution on this…

Thanks

according to the log,maybe u install the Sub-Engine as plugin,maybe u
should install it as gem.

2012/3/15 kingston.s [email protected]

(RuntimeError)
railties-3.1.3/lib/rails/initializable.rb:54:in run_initializers' from /home/kingston/.rvm/gems/[email protected]/gems/ load_dependency’
I am using rails 3.1 and ruby 1.9.3
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


*Ըϲͬ!

ʯҾ
ϢѧԺ ϵӦ÷
Dalian NEUSOFT Institute of Information
й-԰·8
ʱࣺ116023
*Mail:[email protected] [email protected]
Phone:15242613529