https://avo.cool logo
Join Discord
Powered by
# avo-2
  • i

    important-terabyte-39911

    03/11/2022, 2:20 PM
    it doesn't say anything, it just doesn't enable the "Submit new issue" button after I wrote in the textbox
  • l

    lemon-wall-20836

    03/11/2022, 2:21 PM
    ok. can you help me with one more try?
  • l

    lemon-wall-20836

    03/11/2022, 2:21 PM
    https://github.com/avo-hq/avo/issues/new?template=bug_report.md
  • l

    lemon-wall-20836

    03/11/2022, 2:21 PM
    try and submit one ticket using this link. you can add whatever you want to the title
  • l

    lemon-wall-20836

    03/11/2022, 2:21 PM
    I'll close it afterwards
  • i

    important-terabyte-39911

    03/11/2022, 2:26 PM
    now when I write a title for the report, it automatically enables the button
  • l

    lemon-wall-20836

    03/11/2022, 2:26 PM
    🙌
  • l

    lemon-wall-20836

    03/11/2022, 2:26 PM
    perfect
  • l

    lemon-wall-20836

    03/11/2022, 2:26 PM
    thank you for your help
  • i

    important-terabyte-39911

    03/11/2022, 2:26 PM
    https://github.com/avo-hq/avo/issues/726
  • l

    lemon-wall-20836

    03/11/2022, 2:26 PM
    I created the ticket and will fix soon.
  • i

    important-terabyte-39911

    03/11/2022, 2:26 PM
    thank you 🙂
  • i

    important-terabyte-39911

    03/11/2022, 2:26 PM
    glad to be of any help
  • l

    lemon-wall-20836

    03/11/2022, 2:27 PM
    ofc! let me know if you find any other bugs 🙏
  • i

    important-terabyte-39911

    03/11/2022, 2:27 PM
    will do!
  • c

    clean-salesmen-51708

    03/12/2022, 8:40 PM
    Howdy, I have a model that has rich text and uses
    friendly_id
    for slugs.
    Copy code
    ruby
    class Page < ApplicationRecord
      extend FriendlyId
      friendly_id :title, use: :slugged
    
      has_rich_text :content
    
      validates_presence_of :title, :content
    end
    My Avo resource looks like this.
    Copy code
    ruby
    class PageResource < Avo::BaseResource
      self.title = :title
    
      field :id, as: :text
      field :title, as: :text
      field :content, as: :trix
      field :visible, as: :boolean
    end
    In Avo creating a new Page record with the rich text works but viewing the created record in Avo throws an
    Copy code
    ActiveRecord::RecordNotFound in Avo::PagesController#show
    Couldn't find Page with 'id'=about
  • c

    clean-salesmen-51708

    03/12/2022, 8:41 PM
    I try adding the following but it breaks elsewhere.
    Copy code
    ruby
    module Avo
      class ApplicationController < ::ActionController::Base
        def set_model
          @model = if params[:id].is_a?(Integer)
            eager_load_files(@resource, @resource.class.find_scope).find params[:id]
          else
            eager_load_files(@resource, @resource.class.find_scope).find_by(slug: params[:id])
          end
        end
      end
    end
  • l

    lemon-wall-20836

    03/13/2022, 1:41 PM
    Hey David
  • l

    lemon-wall-20836

    03/13/2022, 1:41 PM
    https://docs.avohq.io/1.0/customization.html#custom-query-scope
  • l

    lemon-wall-20836

    03/13/2022, 1:41 PM
    you need to set a custom find scope
  • l

    lemon-wall-20836

    03/13/2022, 1:41 PM
    You'll find everything you need and a
    friendly_id
    example 👆
  • c

    clean-salesmen-51708

    03/13/2022, 6:08 PM
    Thanks, Adrian. It worked.
  • a

    adamant-hair-45776

    03/24/2022, 12:27 PM
    Hello! I'm testing Avo for our app and there are some odd behavior I'm encountering on edit. When I click on edit, it's stuck on the button spinner/bounce and does not redirect even if it persisted. Another one is when when it has a validation, it does not show up as well. Not sure as i'm not getting any errors. Is there some config I'm missing? I only have these fields in my company resource for now:
    Copy code
    field :id, as: :id
    field :name, as: :text, required: true, sortable: true
  • l

    lemon-wall-20836

    03/24/2022, 12:40 PM
    hey khris
  • l

    lemon-wall-20836

    03/24/2022, 12:40 PM
    that's weird
  • l

    lemon-wall-20836

    03/24/2022, 12:40 PM
    have you added any assets? like javascript?
  • l

    lemon-wall-20836

    03/24/2022, 12:41 PM
    also, any adblockers, something that would mess with hotwire and turbo?
  • l

    lemon-wall-20836

    03/24/2022, 12:41 PM
    that seems to be the issue. Can you see
    avo.js
    loading in the network tab?
  • l

    lemon-wall-20836

    03/24/2022, 1:11 PM
    also, can you try in a different browser?
  • a

    adamant-hair-45776

    03/24/2022, 1:27 PM
    Thank you for the response. We do have some javascript (using vue in particular) in some parts our app. We also use hotwire and turbo though so our FE is not fully js. No adblockers. avo.js is also loading in the network tab. Tried it on Safari and Firefox it's the same behavior.
1...303132...64Latest