When I use that syntax I get a routing error
++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Processing ApplicationController#index (for 127.0.0.1 at 2007-10-03
12:55:48) [POST]
Session ID: 455c9d0d9f200777765921028a77b9cf
Parameters: {}
ActionController::RoutingError (no route found to match "/application/
menu" with {:method=>:post}):
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
actionpack-1.13.3/lib/action_controller/routing.rb:1292:in
`recognize_path''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
actionpack-1.13.3/lib/action_controller/routing.rb:1282:in `recognize''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/
dispatcher.rb:40:in `dispatch''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/rails.rb:78:in `process''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/rails.rb:76:in `synchronize''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/rails.rb:76:in `process''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:618:in `process_client''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:617:in `each''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:617:in `process_client''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:736:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:736:in `initialize''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:736:in `new''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:736:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:720:in `initialize''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:720:in `new''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel.rb:720:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/configurator.rb:271:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/configurator.rb:270:in `each''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/configurator.rb:270:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/bin/mongrel_rails:127:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/lib/mongrel/command.rb:211:in `run''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-
mswin32/bin/mongrel_rails:243
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/
commands/servers/mongrel.rb:60
E:/irail/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require''
E:/irail/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require''
E:/irail/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/
commands/server.rb:39
E:/irail/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require''
E:/irail/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require''
script/server:3
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To me that looks like its asking for the method to be in application,
like I want, but I already have method defined in application.rb
class ApplicationController < ActionController::Base
layout ''index''
...
...
def menu
logger.info "\n\n\ncalled\n\n\n"
end
...
...
end
On Oct 3, 12:51 pm, Thorsten
<duple...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:> %= link_to_remote( mg.group_name, :update => "menu", :url
=>
> {:controller => "application", :action
> => "menu"}) unless ms.first.nil? %>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---