Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More documentation? #112

Open
coezbek opened this issue Dec 9, 2021 · 0 comments
Open

More documentation? #112

coezbek opened this issue Dec 9, 2021 · 0 comments

Comments

@coezbek
Copy link

coezbek commented Dec 9, 2021

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant