Rails.root is now a Pathname. The best use of it is with the #join
method instead of concatenation and such. I therefore am rewriting all
this calls to fix/avoid problems.
if File.writable?(Rails.root)
# create the symlink to the default theme if it does not exist
default = Rails.root.join('public', 'designs', 'themes', 'default')
if !File.exists?(default)
File.symlink('noosfero', default)
end
end