Hi Joshua,

thank you for getting back!

I am not using any authentication library or plugin.  I was hoping to
use the user and session model that Radiant provides, but I may be
missing something, or maybe the Rails way to do it would be something

Again, any pointers would be appreciated.


On Wed, Sep 14, 2011 at 3:25 AM, Joshua Jose Pecson
<jovhenn...@gmail.com> wrote:
> Did you use a plugin or gem in your login? or you created your own?...I'm
> using AuthLogic as a solution to that I just need to put require_user in my
> Application Controller. Look at this link:
> https://github.com/binarylogic/authlogic_example
> 2011/9/14 Hans Hübner <hans.hueb...@gmail.com>
>> Hi,
>> I'm new to Rails, and I may be approaching this from the wrong angle:
>> I am running an internal blog using radiant CMS which I use for daily
>> status reports.  In order to make posting as painless as possible, I
>> have created a HTML form that creates a new page with several hidden
>> fields (for title, slug, breadcrumb) initialized by client-side
>> javascript.  Only a textarea and a submit button is presented to the
>> user, and the content is automatically considered to be markdown.  The
>> Javascript also checks that a authenticity_token is present (rendered
>> into the page by a custom extension).
>> This works well if I am logged in.  If I am not logged in, I would
>> like to be redirected to the /admin/login (?) page by my JavaScript
>> and then back to the custom page.  What would be an easy way to achive
>> that?  Should I rather create my own login page?
>> Any hints, pointers, guidance would be greatly appreciated.
>> Thanks,
>> Hans

Reply via email to