This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
n00b guide for RestfulX db model.yml
schmidt4brains edited this page Aug 14, 2010
·
3 revisions
A basic “I’m new to RestfulX and Rails, but not to Flex” page was missing, so I started one.
First off, you should familiarize yourself with basic Rails associations
db.yml | Flex model | Flex scaffold UI |
integer |
int |
TextInput (w/ validation) |
float |
Number |
TextInput (w/ validation) |
decimal |
Number |
TextInput (w/ validation) |
datetime |
Date |
DateTimeSelect |
timestamp |
Date |
DateTimeSelect |
time |
Date |
DateTimeSelect |
date |
Date |
DateSelect |
boolean |
Boolean |
CheckBox |
text |
String |
TextArea |
string |
String |
TextInput |
anything else | String |
TextInput |
- TODO: add table, w/ columns for SQL types
db.yml | Rails | Flex |
# The following special model.yml fields are supported.
#
# For example:
# attachment_field: [avatar]
# * arg takes Paperclip field name, or takes [uploaded_data] for Attachment_Fu
# belongs_to: [account, profile]
# has_many: [announcements, files, folders, users]
# has_many_through: [permissions, roles]
# * has_many :roles, :through => :permissions
# has_one: [suitcase]
# polymorphic: [commentable]
# tree_model: [parent]
# layout: [default]
# * default template is the only current theme, with more coming soon
# ignored_fields: [children_count, ancestors_count, descendants_count, position]
# * specify fields you don't want generated for your template
- TODO: add table