IN ESSENCE: ALL CODE SHOULD BE READABLE!# DO NOT OPTIMISE for performance - OPTIMISE FOR CLARITY OF CODE# STYLE: use 2 spaces for indent (not tabs)# STYLE: Line up hash arrows for readability# STYLE: put spaces around => hash arrows# STYLE: put spaces after ',' in method params - but none between method names and … Continue reading Rails Coding Standards
Month: May 2009
High Performance Rails Hosting
There are lot of rails hosting, like wired tree,..., i am still in search of cost effective and high performance hosting. recently i came across with joyent rails hosting, please let me know your opinions..Scale on DemandYour rails infrastructure can be dynamically expanded or reduced within minutes. Support Billions of HitsThe largest ruby on rails … Continue reading High Performance Rails Hosting
Awesome: Working with the Rails console and all the tricks
Testing your active record methods using script/consoleIf you are using windows, you start the console by using this command:ruby script\consoleLinux:./script/consoleJust use the following command whenever you make changes to your model objects:reload!Instead of accessing your MySQL database withmysql -u -pYou can instead doscript/dbconsoleand if you database has a password, just doscript/dbconsole -p% script/dbconsole # connect … Continue reading Awesome: Working with the Rails console and all the tricks
