Put the code in your application_helper
-PJ
On 7/18/05, Ron Sweeney
<ron.sweeney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> How do I get things into application.rhtml in a global fashion... ?
>
> I want to supply application.rb something like:
>
> @total = Model.count (id > 0 )
>
> and use @total in application.rhtml
>
> It doesn''t seem to work when I do this....
>
> --
>
> Ron Sweeney
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>