Displaying 3 results from an estimated 3 matches for "scaffoldcolumn".
2006 Aug 02
2
Ajax_Scaffold display from link table
...to display the corresponding catgory name and when it comes
to adding a new category or editing the have a drop down list to select
from.
category.rb
require ''ajax_scaffold''
class Category < ActiveRecord::Base
belongs_to :document
@scaffold_columns = [
AjaxScaffold::ScaffoldColumn.new(self, { :name => "name" })
]
end
document.rb
require ''ajax_scaffold''
class Document < ActiveRecord::Base
has_one :category
@scaffold_columns = [
AjaxScaffold::ScaffoldColumn.new(self, { :name => "name" }),
AjaxScaffold::Scaff...
2006 Jul 28
4
ajax scaffold
someone using ajax scaffold ??
I''m using
@scaffold_columns = [
AjaxScaffold::ScaffoldColumn.new(self, { :name => "name" })
]
in my model...
I have a column named "name", but it''s not working, When I click in
"Create New" ajax indicator starts but not occurs . . .
someone can help me? tks
2006 Apr 30
3
require "ajax_scaffold" in model error
...sed> 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...