search for: scaffold_field

Displaying 2 results from an estimated 2 matches for "scaffold_field".

Did you mean: scaffold_fields
2006 Mar 07
1
decorators for models?
...ed. There are number of parameters that need to be customizable: column titles, row style depending on the data (i.e. showing all rows with balance<0 in red), is column sortable, sort-algorithm etc. To me, putting this parametrization in model like i.e. scaffold extension does (fields like @scaffold_fields, @scaffold_*) isn''t the right choice, as these parameters have more to do with "visual model" than with data model, so I was thinking of creating app/decorators/ and putting these visual models into separate classes (decorators) there i.e. class OrdersDecorator < ActiveR...
2006 Jun 06
0
Scaffolding Extension - Polimorphic Associations
...acted source (around line #6): 3: <table id="scaffolded" class="<%= @scaffold_class.scaffold_table_class :show %>"> 4: <thead><tr><th>Attribute</th><th>Value</th></tr></thead> 5: <tbody> 6: <% @scaffold_class.scaffold_fields.each do |column| %> 7: <tr> 8: <td><%= column.humanize %></td> 9: <td><%=h scaffold_value(@scaffold_singular_object, column) %></td> activerecord-1.14.2/lib/active_record/base.rb:1246:in `compute_type'' activesupport-1.3.1/lib/active...