On Martes, 2 de Junio de 2009 16:38:23 JannaB escribió: > Mr Banabas, No, that doesn;t do anything here. That just leaves me now > with a text field to input an integer. If I do > config.columns[:status_id].form_ui = :select > if at least gives me a select box (though, there are no values in it)
Probably you have removed status from config.columns, and added status_id to config.columns But you must use config.columns[:status].form_ui = :select, you mustn't use the foreign keys in config.columns > > On Jun 2, 10:17 am, "[email protected]" > > <[email protected]> wrote: > > I would give the following a try: > > config.columns[:status].form_ui = :select > > > > On Jun 2, 3:23 pm, JannaB <[email protected]> wrote: > > > 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. > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
