adding changeset stuff for the data browser

This commit is contained in:
Shaun McDonald 2008-10-13 20:48:58 +00:00
parent cf24a5a3ee
commit 2c16177174
5 changed files with 73 additions and 0 deletions

View file

@ -112,4 +112,15 @@ class BrowseController < ApplicationController
render :action => "not_found", :status => :not_found
end
end
def changeset
begin
@changeset = Changeset.find(params[:id])
@title = "Changeset | #{@changeset.id}"
rescue ActiveRecord::RecordNotFound
@type = "changeset"
render :action => "not_found", :status => :not_found
end
end
end