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
I think you can just reset the flash[:notice] to null value in the
beginning of the action.so that it will show the null value or just
check for small condition.
if flash[:notice]
display the message.
end
Chris L. wrote:
Can someone have a quick gander at this application.rb file
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
I think you can just reset the flash[:notice] to null value in the
beginning of the action.so that it will show the null value or just
check for small condition.
Yeah thats one way around it, the thing is that the flash should not be
being set at all, Ive traced this through and the code seams to happyily
find the recipe so why on earth does it still perform the rescue action