Skip to content

Instantly share code, notes, and snippets.

View andrellima's full-sized avatar

André Lima andrellima

View GitHub Profile
-javascript 'post'
= simple_form_for(@post) do |f|
= render 'shared/error_messages', :target => @post
.inputs
= f.input :title
= f.input :sequence
= f.input :description, :input_html => {:rows =>5}
= f.simple_fields_for :sections do |section_f|
-javascript 'post'
= simple_form_for(@post) do |f|
= render 'shared/error_messages', :target => @post
.inputs
= f.input :title
= f.input :sequence
= f.input :description, :input_html => {:rows =>5}
= f.simple_fields_for :sections do |section_f|
-javascript 'post'
= simple_form_for(@post) do |f|
= render 'shared/error_messages', :target => @post
.inputs
= f.input :title
= f.input :sequence
= f.input :description, :input_html => {:rows =>5}
= f.simple_fields_for :sections do |section_f|
$brightaqua: #82D4C9
$green: #023B30
$logo: #07886F
$darkbrown: #3B1000
$rust: #882A07
$pale: #F2F2F2
@import compass/utilities
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
if [[ -n "$PS1" ]]; then
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
if [[ -n "$PS1" ]]; then
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
source 'http://rubygems.org'
## Bundle rails:
gem 'rails', '3.0.1'
gem "activemerchant", '1.7.2'#, :lib => 'active_merchant'
gem 'acts_as_tree', :git => 'git://github.com/parasew/acts_as_tree.git'
gem 'authlogic', "2.1.5"
gem 'cancan'#, '1.3.2'
gem 'compass', ">= 0.10.5"
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| id | int(11) | YES | UNI | NULL | |
| code | char(2) | NO | PRI | NULL | |
| code3 | char(3) | YES | | NULL | |
| numcode | smallint(6) | YES | | NULL | |
| url | varchar(50) | NO | MUL | NULL | |
| name | varchar(50) | NO | UNI | NULL | |
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
if [[ -n "$PS1" ]]; then
[[ -s "$HOME/andre/.rvm/src/rvm/scripts/rvm" ]] && . “$HOME/andre/.rvm/src/rvm/scripts/rvm"
fi
def requisicao_empresa(request):
empresa = Empresa.objects.all()
t = loader.get_template("empresa.html")
c = Context({'empresa' : empresa })
return HttpResponse(t.render(c))
<h2>{{ empresa.titulo }}</h2>
<p>{{ empresa.texto }}</p>
<p>{{ empresa.imagem }}</p>