README.md in opensesame-0.2.0 vs README.md in opensesame-0.3.0
- old
+ new
@@ -9,11 +9,13 @@
## Usage
In your Gemfile:
- $ gem "opensesame"
+```ruby
+gem "opensesame"
+```
Register your application(s) with Github for OAuth access. For each application, you need a name, the site url,
and a callback for OAuth. The OmniAuth-Github OAuth strategy used under the hood will expect the callback at mount path + '/github/callback'. So the development version of your client application might be registered as:
Name: MyApp - local
@@ -33,19 +35,17 @@
config.organization 'challengepost'
config.mounted_at '/opensesame'
end
```
-Mount OpenSesame in your Rails routes.rb:
+Mount OpenSesame in your Rails routes:
```ruby
# Rails config/routes.rb
-
mount OpenSesame::Engine => OpenSesame.mount_prefix
```
-Place the following into your appplication_contrrollerb.rb:
+Place the following in your application_controller:
```ruby
before_filter :authenticate_opensesame!
```
-