| Class | PathsController |
| In: |
app/controllers/paths_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/paths_controller.rb, line 28
28: def create
29: path = Path.new(:user => current_user, :title => params[:path][:title])
30:
31: if !current_user.anonymous? and path.save
32: render :xml => path, :status => :created,
33: :location => path
34: else
35: render :xml => path.errors, :status => :unprocessable_entity
36: end
37: end
# File app/controllers/paths_controller.rb, line 39
39: def destroy
40: @path.destroy
41:
42: head :ok
43: end