Skip to content

More documentation? #112

Open
Open
@coezbek

Description

@coezbek

Hi Richard, thank you for the Gem!

Could you provide a bit more documentation how to use trestle-active_storage?

Some questions:

  • What is the purpose of active_storage_fields do [:avatar, :profile_picture] end? Isn't it sufficient to use active_storage_field in a form block?
  • How to set the preview-size?
  • Is there a way to customize the preview (e.g. add the filename)?
  • How to show attachments in the table view?
  • How to disable upload of attachments for a view?
  • Is there a way to get actions to remove attachments?
  • Is there a way to have active storage fields to show up in the automatically generated form/table rather than manually adding them (which requires to create the whole form from scratch)? (found an answer: Adding sidebar without filling form fields? TrestleAdmin/trestle#218 (comment))
  • What are the options for localization?
  • How can css-styling be applied? At the moment the File selector button looks a bit out-of-place.

Please add information on necessary dependencies: I needed to add the following gems to make the default configuration work:

gem 'poppler'
gem 'image_processing', '~> 1.2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions