#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"}) ] end

In model, which does work:

@scaffold_columns = [ AjaxScaffold::ScaffoldColumn.new(Floor, { :name => “number”, :sort_sql => “0+floors.number” }), AjaxScaffold::ScaffoldColumn.new(Floor, { :name => “description” }) ]

Attachments Upload

No attachment has been uploaded, yet.


Loading comments...