Every repository with this icon (
Every repository with this icon (
tree a95e6bee04cda9e599bb6cc3fab1b6b5fe72ad9e
parent 836107a0725f8e39d34d33ac37a3c20068a4f3b9
| name | age | message | |
|---|---|---|---|
| |
README.rdoc | Mon Aug 10 11:30:35 -0700 2009 | |
| |
Rakefile | Thu Aug 06 05:21:39 -0700 2009 | |
| |
app/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
config/ | Thu Aug 06 15:26:50 -0700 2009 | |
| |
db/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
doc/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
log/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
public/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
script/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
test/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
tmp/ | Thu Aug 06 05:21:39 -0700 2009 | |
| |
vendor/ | Thu Aug 06 05:21:39 -0700 2009 |
Simple Navigation Example
An example rails app using the simple_navigation gem
Requirements
- haml gem
- simple_navigation gem
- Rails 2.3.3
Install
Checkout the sources:
git clone git://github.com/mexpolk/simple_navigation_example.git
Install the required gems, from the command line run:
sudo gem install haml sudo gem install mexpolk-simple_navigation --source http://gems.github.com
Notes
What I did in this app:
- config/environment.rb: Configured simple_navigation gem
- config/initializers/simple_navigation.rb: This is where navigation menus (like the one you’re seeing right now) are configured.
- public/javascripts and public/style_sheets: Added some javascript and CSS (kind of messy, will fix it later) for the menu to work.
License
Copyright © 2008 Iván "Mexpolk" Torres
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.







