Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
facc9e3
commit ecb92a1
Showing
14 changed files
with
339 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ class ApplicationController < ActionController::Base | |
protect_from_forgery | ||
|
||
respond_to :json, :html, :xml | ||
|
||
end |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h2> | ||
|
||
Editing post | ||
<%=t ".title" %> | ||
<%= link_to "Preview", [:admin, @post], | ||
:class => "button right", | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<h2>New post</h2> | ||
<h2><%=t ".title" %></h2> | ||
|
||
<%= render 'form' %> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%= image_tag "banner.jpg", :class => "frame" %> | ||
|
||
<div id="content"> | ||
<div id="column1"> | ||
<h2>Quem já utiliza Rails?</h2> | ||
<p>Dezenas de centenas de aplicações Rails já estão rodando em todo o mundo. Pessoas estão utilizando o Rails em diversas situações, desde pequena operações pequenas até gigantes corporações.</p> | ||
</div> | ||
|
||
<div id="column2"> | ||
<h2>Quem está por trás?</h2> | ||
<p>Rails foi criado em 2003 por David Heinemeier Hansson e desde então foi expandido pelo time central do Rails, mais de 1.400 contribuidores e suportado por um vibrante ecossistema.</p> | ||
</div> | ||
</div> |
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Sample localization file for English. Add more files in this directory for other locales. | ||
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. | ||
|
||
en: | ||
empty: "We don't have any %{collection} yet." | ||
confirm: Are you sure? | ||
edit: Edit | ||
destroy: Destroy | ||
new: Create %{model} | ||
cancel: Cancel | ||
error_message_header: "%{count} error(s) prohibited this %{model} from being saved:" | ||
|
||
admin: | ||
posts: | ||
new: | ||
title: New post | ||
edit: | ||
title: Editing post | ||
form: | ||
categories: Publish with these categories | ||
slug: Set a custom url | ||
author: "Post by:" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pt-BR: | ||
empty: "Não temos nenhum %{model} ainda." | ||
confirm: Tem certeza? | ||
edit: Editar | ||
destroy: Apagar | ||
cancel: Cancelar | ||
new: Criar %{model} | ||
error_message_header: "%{count} erro(s) impediram este %{model} de ser gravado:" | ||
|
||
admin: | ||
posts: | ||
new: | ||
title: Novo post | ||
edit: | ||
title: Editando post | ||
form: | ||
categories: Publicar com estas categorias | ||
slug: Defina uma url | ||
author: "Post por:" | ||
|
||
activerecord: | ||
models: | ||
user: | ||
one: Usuário | ||
other: Usuários | ||
category: | ||
one: Categoria | ||
other: Categorias | ||
post: | ||
one: Post | ||
other: Posts | ||
|
||
attributes: | ||
post: | ||
title: "Título" | ||
body: "Conteúdo" | ||
excerpt: "Resumo" | ||
published_at: "Publicado em" | ||
slug: "Url customizada" | ||
author: "Autor" | ||
draft: "Rascunho" |
Oops, something went wrong.