It won't make it easy to read, but...
If the url loads #new_div, it probably won't be available the first time this code is executed and the click event won't be bound to the...
rescue should only be used for exceptional events, not if you have a nil object. Use the try method or the || operator for most cases
https://www.ruby-toolbox.com/categories/state_machinesVery helpful when dealing with models that have different states and transitions between states.
Time.now.strftime('%Y-%m-%d_%H-%M-%S')This will output something like:'2014-12-16_17-42-49'which is suitable for adding to a filename
This returns the version of jQuery you are using$.fn.jquery
You can (fairly) easily create a realtime chat in your app. And they have a Heroku addon:https://devcenter.heroku.com/articles/pusher
There currently isn't a google hangout API, but you can create a permanent google hanout link. Create a Google Plus event and select create hangout. If you set the event far in the future, the...