Back again; errors in depot app


#1

Sorry, but this is a big one - after adding the Ajax portion of the
Agile
Web D. tutorial my page displays:

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
It started when I added -
page[:current_item].visual_effect :highlight,
:startcolor => “#88ff88” ,
:endcolor => “#114411

Since the page is not giving any specific errors , and there is nothing
in
500.html I’m not sure where to look. I did check the development.log
after rebooting Webrick and see this:

C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in
`dispatch’

C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2
/lib/commands/servers/webrick.rb:59

C:/INSTAN~1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require’

C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’

C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2
/lib/commands/server.rb:30

C:/INSTAN~1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require’

C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’

script/server:3

Perhaps I’m missing a file / library / brain cells :slight_smile: .

Any guesses or suggestions greatly appreciated.

Stuart


#2

Do u include any library in your controller? Take a look at that…maybe
the
error had been provided from there.

Or take a look if in application.rhtml u have smth like:

<%= javascript_include_tag :defaults%>
http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html#M000482


#3

The call is made in the RJS file. There is no library referred to in the
controller.
I do not have an application.rhtml fille either …I’m starting to think
that
an error like this isn’t just from missing a js library.

Stuart


#4

Alright , I don’t know what happened but it turns out it was the same
issue
as earlier where I had a close “end” missing in one of my rb files.

Sorry
Stuart