Old-school Javascript in Rails
summary
Claim: vanilla Javascript plus Rails UJS builds real admin UX without React — no jQuery, remote forms via form_with, and js.erb partials power create, update, destroy, soft‑delete/undo and a copy action. A Rails project demo shows HTML5 drag and drop for reorder with server‑side reordering to keep positions consistent, tiny client code to reapply handlers, and UJS loading indicators to hide latency. Works well for small to medium datasets; server round trips and deeply nested copies are the clear limits.
AI-written summary · about
chapters (10)
- 0:00Start
- 4:50Just Plain Rails Admin Panel
- 6:03Old School
- 9:00Remote Create
- 11:26Remote Destroy
- 13:39Render Flash
- 15:26Inline Updates
- 16:08Soft Deletes
- 17:46Undo Functionality
- 22:22Reordering
related talks
34mYour Front End Framework is Overkill - Server Side Javascript w/ Rails
31mReact.js on Rails
32mModern JavaScript, without giving up on Rails Jonathan Johnson
36mRails is Obsolete (But So's Everything Else)
35mFrontendless Rails frontend
43mBeautiful reactive web UIs, Ruby and you
25mMAKING JAVASCRIPT GREAT AGAIN IN RAILS
31mReact on Rails
