Redirecting to page with a phlex view not redrawing the page #900
-
|
Disclaimer: I already found out the solution, but I don't really understand what was happening, and also want to help if someone stumbles on the some. So, I started using Phlex (+ RubyUI) in my new project for the first time. I needed to move fast, so I used Phlex where comfortable and still kept some "classic" views around (generated layout, all form pages). I noticed that some actions do not rewrite the page, only changing parts or appending some HTML to the page (weirdly, at least once it appended after the . At last I found out the problem was that I was using Why is that? And would it be worth it to add some warning somewhere? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
When you render the class without |
Beta Was this translation helpful? Give feedback.
-
|
I thought it should, but it doesn't seem so. I'll try to provide more info, as this seems as possible bug or misconfiguration. |
Beta Was this translation helpful? Give feedback.
-
|
I'd like to add that I've just experienced exactly this issue, thought I was going mad. I have an almost brand new rails app, with the rails generated authentication, and was in the process of swapping out to Phlex views (including the Layout as per the docs).
|
Beta Was this translation helpful? Give feedback.
-
|
I just pushed a commit which should fix this. It will be in the next version of |
Beta Was this translation helpful? Give feedback.
I just pushed a commit which should fix this. It will be in the next version of
phlex-rails. In the meantime, use.newor this workaround.