Hi Michael, Welcome to the community. Please create app/views/companies/index.dryml with this code:
<index-page> <collection: fields="name, address, state, state_id, actions"/> </index-page> This way you are modifying the collection to show the fields you specify, instead of the default ones. Please ask anything else you need! Warm regards, Ignacio El 24/10/14 a las #4, Michael B escribió: > Esteemed Hobo experts, > > I'm a new to working with Hobo. I would like to know how to have the > index page show foreign keyed columns as well. > > For instance, a table of companies. All of the columns that are not > foreign keys show up in the index page. I'd like to see the zipcode.name > etc. show up too. > > At my level, I can't quite comprehend the collection tag and how to > embellish its output. > > Please just give me a general idea and I'll be glad to chase it, that is > where the learning is! > > regards, > Michael Bonnet. > > > > class Company < ActiveRecord::Base > > hobo_model # Don't put anything above this > > fields do > # noinspection RubyArgCount > name :string > address :string > city :string > zip4 :string > county_name :string > uri :html > sales :integer > employees :integer > level :integer > timestamps > end > > attr_accessible :name, :address, :city, :zip4, :county_name, :uri, > :sales, :employees, :contacts, > :zipcode, :zipcode_id, :sic, :sic_id, :state, > :state_id, :county_id, :description > > acts_as_copy_target > > belongs_to :state > belongs_to :zipcode > belongs_to :county > belongs_to :sic > > has_many :contacts > has_one :description, :through => :sic > > # Hobo view helper > children :contacts > > > > -- > You received this message because you are subscribed to the Google > Groups "Hobo Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/hobousers. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/d/optout.
