SupeRails
Since Rails 7 you can not scaffold tables in the index view any more. Instead you have a list of cards. Here's how you can bring back tables to your scaffolds.
DHH hates this one simple trick!
Episode source code: github.com/corsego/164-scaffo...
Based on this blogpost: blog.corsego.com/custom-scaff...
Resources:
- / why_did_rails_7_kill_s...
- / scaffold_index_no_long...
- discuss.rubyonrails.org/t/bac...
- stackoverflow.com/questions/7...
- github.com/rails/rails/pull/4...
- github.com/rails/rails/blob/e...
Пікірлер: 7
Neat! Thank you, Ярославе!
I admire how you are able to get information quickly and get to understand the in and out of the framework ❤.
Very cool!
Lol at "DHH hates this one simple trick!"
Waaay better.
Thanks. Good job. I like your video.
@SupeRails
Ай бұрын
thanks Yaro!