diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/public_body.rb | 6 | ||||
-rw-r--r-- | app/views/layouts/admin.rhtml | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 65bba0a63..12fe880c2 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -22,7 +22,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body.rb,v 1.27 2008-02-28 15:59:21 francis Exp $ +# $Id: public_body.rb,v 1.28 2008-03-02 23:43:09 francis Exp $ require 'csv' require 'set' @@ -82,7 +82,9 @@ class PublicBody < ActiveRecord::Base public_body_tag.destroy end for tag in tags - self.public_body_tags << PublicBodyTag.new(:name => tag) + public_body_tag = PublicBodyTag.new(:name => tag) + self.public_body_tags << public_body_tag + public_body_tag.public_body = self end end end diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index 71618f755..d2fe60a44 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -7,7 +7,6 @@ # Have to do explicit tag for stylesheet, to get absolute path on main server %> <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %> - <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('scaffold')) }) %> </head> <body> |