[Rails] Helpers?

Kevin Olbrich
Fri, 17 Feb 2006 19:52:47 -0000

You could do it the way you suggest or...

1. use a component to render the navigation, or
2. use a partial template

personally I reserve helpers for methods that do some work, if it is all
just ''view'' stuff (like links, etc), I would just put it in a
partial.

_Kevin


On Friday, February 17, 2006, at 1:04 PM, Buntin, Seth - KATE
wrote:
>Would I use a helper for this situation?
>
>
>
>I have a layout that is used over two controllers (admin and login).
>Each controller has their own navigation.  Can I do something like this?
>
>
>
><%= getNavigation("admin") %> or <%=
getNavigation("login") %>
>
>
>
>And return the navigation list depending on the string sent?
>
>
>
>Seth Buntin
>
>
>
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
>





--
Posted with http://DevLists.com.  Sign up and save your time!