Thursday, August 21, 2008
A new project started.
I started a new project on Aug. 20, 2008.
The project is called resume generator which will automatically generate a resume based on your input data and export in various formats like pdf, txt, xml, etc.
The project is located at http://xianese.unfuddle.com
Database schema has been done. Here is the diagram.
Friday, August 1, 2008
The two purposes of Rails Routing
Rails Routing is defined in ./config/route.rb. Routings are actually a list of rules.
Routing has two purposes.
- Recognize URL: What to do when an URL like http://localhost:3000/myrecipes/applesis coming.
- Generate URL: What to create when Rails command like
link_to :controller=>'recipes',
:action=>'show',
:ingredient=>'apple'
is defined.
The static text is myrecipes.
The wildcard receptor is :ingredient which you can get by
params[:ingredient]
Subscribe to:
Posts (Atom)