Mais conteúdo relacionado Semelhante a Ruby on rails (20) Ruby on rails1. Ruby on Rails
Mario Alberto Chávez
mario.chavez@decisionesinteligentes.co
m
http://mario-chavez.blogspot.com
18. # Output "I love Ruby"
say = "I love Ruby"
puts say Basado en
# Output "I *LOVE* RUBY"
say['love'] = "*love*"
el lenguaje
puts say.upcase
# Output "I *love* Ruby"
# five times
5.times { puts say }
45. Rutas
reviews GET /reviews(.:format) {:action=>"index", :controller=>"reviews"}
POST /reviews(.:format) {:action=>"create", :controller=>"reviews"}
new_review GET /reviews/new(.:format) {:action=>"new", :controller=>"reviews"}
edit_review GET /reviews/:id/edit(.:format) {:action=>"edit", :controller=>"reviews"}
review GET /reviews/:id(.:format) {:action=>"show", :controller=>"reviews"}
PUT /reviews/:id(.:format) {:action=>"update", :controller=>"reviews"}
DELETE /reviews/:id(.:format) {:action=>"destroy", :controller=>"reviews"}
48. Gracias
¿Preguntas?
Mario Alberto Chávez
mario.chavez@decisionesinteligentes.
com
http://mario-chavez.blogspot.com