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
abstract (1.0.0) | |
actionmailer (2.3.2, 2.2.2, 2.1.0) | |
actionpack (2.3.2, 2.2.2, 2.1.0) | |
activerecord (2.3.2, 2.2.2, 2.1.0) | |
activeresource (2.3.2, 2.2.2, 2.1.0) | |
activesupport (2.3.2, 2.2.2, 2.1.0) | |
addressable (2.0.1) | |
authlogic (2.0.5, 1.4.3) | |
builder (2.1.2) | |
capistrano (2.5.3, 2.5.0, 2.4.3) |
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
module Imoby | |
class FormBuilder < ActionView::Helpers::FormBuilder | |
(field_helpers - %w(label check_box radio_button fields_for form_for hidden_field radio_sym select_sym)).each do |selector| | |
src = <<-end_src | |
def #{selector}(method, options = {}) | |
make_default_template method, | |
@template.send(#{selector.inspect}, @object_name, method, objectify_options(options)) | |
end | |
end_src |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /home/cairo/Workspace/freakauth/ | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /home/cairo/Workspace/freakauth/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All |
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
#Usage with CodeIgniter | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
#RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] | |
</IfModule> | |
<IfModule !mod_rewrite.c> |
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
'User remembers me until one week' FAILED | |
expected: Sat, 29 Nov 2008 17:22:51 UTC +00:00, | |
got: Sat, 29 Nov 2008 17:22:51 UTC +00:00 (using ==) | |
spec/models/user_spec.rb:225: | |
spec/models/user_spec.rb:8: |
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
cairo@lt:~/Workspace/cake/test$ phpunit --testdox AllTests.php | |
PHPUnit 3.3.2 by Sebastian Bergmann. | |
Generate | |
[x] Create a welcome controller | |
[x] If content of welcome controller is welcome class | |
[x] Create a user controller | |
[x] Create a user controller and index view | |
[x] If content of user controller is user class | |
[x] If create a index method in welcome controller |
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
<html> | |
<head> | |
<title>Welcome to CodeIgniter</title> | |
<style type="text/css"> | |
body { | |
background-color: #fff; | |
margin: 40px; | |
font-family: Lucida Grande, Verdana, Sans-serif; | |
font-size: 14px; | |
color: #4F5155; |
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
class SkatingContest | |
def o_vencedor; @o_vencedor; end | |
def o_vencedor=( nome ) | |
unless nome.respond_to? :to_str | |
raise ArgumentError, "O nome do vencedor deve ser uma String, | |
não um prooblema matemático ou uma lista de nomes ou qualquer ou | |
coisa parecida." | |
end | |
@o_vencedor = nome | |
end |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title> Titulo </title> | |
</head> |