Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Updating README/TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Mar 14, 2010
1 parent ac7d3de commit 28cc463
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
3 changes: 1 addition & 2 deletions README
@@ -1,2 +1 @@
* You need to add the <%= twitter_connect_button %> to your sessions/new.html.erb
* You need to add the <%= twitter_connect_button %> to your users/new.html.erb
Use Twitter OAuth authentication on top of Clearance.
6 changes: 4 additions & 2 deletions TODO
@@ -1,2 +1,4 @@
Clean it up
Don't send an email
* Deny access scenario
* Right now, send_confirmation_email sends even for twitter users; it's okay since they don't have an email, but we still shouldn't send one.
* Make it easy to not use WebMock
* Clean up TODOs
5 changes: 1 addition & 4 deletions generators/clearance_twitter/clearance_twitter_generator.rb
Expand Up @@ -10,15 +10,12 @@ def manifest
end
m.insert_into 'app/controllers/application_controller.rb',
'helper :clearance_twitter'
# m.insert_into 'app/controllers/application_controller.rb',
# 'include ClearanceTwitter::Authentication',
# :after => 'include Clearance::Authentication'
m.insert_into 'config/routes.rb', 'ClearanceTwitter::Routes.draw(map)'
m.file 'sign_in_with_twitter.png', 'public/images/sign_in_with_twitter.png'
m.file 'twitter_auth.yml', 'config/twitter_auth.yml'
m.insert_into 'app/models/user.rb', "include ClearanceTwitter::LinkedUser",
:after => /include Clearance::User\s*$/
# m.readme "README"
m.readme "README"
end
end
end
9 changes: 3 additions & 6 deletions generators/clearance_twitter/templates/README
@@ -1,16 +1,13 @@

*******************************************************************************

Next:

1. Install and configure the facebooker plugin:
1. Configure your Twitter application OAuth key and secret:

script/plugin install git://github.com/mmangino/facebooker.git
config/twitter_auth.yml

2. Migrate:

rake db:migrate

3. Add calls to fb_connect_and_sign_up_button in your sign in and sign up forms.
3. Add calls to <%= twitter_connect_button %> in your sign in / sign up forms.

*******************************************************************************

0 comments on commit 28cc463

Please sign in to comment.