Changeset [36e76f35b62860bec3f63c30177115778586b618] by Carl Lerche

September 29th, 2008 @ 09:10 PM

Added the #resource controller helper for URL generation.

The #resource controller helper is a convenience method for generating resource routes. It tracks the resource declarations in the router file and is able to generate URLs from only models passed as arguments. http://github.com/wycats/merb-co...

Committed by Carl Lerche

  • M lib/merb-core/controller/abstract_controller.rb
  • M lib/merb-core/dispatch/router.rb
  • M lib/merb-core/dispatch/router/behavior.rb
  • M lib/merb-core/dispatch/router/resources.rb
  • M lib/merb-core/dispatch/router/route.rb
  • M lib/merb-core/test/helpers/route_helper.rb
  • M spec/public/controller/resource_spec.rb
  • M spec/public/router/generation/params_spec.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »