added some erb to example file
defined a link_to method, useed application layout to avoid repeating yoruself