small fixes

removed beispiel show action
beautified search url
anchors for faqs fixed
This commit is contained in:
Andreas Stephanides
2014-03-29 14:05:33 +01:00
parent 5134e25b81
commit ddb230604c
9 changed files with 19 additions and 33 deletions

View File

@@ -16,7 +16,7 @@ class ThemenController < ApplicationController
# GET /themen/1.json
def show
@thema = Thema.find(params[:id])
redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> params[:id].to_s
redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> "thema_"+params[:id].to_s
@fragen=@thema.fragen
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>"Verwalten", :path=>verwalten_thema_path(@thema)}]