Dav Yaginuma;
Husband, Father, Hacker, Thinker, Maker;
San Francisco.

Twitter Updates

    follow me on Twitter

    Dav's bookshelf: read

    Star Wars: Han Solo
    liked it
    tagged: graphic-novels
    See you at the 7: Stories From the Bay Area's Last Original Mile House
    it was amazing
    There's a little dive pub (turns out actually not a dive anymore) I'd been meaning to go to for years, and finally stopped by a couple of weeks back. I love checking out the old San Francisco spots that persist through the decades and ha...
    The Undefeated
    really liked it
    Wonderful poem and great illustrations.

    goodreads.com
    Blog powered by Typepad

    « in_place_editor_field and blank values | Main | California Corporate Headquarters, Compliance Division »

    Comments

    Feed You can follow this conversation by subscribing to the comment feed for this post.

    BobF

    Works well, although if you haven't ever installed the localization stuff you may have a few things to work through on Windows (see http://wiki.rubyonrails.com/rails/pages/iconv/ for details).

    I also had to fix one thing when using the 0.9.0 version of this: almost every spot in the files where "first_name" is used turns out to have two references to "first_name" and none to "last_name". Key ones include migration_login_sugar.rb, _edit.rhtml, user_controller.rb, user_notify.rb (multiple times).

    Roger

    I'm trying to use this under Rails 1.1.2. I had to change the name of the migration class from "LoginSugar" to "MigrationLoginSugar". I got one error in the functional tests (test_delete) and
    and two failures (test_forgot_password, test_signup). These failures were similar to the ones in the original SHLG; setting use_instantiated_fixtures in test_helper.rb didn't help. I was unable to signup until I fixed lib/clock.rb (at() and now() were defined as instance methods, but called as class methods in models/user.rb). Then I was able to signup and confirm, but my session disappeared when I navigated off the welcome page, and subsequent logins are unsuccessful.

    In short: not confidence-inspiring. It's frustrating, as the features are just what I need. I'm going to go the acts_as_authenticated route, which is more labor-intensive, but at least I'll understand how it works at every step of the way.

    dav

    Roger, lines 76-79 or the README explain what you have to do with the migration script:

    "This model is meant as an example and you should extend it. Rename it to db/migrate/###_login_sugar.rb where ### is the
    proper new migration level. If this is your first migration for this rails project, use 001."

    This is not supported under Rails 1.1.2, as stated in the announcement "All of the tests pass on Rails 1.1.[4-6]".

    To be more clear, it it is only tested for rails 1.1.4 and up.

    I'm not sure if that is why your tests were failing or not, but I would suspect so.

    Verify your Comment

    Previewing your Comment

    This is only a preview. Your comment has not yet been posted.

    Working...
    Your comment could not be posted. Error type:
    Your comment has been posted. Post another comment

    The letters and numbers you entered did not match the image. Please try again.

    As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

    Having trouble reading this image? View an alternate.

    Working...

    Post a comment

    Your Information

    (Name is required. Email address will not be displayed with the comment.)

    nt.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();