Hi, i want to thank by your help but i want to show you my model, is
like this:

class Supplier < ActiveRecord::Base
has_many :products

  def to_label
    "Proveedor: #{empresa}"
        "Proveedor: #{contacto}"
        "Proveedor: #{cargo}"
        "Proveedor: #{direccion}"
        "Proveedor: #{ciudad}"
        "Proveedor: #{cod_postal}"
        "Proveedor: #{pais}"
        "Proveedor: #{telefono}"
        "Proveedor: #{fax}"
        "Proveedor: #{pagina_web}"

  end

But the problem i have is this look at the picture
http://iv.pl/images/57335082456058253188.jpg and look this too
http://iv.pl/images/65897296375220294203.jpg if you see when it show
me the name of company to delete or edit, show me the "web site"
field, and i dont want it show me that, i want it show me the name of
company. I do not want to show random fields.

Hope you understand me!

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