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