Skip to content

Instantly share code, notes, and snippets.

View caironoleto's full-sized avatar
🎯
Focusing

Cairo Noleto caironoleto

🎯
Focusing
View GitHub Profile
<?php
function stylesheet_link_tag($source, $media = 'screen')
{
if (strpos($source, '.css'))
return '<link href="' .base_url() .'/public/stylesheets/' .$source .'" media="' .$media .'" rel="stylesheet" type="text/css" />';
return '<link href="' .base_url() .'/public/stylesheets/' .$source .'.css" media="' .$media .'" rel="stylesheet" type="text/css" />';
}
function javascript_include_tag($source) {
<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
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
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)
server {
listen 80;
server_name localhost;
root /var/www/aplicacao
passenger_enabled on;
}
#! /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
#!/usr/bin/env ruby
puts "<pre>#{%x[rake routes]}</pre>"
#<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,
it "should redirect to login path without authenticated" do
get :index
response.should redirect_to(new_user_session_url)
end
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