This file contains hidden or 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
:models: | |
user: | |
:associations: | |
- has_and_belongs_to_many~studios | |
- belongs_to~role | |
:fields: | |
- name-string | |
- gender-string | |
role: | |
:associations: |
This file contains hidden or 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
# rails new maverick -m https://raw.github.com/gist/4126950/ -d mysql | |
# rake rails:template LOCATION=https://raw.github.com/gist/4126950/ | |
# <------ Pre-requisits ------> | |
# Setting current directory (for loading the yml config file) | |
@current_dir = Dir.pwd.gsub("/#{app_name}", "") | |
def ask_wizard(question) | |
ask "\033[1m\033[30m\033[46m" + "prompt".rjust(10) + "\033[1m\033[36m" + " #{question}\033[0m" | |
end |