Home

seven1m edited this page Sep 14, 2010 · 4 revisions
Clone this wiki locally

Install

script/plugin install git://github.com/seven1m/simple_restful_openid.git

Usage

script/generate simple_restful_openid

Now, tweak the app/controllers/sessions_controller.rb and app/views/sessions/new.html.erb to your liking.

You may also want to add something like this to your main layout:

<% if session[:url] %>
  <%=h session[:url] %>
  (<%= link_to 'sign out', session_path, :method => :delete %>)
<% else %>
  <%= link_to 'sign in', new_session_path %>
<% end %>

Once you run the code generator, you can delete the plugin like this:

rm -rf vendor/plugins/simple_restful_openid