Rails for PHP Developers

http://derickrethans.nl/talks.php dr@ez.no We delete cookies in PHP by setting an expiry date. In Rails, we remove a cookie using the method to remove our chief ….

More PDF Content

We are quite familiar with writing SQL in PHP. While you are learning Rails, you may wonder how to query the database directly without using ActiveRecord objects. The short answer is that it’s possible but not a good idea. ActiveRecord uses callbacks hooks and validations to ensure that the data entering the database adheres to the rules assigned in our model classes. Accessing and querying the database directly will circumvent all the logic we’ve added to the model layer of our application.

Download Rails for PHP Developers pdf from media.pragprog.com, 16 pages, 396.7KB.