Hi, i was looking for right here and i have nothing and thats why i
open this thread.

See, I have two tables "supplier" and "products"

Supplier:

class Supplier < ActiveRecord::Base

     has_many :products

end

Products:
class Products < ActiveRecord::Base

belongs_to :supplier

end

And in my controller products, i have this:

class ProductoController < ApplicationController

active_scaffold :producto do |config|
    config.label = "Products"

    config.columns = [:name, :price, :supplier]
    list.sorting = {:nombre => 'ASC'}
    end

end


And works great, but i want to select in :supplier choose one field i
want, because when show me the list show me the field call "web site"
but i want show the name of supplier in that list and i dont know why?

Hope you understand me

Thanks!

-- 
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