MySQL Dumping Cheat-Sheet
Make a quick dump of a mysql database: mysql_dump db_name > backup-file.sql You can then read that dump file back…
Achieving Developer Excellence with Automated Testing
Make a quick dump of a mysql database: mysql_dump db_name > backup-file.sql You can then read that dump file back…
operand what it does shift position of bits in Bignum and Fixnum ~ bitwise NOT (high-presendence) & bitwise AND (medium-presendence)…
Go to script/console to open ruby in interactive mode. script/console loads your environments (everything in environment.rb and all your plugin…
Using Mac ports sudo port install ImageMagick If you have an existing ImageMagick installed, you will get this error: Error:…
1) be sure to put in your environment file (inside your initializer) config.gem “paperclip” 2) make sure your form_form has…
Sometimes you’re in script/console and you make a change to your model files, but since Ruby on reads the models…
logger.debug WHAT_TO_OUTPUT ***** I think this syntax only works in controllers and outside of a controller you have to use…
A method defined on a model that ends with = is an assignment method, so when ActiveRecord is trying to…
When running Passenger (module for running Rails on Apache), the console log (output from puts) goes into the apache error…