yhirano55

Results 7 issues of yhirano55

## Problems 現状だと直接S3にアクセスするので、CDNを前段に置きたいのだが、 `polymorphic_path(@user.avatar, host: CDN_HOST)` でいけるのかどうか検証したいところ。

I have refactored: - Common options were grouped by `with_options`. - Hash syntax was changed to Ruby 1.9 style from `=>` style.

With Turbolinks 5, if it doesn't add `data-turbolinks-eval="false"` to script tag, script is evaluated many times (each per pages loading). So I've fixed it.

When hash[key] is nil, then it raise `NoMethodError` in `#format_data` method. So I've fixed it, and in addition tiny refactoring.