Displaying 1 result from an estimated 1 matches for "new_ingredient_path".
2007 Aug 22
1
Tabbed Navigation
...'recipe_editor_tabs'' ) do
= tabbed_navigator(RecipesController.send "new_tabs")
That content will be used in place of the content specified in the else
block.
Here''s what new_tabs and edit_tabs looks like.
def self.new_tabs
[tab("Description", :new_ingredient_path, :needs => [:recipe])]
end
This will likely abstract a little more as we add more views that need
tabbed_navigators, but I''ll hold off on that to see where the repetition
crops up.
''tabbed_navigator'' helper takes the array of tabs and renders them as an ul
with lin...