I'm building a rails-backed ember.js application. My main application.hbs file has a "logout" link in there and I want to make this link use the :delete method (I'm using devise to handle authentication). What I can't decide is how to output a link from a rails route. I've got all my ember routes defined in javascript, but how can I get the delete URL into handlebars?
= link_to 'Logout', app.destroy_user_session_path, method: :delete
I'd like to pass in some configuration options (urls and the like) from Rails into my Ember.Application instatiation:
window.App = Ember.Application.create()
How can I accomplish this?