lib/governor/controllers/helpers.rb in governor-0.1.0 vs lib/governor/controllers/helpers.rb in governor-0.1.1

- old
+ new

@@ -3,9 +3,13 @@ module Helpers def resources_url url_for :controller => mapping.controller, :governor_mapping => params[:governor_mapping], :action => 'index' end + def new_resource_url + url_for :controller => mapping.controller, :governor_mapping => params[:governor_mapping], :action => 'new' + end + def edit_resource_url(resource) url_for :controller => mapping.controller, :governor_mapping => params[:governor_mapping], :action => 'edit', :id => resource.id end def resource \ No newline at end of file