
multisite: album site nil error
Reported by Priit Tamboom | February 10th, 2009 @ 02:33 PM
When using multistie, there is site nil error when uploading photo.
def base_dir(site)
Site.multi_sites_enabled ?
"#{root_dir}/sites/#{site.perma_host}/photos" :
"#{root_dir}/photos"
end
When i replase #{site.perma_host} with #{set_site.perma_host} it works.
I suggest rename method set_site to site in the photo model.
Cheers, Priit
Comments and changes to this ticket
-
Marko Seppä June 18th, 2009 @ 11:53 AM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>
<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>
<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>