Fix block handling in link_to helper

Originally from yarbro's fork: https://github.com/yarbro/meta_events
Merge pull request #13 from myhobnob/fix-link-to-block

Fix block handling in link_to helper