How about a combination to bridge the two?
Helpers for prettification, and partials for separation.
--
-- Tom Mornini
On Sep 20, 2005, at 1:16 PM, Joe Van Dyk wrote:
> See http://gamefest.com/product_info.php/products_id/61 for an example
> of what I''m trying to do. I''m trying to come up with the
correct way
> of doing those ''information boxes'' that you see for the
game
> description, contents, review, etc.
>
> Here''s my products/show.rhtml:
> http://joevandyk.com:2529/repository/file/trunk/app/views/products/
> show.rhtml
>
> 1 <%= product_heading @product %>
> 2
> 3 <%= game_info_box "information2_box_title.gif" do
> 4 game_information @product
> 5 end %>
> 6
> 7 <%= game_info_box "description2_box_title.gif" do
> 8 @product.description
> 9 end %>
> 10
> 11 <%= game_info_box "contents2_box_title.gif" do
> 12 format_game_contents @product.contents
> 13 end %>
>
>
> That looks nice and pretty, right?
>
> The helpers/products.rb is a little uglier. (i know the html is bad,
> i didn''t design it!)
> http://joevandyk.com:2529/repository/file/trunk/app/helpers/
> products_helper.rb.
> It''s long and ugly, so I''m not going to post it here.
>
> Am I doing this correctly? I know that partials are better for html,
> but then my show.rhtml is uglier.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>