otters-2014/ottgur — pull request #35 by dbwieland18 (2014-04-06 15:11:49+00:00)
Title: ajaxed add favorite functionality

hey guys. This is working great, though I can't figure out why the color changes. I don't think it's a bad change, but maybe one of you can figure out why it happens. Otherwise, I think it's good to merge but I'll let one of you pull the trigger after checking it out.

SIDENOTE: in the process of doing this I figured out how to use a javascript_tag to pass ruby variables over to javascript. pretty cool. you can see it happening right in the image show page.