Hello,

I'm playing with latest version activescaffold and legacy database.
All primary and foreign keys in database are of type BINARY(16) (GUID
eported from accounting system).

I get an error when trying to view edit the record - "Request Failed
(code 500, Internal Error)"

It comes to tree products catalogue:

class Catalogue < ActiveRecord::Base
  has_many :children, :foreign_key => :parent_id
  belongs_to :parent, :foreign_key => :parent_id
  acts_as_tree :order => :title
end

class CatalogueController < ApplicationController
  active_scaffold :catalogue do |config|
    config.columns = [:code, :name, :parent, :children]
    config.list.columns = [:code, :name, :parent, :children]
    config.columns[:parent].form_ui = :select
    config.columns[:children].association.reverse = :parent
    config.columns[:children].includes = []
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to