Forum: Ruby on Rails open and close helper tags?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
98f7f49eca94a17d8ac4c61ee5700249?d=identicon&s=25 Bryan (Guest)
on 2006-05-12 01:18
Hello everyone.

I have a custom thumbnail gallery that I am creating with images pulled
in a specific order from an array of image ID#s. What I essentially want
to do is have a helper-setup where I can do an opening helper tag, such
as <% open_image_gallery %> and then be able to place inside of it
specific tags associated to the options specified in the opening tag,
say the list of photos, any navigation tags, etc. All my options are
simple and it seems this would be a good way to only have to declare
them once, such as :limit => 20. I don't want to have to declare the
limit on the actually list tag, then also per nav-tag so they know how
far to offset to create the next page.

Can anyone point me in the right direction?
98f7f49eca94a17d8ac4c61ee5700249?d=identicon&s=25 Bryan Corey (mrpunkin)
on 2006-05-12 17:17
Anyone?
Eed3ca2591560a2dd91222d9b62f882d?d=identicon&s=25 Ryan Prins (Guest)
on 2006-05-13 00:43
(Received via mailing list)
I don't quite see the benefit of this. But, I might not completely
understand what you're trying to get at. Could you post what you'd like
the
code to look like? Also, I'm assuming you'd want this in a View?
This topic is locked and can not be replied to.