[Rails] FlowCore - A multi purpose, extendable, Workflow-net-based workflow engine for Rails applications

2020-02-17 Thread Jun Jiang
GH repo: https://github.com/rails-engine/flow_core This is my Chinese New Year Hacking week's work, It's ready to open review now, not tested in production yet. I want to do this long ago because I believe a powerful workflow engine will help Ruby/Rails app releasing more efficiency, and I

Re: [Rails] do i need associations to use fields_for

2020-02-17 Thread Ariel Juodziukynas
accepts_nested_attributes_for explicitly checks for associations to exist https://github.com/rails/rails/blob/f33d52c95217212cbacc8d5e44b5a8e3cdc6f5b3/activerecord/lib/active_record/nested_attributes.rb#L340 fields_for does not require accepts_nested_attributes_for to be defined, but it won't

Re: [Rails] do i need associations to use fields_for

2020-02-17 Thread Nicholas Schwaderer
Hello again Fugee, Fields in forms in Rails do not necessarily have to correspond with model attributes. Generally, you might find the Rails edge guide on forms very helpful- as well as the `form_with` API docs which are a bit more specific for some of these questions.