On Martes, 2 de Junio de 2009 15:23:23 JannaB escribió: > I have the following models: > > class Status < ActiveRecord::Base > has_many :customers > end > > class Customer < ActiveRecord::Base > belongs_to :status > end > > Then, in : > > class CustomersController < ApplicationController > before_filter :require_associate > > active_scaffold :customer do |config| > config.columns[:status_id].form_ui = :select > ... > end > > And I never get the select. Not for the status_id. or the id's into > any other tables. I have also tried ui_type, and again, nothing.
You must set the form_ui in association column (status), not in foreign key. > > Am I doing something blatantly wrong that I cannot seem to get this to > work? Thanks, Janna > -- Sergio Cambra .:: entreCables S.L. ::. Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
