I found the following link very helpful in getting a better handle on
AS:
http://www.ibm.com/developerworks/linux/library/l-activescaffold/
On another point, in the wiki docs, for Form Overrides, an example is
shown for a checkbox as well as a date select (code from the wiki is
duplicated below). Can anyone show the syntax necessary for other GUI
controls like radio buttons, listboxes, comboboxes, etc? This would be
most helpeful. -Janna
module UserHelper
# display the "is_admin" field as a checkbox instead of a dropdown
def is_admin_form_column(record, input_name)
check_box :record, :is_admin, :name => input_name
end
def date_received_form_column(record, input_name)
# with date_select we can use :name
date_select :record, :date_received, :name => input_name
# but if we used select_date we would have to use :prefix
#select_date record[:date_received], :prefix => input_name
end
end
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---