Rails specifies standard conventions while creating models, controllers, migrations ( database tables ).Conventions for creating database tables1. Table name should be plural2. id field must be primary_key for table.3. foreign_key must be like <model_name>_id i.e. post_id, site_idConventions for creating models & Controllers1. Model name must be singular and controller name should be plural.Although rails have … Continue reading How to map irregular database tables with rails models
Month: October 2009
Getting wireless working on ubuntu machine
Please follow following steps blindly to get wireless working on ubuntu machine.Here are the steps...On a fresh clean Ubuntu machine:1. Disable the "Support for Atheros 802.11 wireless LAN cards" on Hardware Drivers, and reboot your box.2. In a terminal:2.1 Updates all package lists# sudo apt-get update2.2 Update driver.# sudo apt-get install linux-backports-modules-intrepid-generic3. Reboot.Thanks to Gautam, … Continue reading Getting wireless working on ubuntu machine
Feedzirra installtion on ubuntu interpid
Feedzirra is a feed library that is designed to get and update many feeds as quickly as possible. This includes using libcurl-multi through the taf2-curb gem for faster http gets, and libxml through nokogiri and sax-machine for faster parsing.sudo apt-get install libcurl3 libxml2 libxml2-dev libxslt1-devsudo gem install pauldix-feedzirra
