From 262f4e0c2abfefbd6965358fdfd9a8c332a38d57 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 7 Oct 2009 23:36:03 +0200 Subject: refactored revsions controller to act as a nested resource of nodes. boy that cleaned up some stuff quite a bit. also having tests for that is just feeling great --- app/views/revisions/diff.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/revisions/diff.html.erb') diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index 9428b7a..f7ad79c 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb @@ -1,11 +1,11 @@ <% content_for :subnavigation do %> - <%= link_to 'Edit', edit_node_path(@node) %> - <%= link_to 'Revisions', revision_path(params[:id]) %> + <%= link_to 'Edit', edit_node_path(@node) %> + <%= link_to 'Revisions', node_revisions_path(@node) %> <% end %>

Revisions#diff

-<% form_tag diff_revision_path do %> +<% form_tag diff_node_revisions_path do %> <%= select_tag :start_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:start_revision].to_i) %> <%= select_tag :end_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:end_revision].to_i) %> <%= submit_tag 'Diff' %> -- cgit v1.3