Displaying 2 results from an estimated 2 matches for "recipescontroller".
Did you mean:
recipecontroller
2007 Aug 22
1
Tabbed Navigation
Went back and forth a bit trying to find out the easiest way to do this.
Found a plugin but it didn''t seem very stable/well written.
This is what I have going right now:
- if @content_for_recipe_editor_tabs
= yield :recipe_editor_tabs
- else
= tabbed_navigator(RecipesController.send "edit_tabs")
If any templates/sub-templates/partials used in this render have something
like this:
- content_for(''recipe_editor_tabs'' ) do
= tabbed_navigator(RecipesController.send "new_tabs")
That content will be used in place of the content spec...
2005 Mar 18
0
scaffold generator, pluralization and tutorials
Hi
All the tutorials call their controllers ''TodoController''[1] or
''RecipeController''[2] (singular),
but "script/generate scaffold Recipe" for example generates
a ''RecipesController'' (in recipes_controller.rb)
As I''m rather new to RoR I don''t know if that convention changed,
I read something about it here:
http://one.textdrive.com/pipermail/rails/2005-February/002388.html
It''s a little bit confusing, when you try to follow the tutorial...