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
$ current_user.build_setting(hoge: 'fuga') |
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
$ rails g migration AddHogeIdToUsers hoge_id:integer:index |
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
$ rails s -b $IP -p $PORT |
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
<div id="header" style="background.red;">header</div> | |
<div class="row"> | |
<divclass="col-sm-3" style="background:gray;">Side1</div> | |
<divclass="col-sm-6" style="background:green;">Main</div> | |
<divclass="col-sm-3" style="background:orange;">Side2</div> | |
</div> | |
<div id="footer" style="background:blue;">footer</div> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> |
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
<div id="header" style="background.red;">header</div> | |
<div class="row"> | |
<divclass="col-sm-3" style="background:gray;">Side1</div> | |
<divclass="col-sm-6" style="background:green;">Main</div> | |
<divclass="col-sm-3" style="background:orange;">Side2</div> | |
</div> | |
<div id="footer" style="background:blue;">footer</div> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> |
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
rails new myapp |