Displaying 2 results from an estimated 2 matches for "my_menu".
Did you mean:
fl_menu
2008 Oct 12
0
How to test with RSpec a Rails plugin using “link_to” and “current_page?”
...ng in the view, I''ve had to inherit the
current class (apparently ActionView::Base) and it works perfectly
well. Unfortunately, this totally breaks the tests with RSpec.
I''m calling *link`_`to* and *current`_`page?* like this:
def menu(options = {}, &block)
carte = my_menu.new(self)
yield carte
carte.to_s unless carte.empty?
end
class my_menu
include ActionView::Helpers::TagHelper
include ActionView::Helpers::UrlHelper
def initialize(base)
@base = base
end
def link
@base.link_to(name, url_options, h...
2006 Jul 28
12
MenuEngine
Hi all,
MenuEngine is a small Rails engine that can generate templated
drop-down DHTML menus commonly used for web site navigation. Supports
creation of menus from a YAML file, from code and from pre-configured
HTML. Optionally integrates with UserEngine for authorization.
http://www.muermann.org/ruby/menu_engine
Project page:
http://rubyforge.org/projects/menuengine
This is my first attempt