I\'m trying to write a Rails controller method that will respond to get requests made both \"normally\" (e.g. following a link) and via ajax.
Normal Case: The controller
If you're using a new version of rails you can just append .js onto the path and it will infer that the request is a JavaScript call