Additionaly, I have found how my "locale" problems works ok: I have added following code to application_controller.rb of radiant:
before_filter :set_locale def set_locale # if params[:locale] is nil then I18n.default_locale will be used I18n.locale = params[:locale] end Now it works ok, but it seems to be problem with web-server. Any ideas what to check? Best Regards, Mamed Mamedov On Sun, Sep 26, 2010 at 11:16 PM, Mamed Mamedov <mam...@mammadov.org> wrote: > Hello Jim :) > > Thanks for your reply to this topic. > I am working with radiant more than 1 year, and have many installations of > radiant on many places. But this problem is the first time happens. So, > everything works OK - when I have disabled cache mechanism of radiant... > Happily, this project is not very high loaded - so, it is ok for me. But > question is still open... > > Best Regards, > Mamed Mamedov > > > On Sun, Sep 26, 2010 at 10:53 PM, Jim Gay <j...@saturnflyer.com> wrote: > >> On Sun, Sep 26, 2010 at 5:52 AM, Mamed Mamedov <mam...@mammadov.org>wrote: >> >>> Additionaly idea: may be this is connected with radiant I18n features.. >>> Is there any way to disable them? >>> >>> Best Regards, >>> Mamed Mamedov >>> >>> >>> On Sun, Sep 26, 2010 at 2:50 PM, Mamed Mamedov <mam...@mammadov.org>wrote: >>> >>>> Hello all, >>>> >>>> I have to start my next project on site5 hosting with SSH access. So, >>>> after several days of hard work I have successfully installed radiant gem >>>> and created a project there. Thanks to site5 support team. >>>> By there are some problems with radiant itself. >>>> >>>> First, I have decided to use radiant v0.8.2 because of old usefull >>>> extensions compatibility, but when I have faced with problems which I will >>>> describe in this post I have installed radiant-0.9.1 also and started new >>>> project. >>>> >>>> The problems: >>>> >>>> 1. When I create any "Home page" or any other page, and then access >>>> them by url. For example: Created home page (slug: "/") and then: >>>> http://mysite.com/. Everything is ok, home page displayed. But when >>>> I trying to access admin interface - http://mysite.com/admin (or any >>>> other admin url) - home page displayed instead of admin page. After >>>> that it >>>> is possible to access admin interface only after cache of home page >>>> will be >>>> expired. >>>> I have found solution for now: completely disable page caching in >>>> radiant: commented this line "config.middleware.use ::Radiant::Cache" in >>>> environment.rb >>>> 2. I was happy to resolve first problem, because my project deadline >>>> is Monday (Sep 27) = :(. But, there was another problem with locales. I >>>> have >>>> installed globalize2 extension, configured it - it loads ok. I see >>>> locale >>>> flags in admin interface. But when I click on them to change locale = >>>> nothing happens... Any ideas? >>>> >>>> Hope you will help me, because - I am out of ideas.. >>>> >>>> Best Regards, >>>> Mamed Mamedov >>>> >>> >>> >> There's no reason that the cache would prevent you from getting to /admin. >> It sounds like there is something wrong with your webserver. >> I don't know enough about the globalize2 extension to comment on that. >> >> >> -- >> Jim Gay >> Saturn Flyer LLC >> http://www.saturnflyer.com >> 571-403-0338 >> > >