html_options for Plugin menu
Added by Akiko Takano almost 13 years ago
Hello.
I've created a plugin for our staff and it works fine.
Then I hope to set confirmation message when clicking this plugin's menu, like link_to method does.
The code is:
menu :top_menu, :my_plugin, {:controller => 'my_plugin', :action => 'my_action'}, :last => true, :caption => 'My Plugin', :html_options => {:confirm => 'Go to My Plugin!'}
But this failed.
I could not find any other sample plugins with using html_options.
Do I have misunderstanding?
Any help will be appreciated.
Replies (1)
RE: html_options for Plugin menu
-
Added by Mischa The Evil almost 13 years ago
According to Plugin_Tutorial you should use :html
instead of :html_options
. I'm not sure if this could fix your issue though...