Can someone have a quick gander at this application.rb file
http://pastie.textmate.org/130228
What Im trying to do is make available to controllers lower down a
@recipe so I don’t have to do this in every controller that needs it
recipe = User.find(session[:user_id]).recipe.find(param[:id])
At the top of the controllers that use this I use…
before_filter :authorize
before_filter :fetch_recipe
Say the controller being used for this is an Ingredients controller
(Recipe has many ingredients). What happens is that although I can add
Ingredients it seaams that the flash[:notice] always seams to get set in
the application.rb
Any ideas?