Skip to content
No description, website, or topics provided.
Ruby CSS JavaScript CoffeeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

README

This repo is a simple demonstration how to use devise with a Single Page App.

Conceptually, the Devise views are one modules, while posts/index.html could represent a JS SPA.

posts/index.html is available to anyone, but all it does is initializing some JS. The JS code tries to GET data (ajax) from /posts/index.json. This action has “authorize_user!” in it, so it returns error code. The 'error' ajax callback redirects to “users/sign_in”. After logging in, all works fine, thanks to cookies.

You can’t perform that action at this time.