#23
Discarded
ScaffoldColumn's :sort_sql not used when defined as method
Reported by caylan on Ajax Scaffold · 22/05/2006 23:48:19
- Assigned to:
- Nobody
- Priority:
- Normal
- Status:
- Discarded
- Category:
- None
- Version:
- 3.1.2
In helper, which doesn’t work:
def scaffold_columns [ AjaxScaffold::ScaffoldColumn.new(Room, { :name => “number”, :sort_sql => “0+rooms.number” }), AjaxScaffold::ScaffoldColumn.new(Room, { :name => "description"}) ] endIn model, which does work:
@scaffold_columns = [ AjaxScaffold::ScaffoldColumn.new(Floor, { :name => “number”, :sort_sql => “0+floors.number” }), AjaxScaffold::ScaffoldColumn.new(Floor, { :name => “description” }) ]
Loading comments...