Created
October 18, 2013 18:13
-
-
Save julioprotzek/7045711 to your computer and use it in GitHub Desktop.
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
@import "bootstrap" | |
body | |
margin-top: 60px |
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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' | |
# Use Uglifier as compressor for JavaScript assets | |
gem 'uglifier', '>= 1.3.0' | |
# Use CoffeeScript for .js.coffee assets and views | |
gem 'coffee-rails', '~> 4.0.0' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', platforms: :ruby | |
# Use jquery as the JavaScript library | |
gem 'jquery-rails' | |
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | |
gem 'turbolinks' | |
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | |
# gem 'jbuilder', '~> 1.2' | |
gem 'simple_form' | |
gem 'slim-rails' | |
gem 'xray-rails', group: :development |
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
h1 Artigos | |
table.table.table-striped | |
thead | |
tr | |
th Title | |
th Published at | |
th | |
tbody | |
- @articles.each do |article| | |
tr | |
td = article.title | |
td = l article.published_at | |
td | |
.btn-group.pull-right | |
= link_to 'Show', article, class: 'btn btn-default btn-sm' | |
= link_to 'Edit', edit_article_path(article), class: 'btn btn-default btn-sm' | |
= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete, class: 'btn btn-default btn-sm' | |
br | |
= link_to 'New Article', new_article_path, class: 'btn btn-primary' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment