≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1566

Bug #1566: Rails 3: in-place editor fields broken under Rails 3

Kind bug
Product wincent.dev
When Created 2010-06-11T13:04:28Z, updated 2010-06-17T16:49:20Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Just noticed this, but even when logged in as admin seems I can't use in-place editor fields when running under Rails 3.

Comments

  1. Greg Hurrell 2010-06-13T18:07:56Z

    Fixed. Turns out that the to_json stuff used in the dynamic JavaScript templates was getting escaped, and needed to be marked with either raw or html_safe.

  2. Greg Hurrell 2010-06-13T18:08:05Z

    Status changed:

    • From: new
    • To: closed
  3. Greg Hurrell 2010-06-14T13:07:26Z

    Gonna re-open. The fields look like they work, but when you check, you see that no actual modifications are made to the model.

  4. Greg Hurrell 2010-06-14T13:07:52Z

    Status changed:

    • From: closed
    • To: open
  5. Greg Hurrell 2010-06-14T14:00:13Z

    Talking about the issues#show action here.

    The AJAX stuff actually looks fine. In the logs I am seeing the changes get made, but then I see a "ROLLBACK". For some reason the transaction is being aborted, although no exceptions or anything else get logged.

    Trying at least the in-place textfield editor on other pages seems to work fine.

    Interestingly, trying to update an issue via issues#edit also fails, so it looks to be not related to AJAX at all.

  6. Greg Hurrell 2010-06-17T16:48:07Z

    Both of these issues now fixed. Will mark as closed.

  7. Greg Hurrell 2010-06-17T16:49:20Z

    Status changed:

    • From: open
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets