Associate new Authlogic Model to existing Models

Posted by BriteLite on Stack Overflow See other posts from Stack Overflow or by BriteLite
Published on 2010-03-05T19:21:33Z Indexed on 2010/04/10 13:03 UTC
Read the original article Hit count: 293

Filed under:
|

Hello,

While playing around with Rails (since I am a newbie) while reading Agile Rails book I came across an issue using the Gem Authlogic that I don't know how to address.

I have a simple business Model. The tables store the following information: Name, Address, Latitude, and Longitude.

The above approach has been working fine, because using the console I can enter the information and it shows up, where I need it to.

My issue now is that I want to add authentication to it. As in assign those records in the table, to individual accounts. Since Authlogic is an authentication gem, can this be done?

What I am trying to get to here is that, I enter a few records and leave it at that. Few days later, I want to assign those individual rows in the table to an authlogic model so the person to whom the record should belong can authenticate to it and make changes.

Any code samples, blog posts to better help me understand would be great!

Thank You.

© Stack Overflow or respective owner

Related posts about authlogic

Related posts about ruby-on-rails