Permalink
Commits on Jul 23, 2011
  1. Clean up commenting routes, the hack that was there was for a much

    earlier version of Rails and is no longer required.
    xaviershay committed Jul 23, 2011
  2. Fix OpenID commenting.

    A recent change in Rails (3.0.4 I think) added
    code to reset the session if the CSRF request forgery check failed. This
    was happening on the OpenID callback, so the pending comment was being
    lost, with the result of a blank comment trying to be saved.
    
    This commit disables CSRF check only for OpenID callbacks, I don't think
    it makes sense in this context.
    
    Fixes #37.
    xaviershay committed Jul 23, 2011
Commits on Jul 9, 2011
Commits on Mar 25, 2011
Commits on Mar 4, 2011
  1. Send csrf-token with AJAX requests now that rails doesn't make an exc…

    …eption for XHR in 3.0.4.
    
    Fixes #27.
    xaviershay committed Mar 4, 2011
Commits on Feb 15, 2011
Commits on Feb 9, 2011
  1. Comment the psych hack

    xaviershay committed Feb 9, 2011
Commits on Feb 4, 2011
Commits on Jan 24, 2011
Commits on Jan 9, 2011
  1. Load jquery unobtrusive js driver.

    At least one ujs driver needs to be loaded if enki is to be used with Rails 3. Since Prototype is not included in any layout I'm adding Jquery that is used everywhere in Enki.
    
    Without this driver things like the Logout button in Admin panel did not work. It was pointing to GET admin_session_url instead of
    DELETE admin_session_url.
    
    The driver required jquery update.
    amw committed with xaviershay Dec 20, 2010
Commits on Dec 21, 2010
  1. Unify atom links on index page and atom itself.

    The atom link on the html index (without tag) is "url/posts.atom" while on the atom feed the self link was "url/.atom".
    
    This commit copies the url statement from index to atom feed.
    amw committed Dec 21, 2010
Commits on Dec 20, 2010
  1. Fix posts time shifts.

    If system's time zone != rails time zone (default utc) then continuously saving a post shifts it's creation time by the time zone difference.
    
    This initializes Chronic timezone to Rails config.
    amw committed Dec 20, 2010
  2. Removed admin/tags controller and related views/specs/routes. Updated…

    … admin
    
    layout.
    
    Closes #7.
    gaelian committed Dec 20, 2010
  3. Tagging model now automatically removes unused tags when taggable is …

    …updated
    
    or destroyed. Includes accompanying specs.
    gaelian committed Dec 20, 2010
Commits on Dec 18, 2010
  1. content(:page_title) now returns blank rather than nil when not

    provided, so update the code accordingly. Thanks mirlord.
    
    Closes #17.
    xaviershay committed Dec 18, 2010
Commits on Dec 3, 2010
  1. Spec for last commit (don't 404 empty tags).

    Closes #15.
    xaviershay committed Dec 3, 2010
  2. Don't throw exception when viewing empty tag.

    I'm settings my posts date to future as a replacement for the missing "draft" feature. If you do so the post will not be displayed in posts index or posts index by tag, but the tag will be visible in the navigation bar. Clicking a new for which the article isn't published yet causes an exception.
    
    This commits makes it display "There are no posts yet".
    
    The real fix to this problem would be filtering out tags with only unpublished posts, but this would either require a lot more coding or would slow down tag list terribly.
    amw committed with xaviershay Dec 2, 2010
  3. Remove stubbed OpenID specs. They are far too brittle. Add a note to

    write an integration test instead.
    xaviershay committed Dec 3, 2010
  4. Fix openid comments errors display.

    authenticate_with_open_id returns :base, not 'base'.
    amw committed with xaviershay Dec 1, 2010
  5. Fix comments posting when using invalid openid.

    Stays in the create action when invalid openid is provided.
    Runs comment validations when session[pending_comment] is not nil.
    amw committed with xaviershay Dec 1, 2010