Commit 90e53a2d authored by Josh Proehl's avatar Josh Proehl
Browse files

Minor leftover tweaks.

parent 5669f1d8
......@@ -25,6 +25,7 @@ class NotesController < ApplicationController
# GET /notes/new
# GET /notes/new.xml
# GET /notes/new.json
def new
@note = Note.new
......@@ -42,6 +43,7 @@ class NotesController < ApplicationController
# POST /notes
# POST /notes.xml
# POST /notes.json
def create
@note = Note.new(params[:note])
......@@ -53,7 +55,7 @@ class NotesController < ApplicationController
else
format.html { render :action => "new" }
format.xml { render :xml => @note.errors, :status => :unprocessable_entity }
format.json { render :xml => @note.errors, :status => :unproccessable_entity }
format.json { render :json => @note.errors, :status => :unprocessable_entity }
end
end
end
......
Jtools::Application.routes.draw do |map|
resources :users
resources :notes
resources :projects
resources :timepunches
resources :projects do
resources :timepunches
end
resources :timepunches, :only => [:show]
# The priority is based upon order of creation:
# first created -> highest priority.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment