search for: table_show

Displaying 1 result from an estimated 1 matches for "table_show".

Did you mean: table_shadow
2007 Jan 25
2
Need help for Helper
I need a helper, which will render a table in my customized style. I wrote a code like this: template.rhtml: <% @column_names = ["Name", "Age", "Sex"] %> <%= table_show @column_name %> helper.rb def table_show(names) for name in names content_tag ( :div, name, :class => ''table_header'' ) end end Which should give me an output like this: <div class=''table_header''>Name</div> <div class=''t...