how to upgrade an "old" Phlex 1.4 / Phlex-rails 0.7.1 app to Phlex 1.9 / 1.1.1 #614
Replies: 7 comments 1 reply
-
I've fixed the .to_str by patching a
on the models/classes I needed it to be on - no idea why this is an issue but not a big problem. The form not yielding on the other hand is somewhat more troubling - to say the least. I've tried to fix it like this
again - I'm shooting in the dark here, but I can see that the @_context.target attribute does in fact hold all the HTML that I'd like to be part of the output from the form element |
Beta Was this translation helpful? Give feedback.
-
Can you share the form code? Or at least what kind of object it is? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
sorry - should have added the 'header' too -
and the
|
Beta Was this translation helpful? Give feedback.
-
Not sure if this is mudding the water further - or offering deeper insight - but if I change the template in the above form to
I get the expected output - sort'a - 'cause it comes back in a weird order with the outermost part first and the yield'ed output last like this:
|
Beta Was this translation helpful? Give feedback.
-
am I right to expect this output (provided all components are by my own doing - ie no form_with or other Rails helpers)?
given this:
|
Beta Was this translation helpful? Give feedback.
-
sometimes you just have to 'wait it up' (at least that's what my brother labels it - he's my business partner and together we've had this tiny business adventure for 25+ years; him doing the hardware and me doing the software, and lately my son has entered the 'enterprise' too) anyways - I'm digressing: left the issue to itself for the weekend, and this morning, I took @manu's medicin: built myself a small demo app and did away with the Rails form_with helper - and lo' and behold! All is well (again) |
Beta Was this translation helpful? Give feedback.
-
The title is perhaps too broad?
The issues at hand are
Beta Was this translation helpful? Give feedback.
All reactions