jhuckabee / backbone_devise Goto Github PK
View Code? Open in Web Editor NEWAn example Rails app that uses a Backbone.js UI for user signup, authentication, and password retrieval.
An example Rails app that uses a Backbone.js UI for user signup, authentication, and password retrieval.
I ran into an issue described here
Sign in, then out, then back in fails because the csrf token has expired (or something). I noticed you solved this by signing out using :get in your devise.rb initializer. Which is described as being a bad idea here:
http://stackoverflow.com/questions/941594/understand-rails-authenticity-token
I was wondering if you have found a more secure method, as suggested in the SO question?
Overriding and passing a new token each request seems like the best idea. Though, I am still unsure the best way to go about implementing it.
P.S.
Cheers, for this project. It is the best example of how to interact with Devise over json that I could find.
Hi Josh,
Thanks for this, I am reasonaby comfortable with Backbone now, just moving onto Marionette and this seems to be a great project to pick apart to learn it.
Just curious as to why when I delete out the javascript and css from /public/assets, all the login functionality stops working.
Work when it is in there, fails when it is gone.
I am trying various things, such as including all the required js files from a ./utils folder in /assets/javascripts but no joy.
I can't see how some of the files such as ( I changed to coffeescript)
are being included.
There seems to be no gems that load these into the asset pipeline.
I am missing something obvious I think.
Any thoughts/suggestions?
Cheers,
Luke
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.