Forum: Rails Engines rails engine not finding controller every second page load

6cfec1033a7202fcb6e4224a47e4f007?d=identicon&s=25 Anko P. (anko_p)
on 2011-04-05 02:52
i'm developing a rails 3 engine but really having troubles getting the
controller to load every time.

every second time I visit the page I get;
LoadError in Webedit/public filesController#index

to define PublicFilesController

to reproduce (assuming bash, ruby 1.9.2 and rails 3);

rails new webedit-test
cd webedit-test
echo "gem 'webedit', :git =>
'', :tag => 'v0.0.3'" >>
bundle install
rails server

then goto http://localhost:3000/public

it will either say "hi" or an error.. refresh to see it change to the
opposite behaviour.

any help would be greatly appreciated.. I've spent some time in ruby
debugger but need to understand a lot about how rails works to get a
meaningful result.
This topic is locked and can not be replied to.