How to Call Class Methods
===

I'm completely new to Ruby, and I've been banging my head on what should be a stupidly easy problem for a while.

I'm starting off with a simple blog application (the one from the Ruby on Rails documentation), and I'm trying to augment it so that users can email posts. I have an email method in the post class working just fine, I'm just having a hard time calling it when a user clicks a link/button.

I realize that this isn't JavaScript and I can't just use an onclick. Perhaps one idea is to route to a link like blog/posts/2/email, but I don't even know where to start with that, and I wouldn't be surprised if there was a simpler approach.

Can someone please help a noob out?