Is "catalog" your model? Then your controller should contain

  active_scaffold :catalog do |config|
    config.columns = [:name, :version, :description]
  end

Or is catalog an association to an here un-mentioned model xyz? In
that case you should define an catalog-version-accessor for your model
xyz, e.g.:

model xyz [...]

 def catalog_version
   self.catalog.version
 end
[...]
end

and declare:

  active_scaffold :xyz do |config|
    config.columns = [:catalog, :catalog_version, :description]
  end

Regards
Michael


On Apr 9, 8:26 am, slava <[email protected]> wrote:
> I want to show a specific field from a referred model. not sure how to
> do it. when i specify
>  config.columns = [:catalog, :description]
> I get  catalog's name listed. I also want to list catalog's version
> property
>
>   active_scaffold do |config|
>     config.columns = [:catalog, :catalog[version], :description]
>   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