hgtesta (owner)

Revisions

gist: 123202 Download_button fork
public
Description:
Template do Rails
Public Clone URL: git://gist.github.com/123202.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
1 - Adicionar como comentário em pt-br.yml:
-------------------------------------------
  %a - The abbreviated weekday name (``Sun'')
  %A - The full weekday name (``Sunday'')
  %b - The abbreviated month name (``Jan'')
  %B - The full month name (``January'')
  %c - The preferred local date and time representation
  %d - Day of the month (01..31)
  %H - Hour of the day, 24-hour clock (00..23)
  %I - Hour of the day, 12-hour clock (01..12)
  %j - Day of the year (001..366)
  %m - Month of the year (01..12)
  %M - Minute of the hour (00..59)
  %p - Meridian indicator (``AM'' or ``PM'')
  %S - Second of the minute (00..60)
  %U - Week number of the current year,
          starting with the first Sunday as the first
          day of the first week (00..53)
  %W - Week number of the current year,
          starting with the first Monday as the first
          day of the first week (00..53)
  %w - Day of the week (Sunday is 0, 0..6)
  %x - Preferred representation for the date alone, no time
  %X - Preferred representation for the time alone, no date
  %y - Year without a century (00..99)
  %Y - Year with century
  %Z - Time zone name
  %% - Literal ``%'' character
 
 
2 - Criar .gitignore com:
*.log
*.sqlite3
tmp/*
.DS_Store
 
 
3 - Criar receita do capistrano no dreamhost / infovoto
 
 
4 - Correção para o erros no Rails 2.3+ (arquivo field_error_proc_fix.rb)
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  "<span class=\"fieldWithErrors\">#{html_tag}</span>"
end
 
 
5 - Adicionar Plugins
   - delocalize
   - HAML
 
6 - Adicionar arquivo pt-BR e configurar no environment.rb o pt-BR como padrão