visit('/path')
visit(models_path)
visit(model_path(model))
visit '/path'
This file contains 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
Infamous 2 | |
Uncharted 3 | |
Bioshock 2 | |
Dante's Inferno | |
God of War 3 | |
Resistance 2 | |
Crysis 2 | |
Sports Champions | |
Dead Space | |
Super Street Fighter IV |
This file contains 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
# adicionando a gem | |
require 'rubygems' | |
require 'jsparrow' | |
# capturando os parametros de linha | |
$NOME = ARGV[0] if ARGV[0] | |
# parametrizando a conexao com o provider | |
JSparrow::Connection.configure do |connection| | |
connection.use_jms_client_jar '/Users/alan/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar' |
This file contains 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
# adicionando a gem | |
require 'rubygems' | |
require 'jsparrow' | |
# capturando os parametros de linha | |
$NOME = ARGV[0] if ARGV[0] | |
# parametrizando a conexao com o provider | |
JSparrow::Connection.configure do |connection| | |
connection.use_jms_client_jar '/Users/alan/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar' |
This file contains 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
require 'rubygems' | |
require 'mongo' | |
conn = Mongo::Connection.new | |
db = conn.db("meu_bd") | |
This file contains 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
# mongo_template.rb | |
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
# fork of banker's Rails MongoMapper Template (http://gist.github.com/219223) | |
# | |
# Uso: | |
# rails project_name -m "http://gist.github.com/307386.txt" | |
# removendo arquivos desnecessarios | |
run "rm public/index.html" | |
run "rm public/images/rails.png" |