Hi, I was developing a rails app with version 1.1.6 that just worked
fine.
I decided to upgrade to 1.2.3 and then, I keep getting that horrible
message:
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
Now, before starting script/server I modiffied config/environment.rb
and changed the value of RAILS_GEM_VERSION from 1.1.6 to 1.2.3
It did not work, so I run 'rake rails:update' and, again, the same
mistake
Any ideas about what could be wrong?
The funny thing is that if I change back the value of
RAILS_GEM_VERSION to 1.1.6, everything works fine again.
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
Now, before starting script/server I modiffied config/environment.rb
and changed the value of RAILS_GEM_VERSION from 1.1.6 to 1.2.3
It did not work, so I run 'rake rails:update' and, again, the same
mistake
Any ideas about what could be wrong?
What's the webserver's error_log say?
(Parallel question - what does script/server give?)
See on my laptop I have version 1.1.6 for wich the code I have been
writing work. In my laptop I have installed version 1.2.3 and in my
desktop computer, I have installed only the latest versions of
everything (rake 0.7.3, rails 1.2.3 and so on)
After modifying config/environment.rb and set RAILS_GEM_VERSION =
'1.2.3' in both computers I got the same error.
Now, I did the script/console and got:
addicttux@suse64:~/Desarrollos/jiro> script/console
Loading development environment.
/usr/lib64/ruby/gems/1.8/gems/actionwebservice-1.2.3/lib/
action_web_service/container/action_controller_container.rb:74:in
`require_web_service_api':NameError: neither ApplicationApi or
ApplicationAPI found
JiroController
LoadError: Expected script/../config/../config/../app/controllers/
jiro_controller.rb to define JiroController
from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:249:in `load_missing_constant'
from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:452:in `const_missing'
from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:464:in `const_missing'
from (irb):1
exit
Now, I have no idea about this wire thing, in 1.1.6 works and in 1.2.3
does not.
Today I will start simulating the creation from 0, I mean, 'rails
jiro' and start adding file by file, constantly testing, to see what
is making this wire behavior.
Mean while, any suggestions are more than welcome.