why not create helper actions and modules?
If the code you want to encapsulate does not involve data it''s a good
candidate for a controller level helper method. See the helpers
directory under apps. You may also create global app level helpers in
the application_helper.rb file.
If the code you want to encapsulate will include both view and data,
it''s a good candidate for a component which you can call via
render_component in any view.
You also have the ability to use a partial view template if it does
not involve application logic. Partials are not useful for only
dividing the HTML page into compartmnents, but also useful for atomic
views. For instance you can use a partial for each line in your
listing table separated by another partial.
Hope this helps.
Oyku.
On 03.Eki.2005, at 12:38, Kai Chan wrote:
> Hi All,
>
>
>
> Anyone know if there is the RoR equivalent of things like JSP
> Custom tags? So I can remove as much code from the views and into
> classes instead, allowing easier testing …etc.
>
>
>
> Thanx in advance.
>
>
>
> Kai
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails