Sam Pohlenz

Results 132 comments of Sam Pohlenz

@michaelfahmy Check out the `authorization` branch of the trestle-auth gem at https://github.com/TrestleAdmin/trestle-auth/tree/authorization#authorization. This is fairly close to being ready to merge into master and will be the proper way to...

This currently isn't possible. However with the Hotwire/Turbo update I am currently working on, there should be a lot of potential to make this work with very little effort. This...

It looks like you might need to add the filter route and controller action to your admin. See this wiki page for a good example: https://github.com/TrestleAdmin/trestle/wiki/How-To:-Add-Custom-Action

The standard RESTful routes are defined internally (see https://github.com/TrestleAdmin/trestle/blob/master/lib/trestle/resource/controller.rb). You could potentially monkey-patch this but it's not the safest route. The method I would currently recommend to re-use your custom...

In your case you might need to specify the route as `get :myfilter, on: :collection`, since it appears not to operate on an instance but on the collection (i.e. similar...

> why do i still get the missing route error? > why do i need to specify the route in contents_admin.rb even though i have specified the def myfilter in...

I think that, for the short term, the wiki is a good place for docs, and I appreciate any help in contributing, major or minor. At the very least, this...

I'd definitely love to see an example of the the work you have done. I've experimented with YARD in the past but it's been a while. However I could definitely...

I like this idea, and would definitely accept (and happy to work together / provide feedback on) a PR that achieves this. A few thoughts in no particular order: 1....

Batch actions, both built-in (i.e. delete) and custom, are definitely on the roadmap, and probably fairly close to the top of the list. There's actually a small part of it...