Comments (3)
I'm planning on implementing a "subresource" feature at some stage. However you are correct that this isn't currently handled properly, and something like you have is probably the best solution so far.
from trestle.
I appreciate the feedback! I know it's still pretty early, but I've enjoyed using Trestle so far.
from trestle.
I needed a solution for subresources too and used return_to
for the redirects which really simplified the code above. For destroy e.g., the code was return_to(on: :destroy) { :back }
.
trestle/lib/trestle/resource/builder.rb
Line 97 in fbcc5ec
Commenting here in case someone needs it in the future.
from trestle.
Related Issues (20)
- Dynamically creating sidebar items
- How to have different form for new and show actions? HOT 3
- Scopes on tables included in forms HOT 1
- ActiveAdmin-like filters
- "Show" view; streamlined DSL for defining controllers/routes
- Adding Confirmation prompt when saving HOT 3
- I'm having a problem with this line of code. Shouldn't it be "#{@instance.class} (#{@instance.id})"?
- Enhance aadb insert trigger to lookup zip_code_view
- Show Tab which is excluded from main form tag HOT 1
- Can we ship pre-compiled CSS? HOT 5
- When using bootstrap's accordion under tab, the errors badge is not displayed correctly
- Lazy load tabs? HOT 2
- how show unchecked checkbox in a column(show table)? HOT 1
- Implementing rescue_from HOT 2
- adding maps HOT 3
- Saving seems to not provide a notice of saving but saves anyways HOT 1
- select empty if no relation? HOT 2
- How to add icons in sidebar buttons? HOT 4
- How to fix "to_param called on non-resourceful admin. You may need to explicitly specify the admin." HOT 1
- Listing dates per page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trestle.