Commit 82a818467f1da754010ca8fcfff2ccc0faaffa0d
- Date: Sun May 11 19:31:39 +0000 2008
- Committer: Simon Lundström (simon@soy.se)
- Author: Simon Lundström (simon@soy.se)
- Commit SHA1: 82a818467f1da754010ca8fcfff2ccc0faaffa0d
- Tree SHA1: 2753e6bc17ca76eaee85fc0d60079a4f27908811
* Some usage documentation
Commit diff
| |   |
| 1 | 1 | merb_is_mobile |
| 2 | 2 | ============== |
| 3 | 3 | |
| 4 | | A plugin for the Merb framework that provides ... |
| 4 | A plugin for the Merb framework that provides ... |
| 5 | |
| 6 | |
| 7 | == Usage |
| 8 | |
| 9 | In your model class, include MerbIsMobile: |
| 10 | class MyModel |
| 11 | include ::MerbIsMobile |
| 12 | end |
| 13 | |
| 14 | And in your controller, select which mime-types that you want to provide with: |
| 15 | - provides |
| 16 | - only_provides |
| 17 | |
| 18 | class Foo < Merb::Controller |
| 19 | provides :xhtmlmp, :wml |
| 20 | end |
| toggle raw diff |
--- a/README
+++ b/README
@@ -1,4 +1,20 @@
merb_is_mobile
==============
-A plugin for the Merb framework that provides ...
\ No newline at end of file
+A plugin for the Merb framework that provides ...
+
+
+== Usage
+
+In your model class, include MerbIsMobile:
+ class MyModel
+ include ::MerbIsMobile
+ end
+
+And in your controller, select which mime-types that you want to provide with:
+- provides
+- only_provides
+
+ class Foo < Merb::Controller
+ provides :xhtmlmp, :wml
+ end |