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
<!-- como veio no HTML --> | |
<ul class="pagination"> | |
<li><a href="#" class="inative">anterior</a></li> | |
<li><a href="#" class="active">1</a></li> | |
<li><a href="#">2</a></li> | |
<li><a href="#">3</a></li> | |
<li><a href="#">4</a></li> | |
<li><a href="#">5</a></li> | |
<li><a href="#">próximo</a></li> | |
</ul> |
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
APP: projeto | |
PRODUCTION_APP: projeto | |
STAGING_APP: projeto-staging |
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
<script src="/bower_components/jquery/jquery.min.js"></script> | |
<script src="/bower_components/angular/angular.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
bower update |
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
bower cloning git://github.com/angular/bower-angular.git | |
bower cached git://github.com/angular/bower-angular.git | |
bower fetching angular | |
bower cloning git://github.com/components/jquery.git | |
bower cached git://github.com/components/jquery.git | |
bower fetching jquery | |
bower checking out angular#v1.0.7 | |
bower copying /Users/digdin/.bower/cache/angular/ef2188def21eb1bbd1f1792311942a53 | |
bower checking out jquery#2.0.2 | |
bower copying /Users/digdin/.bower/cache/jquery/29cb4373d29144ca260ac7c3997f4381 |
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
bower install |
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
{ | |
"name": "meu-projeto", | |
"version": "0.0.0", | |
"dependencies": { | |
"jquery": "master", | |
"angular": "1.0.7" | |
} | |
} |
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
# Instala os pacotes definidos no bower.json do seu projeto | |
bower install | |
# Instala um pacote específico | |
bower install <package> | |
# Instala uma versão (git tag) de um pacote | |
bower install <package>#<version> |
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
npm install -g bower |
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
# admin/posts/_form.html.haml | |
= f.actions do | |
= f.action :submit, button_html: { onclick: 'this.form.target = "_self"; return true' } | |
= f.action :submit, label: 'Preview', button_html: { onclick: 'this.form.target = "_blank"; return true' } |