diff options
author | mr <mr@mrautenberg.de> | 2011-08-22 15:28:27 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-22 15:28:27 +0200 |
commit | c71f69b610b270b9c25cf58e84a035078905fa46 (patch) | |
tree | d69f5ee37c99bdd6a4d99f15bc250603f0eced38 /application.rb | |
parent | a4b6e68acf76949a1765177b6d5b8c454990cb8a (diff) |
remove subjectidstring for unified cookies
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/application.rb b/application.rb index eb86916..9ef50f8 100644 --- a/application.rb +++ b/application.rb @@ -92,8 +92,7 @@ end get '/models/?' do @models = ToxCreateModel.all.sort(:order => "DESC") @models.each{|m| raise "internal redis error: model is nil" unless m} - subjectstring = @subjectid ? "?subjectid=#{CGI.escape(@subjectid)}" : "" - haml :models, :locals=>{:models=>@models, :subjectstring => subjectstring} + haml :models, :locals=>{:models=>@models} end get '/model/:id/status/?' do @@ -156,13 +155,12 @@ end get '/model/:id/:view/?' do response['Content-Type'] = 'text/plain' model = ToxCreateModel.get(params[:id]) - subjectstring = @subjectid ? "?subjectid=#{CGI.escape(@subjectid)}" : "" begin case params[:view] when "model" - haml :model, :locals=>{:model=>model,:subjectstring => subjectstring}, :layout => false + haml :model, :locals=>{:model=>model}, :layout => false when /validation/ - haml :validation, :locals=>{:model=>model,:subjectstring => subjectstring}, :layout => false + haml :validation, :locals=>{:model=>model}, :layout => false else return "unable to render model: id #{params[:id]}, view #{params[:view]}" end |