Created
October 18, 2013 18:52
-
-
Save julioprotzek/7046282 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
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 | |
gem 'start' |
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 Título | |
th Publicado em | |
th | |
tbody | |
- @articles.each do |article| | |
tr | |
td = article.title | |
td = l article.published_at | |
td | |
.btn-group.pull-right | |
= link_to 'Ver', article, class: 'btn btn-default btn-sm' | |
= link_to 'Editar', edit_article_path(article), class: 'btn btn-default btn-sm' | |
= link_to 'Excluir', article, :confirm => 'Tem certeza?', :method => :delete, class: 'btn btn-default btn-sm' | |
br | |
= link_to 'Criar Artigo', new_article_path, class: 'btn btn-primary' |
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
pt-BR: | |
simple_form: | |
yes: Sim | |
no: Não | |
required: | |
text: obrigatório | |
mark: "*" | |
# You can uncomment the line below if you need to overwrite the whole required html. | |
# When using html, text and mark won't be used. | |
# html: "<abbr title="required">*</abbr>" | |
error_notification: | |
default_message: "Por favor, corrija os problemas abaixo:" | |
# Labels and hints examples | |
labels: | |
defaults: | |
password: Senha | |
name: Nome | |
article: | |
title: Título | |
body: Texto | |
published_at: Publicado em | |
# hints: | |
# defaults: | |
# password: 'Mínimo de 8 caracteres.' | |
# placeholders: | |
# defaults: | |
# name: 'Nome' | |
# password: '****' | |
helpers: | |
submit: | |
create: 'Criar' | |
update: 'Editar' | |
article: | |
create: 'Criar artigo' | |
update: 'Editar artigo' |
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
bundle | |
rails g start:locales | |
rails s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment