This post originated from an RSS feed registered with PHP Buzz
by Mike Naberezny.
Original Post: Variable Arguments
Feed Title: Rails for PHP Developers
Feed URL: http://railsforphp.com/feed/
Feed Description: Rails for PHP Developers is about learning Ruby and Rails from a PHP developer's perspective.
Rails uses quite a few techniques to make the end-user API a little nicer when you’re creating your applications. One of these techniques is having a method accept variable arguments with a hash of options. We see this pattern appear in quite a few different areas of the Rails API, particularly in ActiveRecord and ActionView. [...]