Better HN
topnewbestaskshowjobs
Log inSign up

fervisa

51 karma · joined Oct 6, 2014 (12y ago) · 7 submissions

Submissions

comment 12y ago · link · parent

Those are great news!

comment 12y ago · link · parent

The Rails unobtrusive adapter for jQuery jquery-ujs has a pretty neat implementation, you can take a look at it here https://github.com/rails/jquery-ujs/blob/master/src/rails.js...

comment 12y ago · link · parent

You're right, and the main reason why the article doesn't go deeper into SPAs is because talking about SPAs with Angular/Ember and Rails is a topic so wide it could be its own article. I tried keeping it short, mentioning common Rails' integration caveats.

comment 12y ago · link · parent

I usually test my Rails/Angular projects with jasmine-rails jasmine-jquery and Sinon.JS. These three together let you test virtually any frontend js code.

comment 12y ago · link · parent

Thanks for the heads-up, maybe I can do a follow-up article or add an update into this one to include ember-cli features.

comment 12y ago · link · parent

In fact, the article mentions in 6.2.2 one client-side solution to handle CSRF token by including it into the $httpProvider's headers.

7.

Rails JS frameworks: Ember.js vs. AngularJS(airpair.com ↗)

72 points · by fervisa · 12y ago · 49 comments