Displaying 1 result from an estimated 1 matches for "_end_box".
2008 Mar 31
2
Rails and Partials
...box built with
html tables. The only way I have thought about accomplishing this is to
create two partials:
_start_box.erb
----------------
<table id="box" width="<%= width %>"><tr><th><%= h(label_text)
%></th></tr><tr><td>
_end_box.erb
----------------
</td></tr></table>
The to use it my_form.erb
----------------
%= render :partial => "start_box", :locals => { :label_text => "Box
Label", :width => "97%" } %>
<b>Some Text</b><br />
<b>S...