app/controllers/elt_controller.rb in parlement-0.3 vs app/controllers/elt_controller.rb in parlement-0.4

- old
+ new

@@ -16,16 +16,12 @@ render :layout => 'top' # TODO rescue ActiveRecord::RecordNotFound => e flash[:error] = "Element '#{params[:id]}' does not exist" + headers["Status"] = "301 Moved Permanently" redirect_to '/' end - - #def show - # @elt = Elt.find(params[:id]) if @elt == nil - # render :partial => 'show' - #end def list @elt = Elt.find(params[:id]) if @elt == nil render :partial => '/elt/list', :locals => { :elt => @elt } end