Skip to content

Instantly share code, notes, and snippets.

View julioprotzek's full-sized avatar
🖖
Live long and prosper

Julio Protzek julioprotzek

🖖
Live long and prosper
View GitHub Profile
= simple_form_for(@category) do |f|
= f.error_notification
.form-inputs
= f.input :name
.form-actions
= f.button :submit, class: 'btn btn-primary'
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'
h1 Editar artigo
== render 'form'
- if notice
.alert.alert-info.alert-dismissable
button type="button" class="close" data-dismiss="alert" aria-hidden="true" ×
= notice
h1
= @article.title
.pull-right
= link_to 'Edit', edit_article_path(@article), class: 'btn btn-default'
= simple_form_for(@article) do |f|
= f.error_notification
.form-inputs
= f.input :title
= f.input :body
= f.input :published_at
.form-actions
= f.button :submit, class: 'btn btn-primary'
p#notice = notice
h1
= @article.title
.pull-right
= link_to 'Edit', edit_article_path(@article), class: 'btn btn-default'
hr
p = @article.published_at
= simple_format @article.body
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'
doctype html
html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
title Paporeto
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
= csrf_meta_tags
/[if lt IE 9]
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true
doctype html
html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
title Paporeto
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
= csrf_meta_tags
/[if lt IE 9]
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true