Hi there,
I’ve got installed ajax_scaffold_generator (3.1.2, 2.2.1)
Anyway I’m following the example here <http://height1percent.com/
articles/2006/04/18/ajaxscaffold-3-1-0-released> which suggests the
following in a model file:
require ‘ajax_scaffold’
class Pet < ActiveRecord::Base
belongs_to :person, :foreign_key => “owner_id”
@scaffold_columns = [
AjaxScaffold::ScaffoldColumn.new(self, { :name => “name” }),
AjaxScaffold::ScaffoldColumn.new(self, { :name => “owner”,
:eval => “pet.person.name”, :sort_sql => “people.name” })
]
end
However, I’m getting the following error when loading it in a browser…
MissingSourceFile in PetsController#list
no such file to load – ajax_scaffold
<…>
Any ideas on where this ajax_scaffold ought to be found and why it’s
not finding it?
Thanks.
with regards,
Lachlan Deck