Avo 3.0 documentation map
A map of every Avo 3.0 documentation page and its headings, designed for easy navigation by LLMs.
For the concise index, see llms.txt. For the full text of every page in one file (large — high token count), see llms-full.txt. For this map as raw markdown, see docs-map.md.
Auto-generated from the VitePress sidebar by
scripts/generate-docs-map.js. Do not edit manually.
Document structure
- ## marks documentation groups (e.g. 'Resources')
- ### marks individual documentation pages
- Nested bullets show the headings within each page
- Option names are grouped under their section; repeated pages link back without repeating their outline
- Each page title links to the full documentation
Avo 3
Intro
- The CRUD UI
- Dashboards
- Custom content
- Seamless upgrades
- Next up
- Walkthrough videos
- Build a blog admin panel
- Build a booking app
Avo 3
- Changes
- New features & big changes
- Features moved from one tier to another
- Features moved from Pro to Advanced
- Features moved from Pro to Community
- Repos and packages
- Feedback
- Documentation
- What next?
Upgrade guide
- Upgrade to 3.34.0
- Avo 3 works with pagy
43- What changed
- Action Required
- Avo 3 works with pagy
- Upgrade to 3.32.4
config.visiblenow controls Media Library access, not just the menu item- Breaking Change
- Action Required
- Upgrade to 3.22.0
- External image field options now apply to all views
- Breaking Change
- Action Required
- Maintaining Previous Behavior
- decorate option deprecated in favor of format_display_using
- Breaking Change
- Action Required
- Steps to Update
- External image field options now apply to all views
- Upgrade to avo-kanban 0.1.18
- TL;DR
- Changes
- Upgrade to 3.18.0
- read_only and disabled options on has_one fields
- Breaking Changes
- Steps to Update
- Avo's mounting point update
- Breaking Change
- Steps to Update
- Preview Policy
- Steps to Update
- Deprecation of row
- Steps to Update
- read_only and disabled options on has_one fields
- Upgrade from 3.16.2 to 3.16.3
- Row controls configuration
- What changed?
- Previous configuration (obsolete)
- New configuration
- Associations Fields Structural Updates
- Row controls configuration
- Upgrade from 3.16.1 to 3.16.2
- markdown renamed to easy_mde
- Upgrade from 3.15.3 to 3.15.4
- Persistent Pagination Behavior
- Upgrade from 3.14.0 to 3.14.1
- Upgrade from 3.13.6 to 3.13.7
- Upgrade from 3.13.3 to 3.13.4
implicit_authorization
- Upgrade from 3.11.7 to 3.11.8
- Dynamic filters query
- Upgrade from 3.10.10 to 3.11.3
- Unexpected behavior
- Upgrade from 3.10.9 to 3.10.10
- Array filter
- Upgrade from 3.10.6 to 3.10.7
- Boolean field
- Upgrade from 3.10 to 3.11
- Actions no longer need to be registered inside actions method
- Upgrade from 3.9.2 to 3.10
- Upgrade from 3.9.1 to 3.9.2
- Upgrade from 3.7.4 to 3.9.1
- Steps to update
- Skip versions 3.8.x and 3.9.0
- Upgrade from 3.6.1 to 3.6.2
- Cache
- Upgrade from 3.5.4 to 3.5.5
- Record errors
- Upgrade from 3.4.2 to 3.4.3
turboconfiguration
- Upgrade from 3.4.1 to 3.4.2
- Basic Filters URL param changed to
encoded_filters- What to do?
- Add
active_record_extendedgem to yourGemfile, Multiple action flux, Actionlink_argumentsmethod,resource.recordorrecordasnilon visibility blocks
- Basic Filters URL param changed to
- Upgrade from 3.3.0 to 3.4.0
- Upgrade from 3.2.2 to 3.3.0
may_download_filedeprecated, Status fieldfailed_whenandloading_whendefault to and empty array, Scopes namespace change, TailwindCSS integration
- Upgrade from 3.1.3 to 3.1.4
Avo::Filters::BaseFilter.decode_filters
- Upgrade from 3.0.1.beta24 to 3.0.2
- Sidebar should be declared inside a panel, Dashboards visibility and authorization, Actions, Attachments eager load
- Use self.includes option
- Use self.index_query option
- Sidebar should be declared inside a panel, Dashboards visibility and authorization, Actions, Attachments eager load
- Upgrade from 3.0.1.beta23 to 3.0.1.beta24
- Cards
- Upgrade from 3.0.1.beta22 to 3.0.1.beta23
- Caching
- Upgrade from 3.0.1.beta8 to 3.0.1.beta9
- Heading as field, Badge field
secondaryoption renamed toneutral, Renamelink_to_resourcetolink_to_record
- Heading as field, Badge field
- Upgrade from 3.0.1.beta5 to 3.0.1.beta6
- The status field changed behavior
Avo 2 to Avo 3 upgrade
- Upgrade from 2.x to 3.x
- Use the automatic upgrade tool
- Upgrade steps
- Update your
Gemfile, The status field changed behavior,headinghas become a field type- Actions to take
- Moved some globals from
Avo::ApptoAvo::Current- Actions to take
- Renamed
modeltorecordacross all configuration files- Actions to take
- Remove block (lambda) arguments
- Actions to take
- Swap
disabledandreadonlyfield options- Actions to take
- Removed
index_text_alignoption- Actions to take
- Renamed
resolve_query_scopetoindex_queryin resources- Actions to take
- Removed
resolve_find_scopein favor offind_record_method- Actions to take
- Refactor the grid view API, Refactored the search API, Rename Avo configuration classes
- Actions to take
- Use the
def fieldsAPI- Actions to take
- Use the
def actionsAPI, Use thedef filtersAPI, Use thedef scopesAPI, Wrap all Dashboardcardanddividerdefinitions inside onedef cardsmethod,toolis declared inside thedef fieldsmethod- Actions to take
- Remove
tabs_stylefrom thetabsdeclaration- Actions to take
- Update your
Technical Support
Best practices
- Avoiding n+1 using self.includes
- Avoid using if/else statements in def fields
- Example:
- Add an index on the created_at column
Code editors and LLM setup
- (Page source not found)
Configuration
Installation
- Requirements
- Installing Avo
- One-command install
- Manual, step by step.
- In popular Rails starter kits
- Bullet Train
- Jumpstart Pro
- Install from GitHub
- Mount Avo to a subdomain
- Next steps
Gem server authentication
- On the server and CI systems
- On your local development environment
- Add Avo to your Gemfile
- Heroku, Hatchbox, GitHub Actions
- Add BUNDLE_PACKAGER__DEV to your repository's secrets
- Expose BUNDLE_PACKAGER__DEV as an environment variable
- Docker and docker compose, Kamal
- Heroku, Hatchbox, GitHub Actions
- Bundle without paid gems
- FAQ
Forbidden 403,Forbidden 403in a sandboxed or cloud environment (Cursor Cloud)
License troubleshooting
- Check the license status page
- Frequent issues
- License key not properly set on the server
Authentication
- Customize the current_user method
- Rails authentication scaffold, Devise, Other methods
- Customize the sign-out link
- Customize the current user resource name
- Customize the entire sign-out path
- What signing out clears in the browser
- Filter out requests
- authenticate_with method
- User roles
- Admin user
- Check if a user is an admin
- When does Avo check if the user is an admin (is_admin?)
- Developer user
- Check if a user is an developer
- When does Avo check if the use is an developer (is_developer?)
- Customize the methods that check for roles
- Authorization
Authorization
- Ensure Avo knows who your current user is
- Policies
- index?,
show?,create?,new?,edit?,update?,destroy?,act_on?,reorder?,search?,preview?
- index?,
- Associations
- Example scenario
attach_{association}?,detach_{association}?,view_{association}?,show_{association}?,edit_{association}?,create_{association}?,destroy_{association}?,act_on_{association}?,reorder_{association}?
- Example scenario
- Removing duplication
- Attachments
upload_{FIELD_ID}?,download_{FIELD_ID}?,delete_{FIELD_ID}?
- Scopes
- Using different policy methods
- Use Resource's Policy to authorize custom actions
- Raise errors when policies are missing
- Logs
- Custom policies
- Custom authorization clients
- Change the authorization client
- Client methods
authorize,policy,policy!,apply_policy
- Explicit authorization
explicit_authorization- Default
- Configuration:
- Examples:
- Migration Recommendations:
- Rolify integration
CRUD UI
Resources
- Overview
- Resources from model generation
- Manually defining resources
- Generating resources for all models
- What it does
- Fields
- Routing
- Use multiple resources for the same model
- Namespaced resources
- Views
- Extending Avo::ResourcesController
- --parent-controller option on the generators
- resource_parent_controller configuration option
- Attach concerns to Avo::BaseController
- Manually registering resources
- Extending Avo::BaseResource
- How to Customize Avo::BaseResource
- Your resource files
- Resource Options
self.title- Using a computed title
- title as a block
self.description- Set the description as a string
- Set the description as a block
self.includes,self.single_includes,self.attachments,self.single_attachments,self.confirm_on_save,default_view_type,self.model_class,self.devise_password_optional- Related
self.visible_on_sidebar,config.buttons_on_form_footers,after_create_path/after_update_path- Related
self.record_selector,self.link_to_child_resource,self.keep_filters_panel_open,self.components,self.index_query- Unscoped queries on Index
self.default_sort_column- Default
self.default_sort_direction- Default
self.controls_placement,self.pagination- type
- Default
- size
- Default
- Examples
- Default
- Countless
- Countless and "pageless"
cache_hash,self.external_link- Usage
self.discreet_information
- Cards
Array Resources
- Overview
- Sorting
- Performance Considerations
- Creating an Array Resource
- Defining the records Method
- Example
- Defining Fields
Fields
- Declaring fields
- Specific methods for each view
- Field conventions
- A more complex example
- Field Types
Field options
- Common field option example
- Custom field option example
- Change field name
- Showing / Hiding fields on different views
- Field Visibility
- Computed Fields
- Fields Formatter
- Common formatting options
format_using,format_{view}_using
- Common formatting options
- Formatting with Rails helpers
- Parse value before update
- Sortable fields
- Custom sortable block
- Placeholder
- Required
- Disabled
- Disabled as a block
- Readonly
- Default Value
- Help text
- Nullable
- Link to record
- Align text on Index view
- Stacked layout
- inline layout (default)
- stacked layout
- Global stacked layout
- Field options
components- Ejecting the field components
- Ejecting All Components for a Field
- Customizing field components using components option
html- Attach HTML attributes
summarizable- How It Works
for_attribute,meta,copyable
Field discovery
- Options
only,except,column_names_mapping,column_types_mapping
- Examples
- Basic Discovery
- Custom Field Options
- Combining Manual and Discovered Fields
- Automatic Type Mapping
- Association Discovery
Controller configuration
- Request-Response lifecycle
- Create methods
after_create_path,create_success_action,create_fail_action,create_success_message,create_fail_message
- Update methods
after_update_path,update_success_action,update_fail_action,update_success_message,update_fail_message
- Destroy methods
after_destroy_path,destroy_success_action,destroy_fail_action,destroy_success_message,destroy_fail_message
Record previews
Scopes
- Generating scopes
- Registering scopes
default,remove_scope_all
- Options
- Execution Context
name,description,scope,visible
- Execution Context
- Full example
Records reordering
- Configuration
- Always show the order buttons
- Display the buttons in the Index view or association view
- Display the button on a has_many association
- Possible values
- Change the scope on the Index view
- Reorder using drag and drop
- Custom position attribute
- Authorization
Discreet information
- Display the id
- Display the created_at and updated_at timestamps
- Options
tooltip,url,as
- Full configuration
Customizable controls
- Default controls
- Customize the controls
- Show page, Edit page, Index page, Row controls
- Controls
back_button- Supported options
delete_button- Supported options
detach_button- Supported options
actions_list- Supported options
- exclude option
- Example
- include option
- Example
list- Supported options
- Example
edit_button- Supported options
link_to- Supported options
action- Supported options
- Example
default_controls
- Control Options
title,style,color,icon,target,class
- Default values
- Conditionally hiding/showing actions
Cover and Profile Photos
- Profile photo
visible_on,source
- Cover photo
size,visible_on,source
Field types
Array
- Example 1: Array field with a block
- Example 2: Array field fetching data from the model's method
- Example 3: Fallback to the records method
- Summary of Data Fetching Hierarchy
Badge
- Description
- Options
options
- Examples
Boolean
- Options
true_value,false_value,nil_as_indeterminate,as_toggle
Boolean group
- DB payload example
- Field declaration example
options- Computed options
- Updates
Code
- Options
theme,language,height,tab_size,indent_with_tabs,line_wrapping,pretty_generated
Country
- Options
display_code
Date
- Options
Date time
- Options
Easy MDE
- Options
always_show,height- Default
spell_checker
External image
- Options
width- Example with proc
height- Example with proc
radius- Example with proc
- Conditional sizing based on view
- Use computed values
- Use in the Grid cover position
File
- Variants
- Example:
- Options
Files
- Options
view_type- Default
hide_view_type_switcher- Default
Gravatar
- Options
rounded,size- Default
default- Default
- Using computed values
Heading
- Options
as_html,label
Hidden
- Example usage:
Id
- Options
Key value
- Options
key_label- Default
value_label- Default
action_text- Default
delete_text- Default
reorder_text- Default
disabled,disable_editing_keys,disable_editing_values,disable_adding_rows,disable_deleting_rows
- Customizing the labels
- Enforce restrictions
Location
- Description
- Options
stored_as,mapkick_options- Default
static- Default
Markdown
- Supported features
- Customize the renderer
media_library- Code example
file_uploads- Code example
extra_preview_params- Code example
Money
- Money Field Example
- Example on new
- Example on show with currencies USD
- Example on show with currencies RON
- Example on index
- Installation
- Options
currencies- Default
Number
- Options
min- Default
max- Default
step- Default
- Examples
Password
* Revealable
Preview
- Define the fields
- Authorization
Progress bar
- Options
max- Default
step- Default
display_value,value_suffix- Default
- Examples
Radio
- Field declaration example
options
Record link
- Options
target- Example
use_resource- Example
add_via_params- Example
- Using computed values
- Example
Rhino
- Options
- Contributing
Select
options- Default
- Computed options
grouped_options- Default
- Computed grouped options
enum- Default
display_value,include_blank- Default
multiple- Default
Stars
- Options
max- Default
- Examples
Status
- Options
failed_when,loading_when,success_when,neutral_when
Tags
- Options
suggestions- Default
disallowed- Default
enforce_suggestions,suggestions_max_items- Default
close_on_select,acts_as_taggable_on- Default
delimiters- Default
mode- Default
fetch_values_from- Default
fetch_labels- Default
format_using- Default
- PostgreSQL array fields
- Acts as taggable on
- Array fields
Text
- Options
as_html,protocol- Default
- Customization
Textarea
- Options
rows- Default
Time
- Options
Tip Tap
Trix
- Options
attachments_disabled,hide_attachment_filename,hide_attachment_filesize,hide_attachment_url,attachment_key- Default
- File attachments
- Disable attachments
- Remove attachment attributes
- Active Storage
- Action Text
- Demo app
- Javascript Alert Messages
Associations
Customization
- Single Table Inheritance (STI)
- Link to child resource when using STI
- Add custom labels to the associations' pages
Belongs to
- Options
allow_via_detaching,polymorphic_as- Default
- Example
types- Default
- Example
polymorphic_help- Default
can_create- Default
- Overview
- Polymorphic belongs_to
- Polymorphic help
- Searchable belongs_to
- Belongs to attach scope
- Allow detaching via the association
Has one
- Options
Has many
- Options
linkable
- Has Many Through
attach_fields
Has and belongs to many
- Options
- Searchable has_and_belongs_to_many
Layout
Panels
- What is the Main Panel?
- How does Avo compute panels?
- Computed panels vs Manual customization
- Index view fields
visible
Clusters
divider
Sidebars
- Adding fields to the sidebar
- panel_wrapper
Tabs
- Tabs on Show view
- Tabs on Edit view
- Durable and "Bookmarkable"
- Display counter indicator on tabs switcher
- Visibility control
visible- Example
title,description,lazy_load
Views
Overview
Index,Show,Edit,New,Display,Form- Preview
- Checking the current view
- Multiple ways to check
Table view
- Row controls configuration
- Global configuration
- Resource configuration
placement,float,show_on_hover
Grid view
- Enable grid view
- Make default view
- Custom style
- Grid Item Badge
badge_label,badge_color,badge_title
Map view
- Enable map view
mapkick_options,record_marker,table,extra_markers
- Make it the default view
Customize Avo
Customization options
- Change the app name
- Timezone and Currency
- Resource Index view
- Resources per page
- Per page steps
- Resources via per page
- Default view type
- ID links to resource
- Resource controls on the left or both sides
- Container width
- Display the Index view full-width
- Display all views full-width
- Cache resources on the Index view
- Context
- Eject
- Breadcrumbs
- Breadcrumbs for custom pages
- Page titles
- Home path
- Use a lambda function for the home_path
- Mount Avo under a nested path
- Custom view_component path
- Custom query scopes
- Custom scope for Index page
- Custom find method for Show and Edit pages
- Custom to_param method
- Using the friendly gem
- Using prefixed_ids gem
- Disable features
- Customize profile name, photo, and title
- Customize the name of the user
- Customize the profile photo
- Customize the title of the user
- Customize the sign-out link
- Skip show view
- Logger
default_url_options,turbo,pagination,click_row_to_view_record
- Associations lookup list limit
associations_lookup_list_limit,persistence- Persistent UI State Configuration
- Overview
- Configuration
- Behavior
- How It Works
- Recommended Session Store
alert_dismiss_time- Example
first_sorting_option- Example
exclude_from_status- Example
- Common use case
Eject views
--partial- Prepared templates
- Logo
- Header
- Scripts
- Eject any template
--component,--field-components,--view,--scope,--controller
Custom view types
Menu editor
- Menu item types
link_to- link_to options
- path
render,resource,dashboard,section,group,all_resources- Arguments:
- Example:
all_dashboards- Arguments:
- Example:
all_tools- all_ helpers
- Item visibility
- Add data attributes to items
- Using authorization rules
- Icons
- Icons on resource, dashboard, and link_to items
- Collapsable sections and groups
- Default collapsed state
- Authorization
- Profile menu
- Forms in profile menu
- Custom content in the profile menu
Search
- Enable search for a resource
- Custom search provider
- Authorize search
- Configure the search result
title,description,image_url,image_format,help,result_path,hide_on_global
- Resource search
- Global search
- Hide the global search
- Scope out global or resource searches
- Searching within associations
- Results count
Localization (I18n)
- Localizing resources
- Localizing fields
- Localizing buttons label
- Setting the locale
- Customize the locale
- FAQ
- The I18n.t method defaults to the name of that field/resource
- Using a Route Scope for Localization
Branding
- Configure brand color
- Customize the chart colors
- Customize the logo
- Customize the missing image placeholder
- Customize the favicon
Routing
- Default Mounting Behavior
- Mount Avo under a scope
- Add your own routes
Multitenancy
- Breakdown
- Route-based tenancy
- Set the proper routing pattern
- Set the tenant for each request
- Session-based tenancy
- Set the tenant for each request
- Add an account switcher
Actions
Overview
- What Are Actions?
- Key Benefits
- Streamlined Workflows
- Flexibility
- Batch Operations
- User Input Forms
- Common Use Cases
Generate
- Basic Generator Usage
- Generator Options
- --standalone
- Best Practices
- Examples
Registration
- action
arguments,icon
- divider
label
Execution & Feedback
- Fields
- The handle method
- Feedback notifications
succeed,warn,inform,error,silent
- Response types
reload,redirect_to,download,keep_modal_open,close_modal,do_nothing,navigate_to_action,append_to_response,reload_records
Customization
- Visual customization
name,message,confirm_button_label,cancel_button_label
- Behavioral customization
no_confirmation,standalone,visible,authorize,close_modal_on_backdrop_click,turbo
Guides & Tutorials
- Helpers
- link_arguments
- Generate an Action Link Without a Resource Instance
- Scenario
- Solution
- link_arguments
- Guides
- StimulusJS
- Passing Params to the Action Show Page
Dashboards and cards
Dashboards
- Generate a dashboard
- Settings
- Cards
- Override card arguments from the dashboard
- Control the base settings from the parent
- Override card arguments from the dashboard
- Dashboards visibility
- Dashboards authorization
self.name
Cards
- Base settings
- Ranges
- Control the aggregation using ranges
- Keep the data fresh
- Hide the header
- Format
- Metric card
- Calculate results
- Decorate the data using prefix and suffix
- Chartkick card
- Chart types
- Customize chart
- Partial card
- Cards visibility
- Dividers
- Dividers visibility
- View-specific card methods
- Resolution order by view
- Example
Kanban board
Overview
- Overview
- Requirements
- Installation
- DB schema
- Create a kanban board
- Create columns
- Configure the board
- Adding items to the board
- How does it work?
- Board and Columns
- Resources and Items
- Add items to the board
- Move items between columns
- Items without that property
- Customize the card
- Authorization
- Authorization Methods
- Customizing kanban models for your business logic
Collaboration
Overview
- Installation
- self.collaboration
- author
- watchers
- I18n Example
- collaboration_timeline
- self.collaboration
- Customizing collaboration models for your business logic
Authorization
- Authorization Methods
collaboration_view_timeline?,collaboration_create_entry?,collaboration_destroy_entry?
Audit Logging
Overview
- Requirements
- Installation
- Install the gem
- Run the installer
- Migrate
- Enable and configure audit logging
- Global enable
- Configure author models
- Enable specific resources and actions
- Display logged activities
- Resource-Specific Activities
- Configuring the Sidebar for Activity Tracking
- Viewing and Navigating Activity Logs
- Enabling Change Logs and Reverting Changes
- Troubleshooting: Missing changeset Field
- Display author logged activities
- Overview of all activities
- Disable specific actions logging
- Conclusion
Filters
Overview
- Differences
- Basic filters
- Dynamic filters
Basic Filters
- Filter options
self.name,self.button_label,self.visible,self.empty_message,options,apply,default,react
- Register filters
- Filter types
- Filter values
- Boolean Filter, Select Filter, Multiple select filter
- Dynamic options
- Text Filter, Date time Filter
- Type
- Mode
- picker_options
- Boolean Filter, Select Filter, Multiple select filter
- Filter values
- Dynamic filter options
- React to filters
- Empty message text
- Keep filters panel open
- Filter arguments
- Manually create encoded URLs
- Rails helpers
decode_filter_params- Usage
encode_filter_params- Usage
- Standalone helpers
Avo::Filters::BaseFilter.decode_filters- Usage
Avo::Filters::BaseFilter.encode_filters- Usage
- Rails helpers
Dynamic Filters
- Filter types
- Conditions
- Query
- Boolean
- Conditions
- Date
- Conditions
- Date time, Time, Number
- Conditions
- Select
- Conditions
- Text
- Conditions
- Tags
- Conditions
- Boolean
- Options
button_label,always_expanded
- Field to filter matching
- Caveats
- Custom Dynamic Filters
- Defining custom dynamic filters
label,icon,type,query,conditions,query_attributes,suggestions,fetch_values_from,options,render_apply_button,apply_on_select,humanized_value,humanized_condition
- Defining custom dynamic filters
- Guides & Tutorials
- How to filter associations
- belongs_to example
- has_many example
- Composable filters
- The Problem: Repetitive Filter Code
- Method 1: Helper Method with Field Configuration
- Method 2: Separate Fields and Filters with Helper
- Method 3: Programmatic Filter Generation
- Method 4: Custom DSL with Method Override
- Choosing the Right Approach
- How to filter associations
Custom content
Custom views
- Generate tools
- Controller
- Route
- Sidebar item
- Customize the sidebar
- Add assets
- Using helpers from your app
- Using path helpers
- For Avo paths
- For the main app paths
- Using path helpers
Custom fields
- Generate a new field
- Use existent field template
- Field options
- Field Visibility
- Customize the views
- Field assets
- Use pre-built Stimulus controllers
- Hidden input controller
- Non existing model field
Custom errors
- Adding Custom Errors
- In a Simple Record
- In a Join Table
Resource tools
- Generate a resource tool
- Partial context
- Tool visibility
- Using path helpers
- For Avo paths
- For the main app paths
- Using path helpers
- Add custom fields on forms
- Where to add logic
Stimulus JS integration
- Assign Stimulus controllers to resource views
- Field wrappers as targets
- Field inputs as targets
- All controllers receive the view value
- Assign Stimulus controllers to actions
- Attach HTML attributes
- Composing the attributes together
- Pre-made stimulus methods
- resource-edit#toggle
- resource-edit#disable
- resource-edit#debugOnInput
- Custom Stimulus controllers
- Use Stimulus JS in a tool
- Set up a controller
- Register that controller with the current Stimulus app
- Use the controller in the Avo tool
Custom asset pipeline
- Avo's assets
- Exclude servings Avo assets from a CDN?
- Your custom assets
- Use TailwindCSS utility classes
- Add custom JS code and Stimulus controllers
- Use Importmap to add your assets
- Use js-bundling with esbuild
- Use js-bundling with rollup or webpack
- Manually add your CSS and JS assets
- Sprockets and Propshaft
- Webpacker
TailwindCSS integration
Media Library
Overview
- How to enable it
- Control who can use it
- Add it to the menu editor
- Use it with the rich text editors
Performance
Cache
- Cache store selection
- Production
- Test
- Development and other environments
- Custom selection
cache_hash
- Caching caveats
- Rows may not be automatically updated when certain associations change
- Option 1: Use touch: true on association
- Option 2: override cache_hash method on resource to take associations in consideration
- root_path change won't break the cache keys
- Rows may not be automatically updated when certain associations change
- Solid Cache
Views
- Log ViewComponent loading times and allocations
- Enable ViewComponent Instrumentation
- Add Logging
Native Avo components
Avo::PanelComponent
- Options
name- Type
description- Type
classes- Type
body_classes- Type
data- Type
display_breadcrumbs- Type
- Slots
tools,body,bare_content,footer_tools,footer,sidebar
Native field components
- Declaring fields
- The form option
- The value option
- Other field options
- Component options
- avo_field helper
Field wrappers
dash_if_blank- Default
center_content- Default
flush- Default
field,resource- Field wrapper areas
- Label
- Value
- Extra
- Options
dash_if_blank- Default
compact- Default
data,full_width- Default
form,field,help,label,resource,stacked,style,view
Internals
Overview
- Public Methods and Internal Usage
Testing
- Testing helpers
- Testing Actions
Avo::Current
user,params,request,context,view_context,locale,tenant_id,tenant
Avo::ExecutionContext
- How does the ExecutionContext work?
target,context,current_user,view_context,request,params, Custom variables,helpers
Avo::Services::EncryptionService
- How does the Avo::Services::EncryptionService work?
- Public methods
encrypt,decrypt
- Mandatory arguments:
message,purpose
- Optional arguments
- Public methods
- Usage example
- Basic text:
- Objects with custom serializer:
- Secret key base
Select All
- How does it work?
- Serializing the query
- Serialization known issues
Icons
- Avo icons
- Example:
- Using heroicons
- Examples:
Reserved model names and routes
- Model names to avoid
- Why these names are reserved
- Alternative approaches
- Using Avo with existing models
- Route Conflicts with resources :resources
- How to Fix It
Extending
Avo::ApplicationController
- On extending the ApplicationController
- Responsibly extending the ApplicationController
- Override ApplicationController methods
Avo.asset_manager
- Add a stylesheet file
- Add a javascript file
Plugins
- Overview
- Light layer
- Register the plugin
- Hook into Avo
- Hooks
avo_boot,avo_init
- Avo AssetManager
add_javascript,add_stylesheet
- Using a middleware to surface asset files
- Create your own plugin