Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Sean Tilley (dsh@deadsuperhero.com)'s status on Friday, 11-Aug-2017 16:11:18 EDT Sean Tilley Sean Tilley
    I think I'm up against a polymorphic association in #Rails, and Jesus Christ, is it ever daunting.



    Trying to fetch all answers made by a user for a particular question. Fetching the answers works, fetching the questions works. But I can't seem to do this in a way that question.query and answer.body are displayed together in a coherent fashion.

    What I need is to display a question title with a  link to the question, then display the body of the answer.

    Here's the gnarly display that I'm working with. Answers are a nested resource of Questions: https://github.com/DeadSuperHero/askwise/blob/departments/app/views/users/show.html.erb

    So far, I'm just faking it by displaying the question body instead of the answer body.
    In conversation Friday, 11-Aug-2017 16:11:18 EDT from deadsuperhero.com permalink
    1. Sean Tilley (dsh@deadsuperhero.com)'s status on Friday, 11-Aug-2017 16:29:44 EDT Sean Tilley Sean Tilley
      in reply to
      Github thread: https://github.com/DeadSuperHero/askwise/issues/19
      In conversation Friday, 11-Aug-2017 16:29:44 EDT from deadsuperhero.com permalink

      Attachments

      1. Invalid filename.
        Answers don't render properly on profiles. · Issue #19 · DeadSuperHero/askwise
        from GitHub
        This fix is part of the department branch in this repo. The user show page now displays a tabbed list for Questions and Answers that belong to the User. Getting the list of questions works without ...
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.