Skip to content

Instantly share code, notes, and snippets.

View hosh's full-sized avatar

Ho-Sheng Hsiao hosh

  • Remine
  • Phoenix, AZ
View GitHub Profile
@hosh
hosh / example1.rb
Created August 26, 2011 18:15 — forked from defunkt/gist:2059
def explain!
puts 'Want to embed this Gist?'
puts 'Use this: <script src="http://gist.github.com/2059.js"></script>'
end
explain!
#!/usr/bin/env ruby
def hello_loop(names)
names.each do |name|
puts "Hello #{name}"
end
end
hello_loop(%w(
Gafitescu
ActionController::Routing::Routes.draw do |map|
map.root :controller => :home, :action => :index
map.resources :servicios
map.resources :nosotros
#map.servicios '/servicios/consultorias', :controller => 'servicios', :action => 'consultoria'
map.connect "/servicios/:action", :controller => "servicios"
end