Feature/using populate if emtpy to dynamically add songs#5
Feature/using populate if emtpy to dynamically add songs#5elvanja wants to merge 9 commits intogogogarrett:masterfrom
Conversation
* introduced album manager for storing albums * introduced album workflow to handle form submit * album accepts nested attributes for songs * using pry gem for debugging * albums controller uses the album workflow
using latest reform that supports populate_if_emtpy
using latest reform that supports populate_if_emtpy
detecting existing users in album manager
|
Wow, great!!! Couple of questions:
|
|
Hi Nick,
By the way, this is the Trailblazer you're talking about? Neat idea! Have you seen http://obvious.retromocha.com/, is it even comparable? Need help with it? |
|
So, couldn't we handle 1. with the new Obvious looks great, it is kinda like a part of the concepts found in Trailblazer. I can see some points where they could interact. They have a lot in common. However, Trailblazer doesn't only speak about architectural ideas, it gives you all that stuff (e.g. with Reform and Contracts, etc). I don't know how far the Obvious implementation goes but some parts look almost identical to my concepts, which is fantastic!!!!! Maybe this can save me a lot of work. Thanks man! |
|
OK, a short plan: I'll drop "user per song" feature and try to make it all work through form directly. I'll ping you when (not if) I get stuck :-) Glad you like Obvious! P.S. Wouldn't mind giving a hand with Trailblazer after this is resolved, even in the form of another "example" project. |
|
Nonono, don't drop any features, but leave the code in the controller for now. We can then abstract that into a layer that might become part of Trailblazer. Great that you're helping out, you already helped me so much "just" by using, feedback and contributing to my gems, brother! ❤️ I think the difference between Obvious and Trailblazer is the abstraction level: Obvious is a concept collection pretty similar to what we find in Trailblazer, which is a very concrete framework giving you implementations. |
|
:-) OK, so related to reform example, I've created a new branch: https://github.com/elvanja/reform_example/tree/feature/back_to_controller Basically, all code from flow and manager moved to controller. Not sure if that was what you wanted, but we can take it from there. |
|
Have we considered making use of this: https://github.com/ryanb/nested_form ? |
No description provided.