What is causing the map method error when I test the 5 steps "Creating
a Ziya Chart in a Rails 2.3 application"?
This is the routes.rb contents.
map.load_chart '/blee/load_chart', :controller => 'blee', :action
=> 'load_chart'
Running on Mac 10.6.2
rails to 2.3.4
Gem 1.3.5
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
derailed-ziya-2.1.5
I followed the instructions to the letter
http://groups.google.com/group/ziya-plugin/browse_thread/thread/b21dcaad79e9f275/5bc1b20f1b0c6772?lnk=gst&q=load_chart#5bc1b20f1b0c6772
&
http://ziya.liquidrail.com/docs/index.htmlWhat is causing the map
method error when I test the 5 steps "Creating a Ziya Chart in a Rails
2.3 application"?
This is the routes.rb contents.
map.load_chart '/blee/load_chart', :controller => 'blee', :action
=> 'load_chart'
Running on Mac 10.6.2
rails to 2.3.4
Gem 1.3.5
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
derailed-ziya-2.1.5
Results
pb$ ./script/server
=> Booting Mongrel
=> Rails 2.3.4 application starting on
http://0.0.0.0:3000
/Users/pb/Documents/source/rails_work/exchange/config/routes.rb:2:
undefined local variable or method `map' for main:Object (NameError)
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in
`load_without_new_constant_marking'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in `load'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in `load'
from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `load_routes!'
from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `each'
from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `load_routes!'
from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:266:in `reload!'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
537:in `initialize_routing'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
188:in `process'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `send'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `run'
from /Users/pblen/Documents/source/rails_work/exchange/config/
environment.rb:9
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:
84
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from ./script/server:3
Thanks,
Philip