mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 12:18:07 +01:00
[Contributed by Nicholas Lee] Changes to the way that URLs are specified which should improve the situation for people using Tracks in a subdirectory.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@54 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
310b763fb5
commit
ec69c71564
17 changed files with 73 additions and 29 deletions
|
|
@ -93,7 +93,7 @@ class ContextController < ApplicationController
|
|||
expire_action(:controller => "context", :action => "list")
|
||||
item = Todo.new
|
||||
item.attributes = @params["new_item"]
|
||||
where = Context.find_by_id(item.context_id)
|
||||
# where = Context.find_by_id(item.context_id)
|
||||
|
||||
back_to = urlize(where.name)
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ class ContextController < ApplicationController
|
|||
# If you choose to go ahead, any actions in the context will also be deleted.
|
||||
def destroy
|
||||
expire_action(:controller => "context", :action => "list")
|
||||
context = Context.find(@params['id'])
|
||||
context = Context.find( @params['id'] )
|
||||
if context.destroy
|
||||
flash["confirmation"] = "Succesfully deleted context \"#{context.name}\""
|
||||
redirect_to( :action => "list" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue