github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jonleighton / default_templates

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Allows a "default" template to be used for any given action in a Rails app — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Initial import 
jonleighton (author)
Wed Sep 03 04:31:04 -0700 2008
commit  ecd0caf16065c1f2c198c0fe78e914fd5e2a7e8f
tree    cc032f744fd90f737192369d65cfc6d949ca6935
default_templates /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.textile
file Rakefile
file init.rb
file install.rb
directory lib/
directory spec/
directory tasks/
file uninstall.rb
README.textile

Default Templates

This is a Rails plugin which allows you to specify a default template for a specific
action. For example, if we are rendering the “new” action for a “tasks” controller,
the plugin will look for app/views/tasks/new. If that template does not exist, it will
look for app/views/defaults/new instead.

(My new and edit templates just contain render :partial => "form", so this plugin
removes some clutter for me.)

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server