Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorhpatoio
    • CommentTimeMay 6th 2008
     
    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
    • CommentTimeMay 6th 2008
     

    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.

Add your comments
    Username Password
  • Format comments as