lib/rewritten/server.rb in rewritten-0.0.1 vs lib/rewritten/server.rb in rewritten-0.0.2
- old
+ new
@@ -137,25 +137,25 @@
################################################################################
get "/?" do
- redirect url_path(:overview)
+ redirect url_path(:translations)
end
- get "/overview" do
- show 'overview'
+ get "/translations" do
+ show 'translations'
end
get "/new" do
show "new"
end
- post "/mappings" do
+ post "/translations" do
if params[:from]!='' && params[:to]!=''
Rewritten.add_translation(params[:from], params[:to])
- redirect u('overview')
+ redirect u('translations')
else
show "new"
end
end
@@ -198,10 +198,10 @@
redirect u("/hits")
end
def self.tabs
#@tabs ||= ["Overview", "Working", "Failed", "Queues", "Workers", "Stats"]
- @tabs ||= ["Overview", "Hits"]
+ @tabs ||= ["Translations", "Hits"]
end
end
end