Questions tagged [arbre]

Arbre is a Ruby gem that implements Ruby Object Oriented HTML Views.

Arbre is the DOM implemented in Ruby. Arbre is primarily used as the object oriented view layer in Active Admin.

Resources:

19 questions
0
votes
1 answer

Attributes_table formatting using Arbre in ActiveAdmin

I am displaying an ActiveAdmin registered model to the user. ActiveAdmin.register ConfigurationFile do show do attributes_table do row :name row :filename row :content end end end :content is a string with newlines,…
Max Wofford
  • 253
  • 3
  • 13
0
votes
1 answer

Row level caching with "Index as Table"

I am displaying a table with ActiveAdmin using the "Index as Table" functionality: index :pagination_total => false do if Ability.new(current_user).can? :manage, :metric selectable_column end column '' do |metric| links…
Jeff Paquette
  • 7,089
  • 2
  • 31
  • 40
0
votes
2 answers

Activeadmin: Could not find arbre-1.0.1 in any of the sources

I'm trying to run rails g active_admin:install script after installing of activeadmin gem. When I run this script I get an error Could not find arbre-1.0.1 in any of the sources Run `bundle install` to install missing gems. Although I've already…
Pavel
  • 1,934
  • 3
  • 30
  • 49
-3
votes
1 answer

How to use Arbre gem in rails?

I want to try the Arbre gem for rails. There is an example on this page: https://github.com/activeadmin/arbre/blob/master/README.md Where must I paste the next code? html = Arbre::Context.new do h2 "Why is Arbre awesome?" ul do li "The DOM…
1
2