Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorhpatoio
     
    Hello.

    I'm trying to develop my next application with Akelos.

    I always set my admin interface under https. So, when the user type httpS://www.myapp.com/ the login form appears.
    I don't know how to do this in Akelos (honestly I don't even know how do it in Rails)

    I wont set 2 different applications, because i need to share modules and controllers between the admin and the user area.

    So, is there a way to achive this with Akelos ?

    Thanks

    --
    Simone
    • CommentAuthorKaste
     

    Should be dead easy.

    I think the router doesn't differentiate between http and https. so Akelos would invoke the same action/controller for both.

    but you could do a redirect in a before_filter. something like

    if Request->isSsl() redirect_to :login
    

    Thats pseudo-code of course.