I don''t think you would do it there -- instead, add
"h(flash[:success])" to your view. (Keep the presentation separate.)
On 1/13/06, Zack Chandler <zackchandler@drainpatrol.com>
wrote:> Hi.
>
> In controller code I''m doing things like:
>
> flash[:success] = "Customer {#@customer.name} has been
deleted."
>
> I know how to escape html in views by using the h() method. How can I do
> the same thing here in the controller?
>
> Thanks,
> Zack
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>