I have a error when i set:
Hobo::ModelRouter.reload_routes_on_every_request = false
in config/initializers/hobo.rb
When the
=> Booting WEBrick...
c:/InstantRails/rails_apps/push/config/initializers/hobo.rb:1:
undefined method
`reload_routes_on_every_request=' for Hobo::ModelRouter:Class
(NoMethodError)
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:489:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:489:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:342:in `new_constants_in'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_suppo
rt/dependencies.rb:489:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
initializer.rb:342:i
n `load_application_initializers'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
initializer.rb:341:i
n `each'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
initializer.rb:341:i
n `load_application_initializers'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
initializer.rb:116:i
n `process'
... 14 levels...
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
server.rb:3
9
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `re
quire'
from script/server:3
c:\InstantRails\rails_apps\push>
I´m freeze at Hobo 0.7.4
On Oct 8, 7:46 pm, Tom Locke <[EMAIL PROTECTED]> wrote:
> Set
>
> Hobo::ModelRouter.reload_routes_on_every_request = false
>
> in config/initializers/hobo.rb
>
> You will need to restart the server to see changes to routes and to
> automatically generated rapid pages.
>
> 17 seconds sounds way to long though. Are you using webrick or mongrel?
>
> Also, make sure you don't have controllers that you're not using (i.e.
> you probably don't need the full set of 20 controllers, but if you
> generated everything with hobo_model_resource you will have them all)
>
> Tom
>
> On 7 Oct 2008, at 10:45, Robi wrote:
>
>
>
> > Hi,
> > Since switching to Hobo 0.82 (from 0.75) I have noticed a performance
> > difference. E.g. an application with about 20 models takes 17 seconds
> > to load a simple index page (uses table-plus, with in-line editor).
>
> > I am running on a modern Macbook (intel) with mySQL and am operating
> > in Dev mode. I realise that this is a generic question (and it
> > depends on my app) but is there anything I can do to speed the app up?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---