Git Product home page Git Product logo

Comments (8)

rkamun1 avatar rkamun1 commented on May 28, 2024

sorry...figured it out.

Thanks!

from demo.activeadmin.info.

lawerna avatar lawerna commented on May 28, 2024

Can you write how you did that ? Cause I have the same problem

from demo.activeadmin.info.

rkamun1 avatar rkamun1 commented on May 28, 2024

Any partials must go in a sub-folder named after the "model" for example dashboard partials go in the dashboard folder.

from demo.activeadmin.info.

mhuggins avatar mhuggins commented on May 28, 2024

I had trouble rendering a partial in my dashboard. In case anyone else encounters a similar issue, here's what I did to get it working.

Originally, I had this in dashboard.rb:

section "Daily Acquisition", do
  render 'signups', :start_date => 1.month.ago
end

And to get it to work, I had to wrap it in a div like this:

section "Daily Acquisition", do
  div render('signups', :start_date => 1.month.ago)
end

from demo.activeadmin.info.

synewaves avatar synewaves commented on May 28, 2024

@mhuggins Thanks for that note! I was just having this issue.

from demo.activeadmin.info.

pcdoc80 avatar pcdoc80 commented on May 28, 2024

@mhuggins +1

from demo.activeadmin.info.

amrit avatar amrit commented on May 28, 2024
 section "Business Summary", do
           div render ('graph')
         end

Doesn't work for me, the partial doesn't render and I only get a blank section...

from demo.activeadmin.info.

ryanjones avatar ryanjones commented on May 28, 2024

Here's an example that works. I didn't have the div do end and my partial didn't display.

  section "Search Links", :priority => 1 do
    div do
      render 'search_links'
    end
  end

from demo.activeadmin.info.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.