Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

Ruby on Rails


Configure DB connection
Lunedì 19 Gennaio 2009 21:48
If We need to tell Rails how to talk to the database we have to build a configuration file written in the YAML
format located in config/database.yml
  
 
It's very simple: 
 
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
 
 
Polishing Navigation
Lunedì 19 Gennaio 2009 21:38

Ruby on Rails is very famous in the web development world, because is simply clever !!

It's based on MVC architecture and has the capability to semplify all common pattern in web development.

 

For example for a proper navigation system, we shouldn’t link to the page that is currently displayed. This

is a very common pattern on websites. In this case, it comes out that

Rails provides a function for exactly what we want : link_to_unless_current:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 


Ricerca personalizzata