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
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
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
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/aplicacao | |
passenger_enabled on; | |
} |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
#!/usr/bin/env ruby | |
puts "<pre>#{%x[rake routes]}</pre>" |
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
#<YouTubeG::Model::Video:0x22546c4 | |
@media_content=[#<YouTubeG::Model::Content:0x2291510 | |
@default=true, | |
@format=#<YouTubeG::Model::Video::Format:0x20399c0 | |
@format_code=5, | |
@name=:swf>, | |
@url="http://www.youtube.com/v/fkuYr9xBFB0?f=videos&app=youtube_gdata", | |
@duration=53, | |
@mime_type="application/x-shockwave-flash">, #<YouTubeG::Model::Content:0x2291038 | |
@default=false, |
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
it "should redirect to login path without authenticated" do | |
get :index | |
response.should redirect_to(new_user_session_url) | |
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
describe PostController | |
describe "GET index" do | |
it "should redirect to login path without authenticated" do | |
get :index | |
response.should redirect_to(new_user_session_url) | |
end | |
end | |
end |