Created
October 24, 2012 12:03
-
-
Save buk/3945707 to your computer and use it in GitHub Desktop.
This is my formotion code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SettingsController < Formotion::FormController | |
include SettingsForm | |
def init | |
form = get_settings_form | |
super.initWithForm(form) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SettingsForm | |
def get_settings_form | |
form = Formotion::Form.new | |
form.build_section do |section| | |
section.title = "Title" | |
end | |
section.build_row do |row| | |
row.title = "Label" | |
row.subtitle = "Placeholder" | |
row.type = :string | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment