# Binary
$ rails generate migration AddImageDataToPhotos image_data:binary
# Boolean
$ rails generate migration AddIsActiveToUsers is_active:boolean
# Date
First, kau kena familiarkan diri dengan 3 servis AWS ni
- BEANSTALK (EB), untuk host kau punya website
- ROUTE 53, untuk beli domain dan routing
- EC2, ini kau punya VMWare, semua file ada dalam ni. Ini server Linux kau, ibarat kau punya Windows/Linux cuma takda desktop
Dalam EC2, ada Beanstalk. Beanstalk ni anak buah dia.
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
module ApplicationHelper | |
# Most commonly used. | |
# If you have a ROUTE of :admin_home or admin_home_path, | |
# | |
# <li <%= set_active_if_path(admin_home_path) %>> | |
# <%= link_to :admin_home do %> | |
# <i class="fa fa-home"></i> <span>Dashboard </span> | |
# <% end %> | |
# </li> |
This is from create