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
-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| |
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
-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| |
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
-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| |
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
$brightaqua: #82D4C9 | |
$green: #023B30 | |
$logo: #07886F | |
$darkbrown: #3B1000 | |
$rust: #882A07 | |
$pale: #F2F2F2 | |
@import compass/utilities |
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
# 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. |
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
# 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. |
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 '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" |
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
+-----------+-------------+------+-----+---------+-------+ | |
| 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 | | |
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
# 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 |
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
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> |
OlderNewer