Resources :as
Sunday, June 28th, 2009map.resources :people
generates URLs like:
/people/
map.resources :people, :as => ‘who-we-are’
/who-we-are/
map.resources :people
generates URLs like:
/people/
map.resources :people, :as => ‘who-we-are’
/who-we-are/
adapter = User.connection.instance_variable_get(“@config”)[:adapter]
if adapter == “jdbc” # Oracle
# …
elsif adapter == “postgresql” # Postgres
# …
end
NZ on Screen won the Best Entertainment Website award at the 2009 Qantas Media Awards.
Ruby on Rails is a web development framework that promotes good programming practices while supporting rapid application development.
Ruby is a programming language developed in the mid 1990′s. Rails is an MVC (model view controller) framework.
References: