I don't know very little ruby so I have no idea what I am doing. I would
like to change the default behavior of Instiki. When people go to
mywiki.mysite.com:2500 the web_list page generates. I have multiple
wikis, one published one private. By default I would love it intiki
pulled the published wiki rather than web_list. The published wiki is the
first wiki listed in my tables. I know the change needs to be made in
wiki_contoller but I'm not sure what. Here's what I have:
I changed index from
else
redirect_to :action => 'web_list'
to:
else
redirect_to :action => 'reference_published'
And have created:
def reference_published
if @web.published?
redirect_home @wiki.webs.values.first.address
else
redirect_to :action => 'web_list'
end
What do I need to change? I know this code is hard for some of you to
see, I'm sorry I butchered it.
Thanks,
Joel
_______________________________________________
Instiki-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/instiki-users