Hi,

I am wondering how get I get other values betwen models. Lets say I
have this two model:

class People < ActiveRecord::Base
 belongs_to :place, :foreign_key => :id, :class_name =>'People'
end

class Place < ActiveRecord::Base
  has_many :peoples
end

class PeoplesController < ApplicationController
  layout "peoples"
  active_scaffold :people do |config|
    config.label = "Them"
    config.columns = [:name, :last_name, :place]
    list.columns.exclude :poznamka, :rodne_meno, :place
    list.sorting = {:priezvisko => "ASC"}
    #config.actions.exclude :create, :delete,
    #columns[:name].label = "Name"
    columns[:place].label = "Street"
    config.nested.add_link "Hrobové miesto", [:place]
   end
end

This works fine, but I would like to display some fields from place
model directly in listing, not model as a link only.

For example I display list of people and I want to display street,
postcode..etc from place model.

Thank you for your suggestions.

Regards
Jan
--~--~---------~--~----~------------~-------~--~----~
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