Permalink
Switch branches/tags
Nothing to show
Commits on Sep 13, 2011
Commits on Jul 23, 2011
  1. Clean up commenting routes, the hack that was there was for a much

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

    xaviershay committed Jul 23, 2011
    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.
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…

    xaviershay committed Mar 4, 2011
    …eption for XHR in 3.0.4.
    
    
    Fixes #27.
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.

    Adam Wróbel committed with xaviershay Dec 20, 2010
    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.
Commits on Dec 21, 2010
  1. Unify atom links on index page and atom itself.

    Adam Wróbel committed Dec 21, 2010
    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.
Commits on Dec 20, 2010
  1. Fix posts time shifts.

    Adam Wróbel committed Dec 20, 2010
    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.
  2. Removed admin/tags controller and related views/specs/routes. Updated…

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

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

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

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

    Adam Wróbel committed with xaviershay Dec 2, 2010
    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.
  3. Remove stubbed OpenID specs. They are far too brittle. Add a note to

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

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

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