views:

742

answers:

5

I use formtastic to create new and edit forms for my resources.

with something like f.inputs it fetches and displays all my fields automatically.

I would like to know if there is something similar that makes life easier to write the index and show views. I tried using formtastic with 'disable' to show a readonly form but that's not only undesirable but also makes like messy for radio button/check box inputs where I want a summary instead of all the details.

+1  A: 

Viewtastic attempts to do that. Although I haven't personally used it.

coreypurcell
+1  A: 

UberKit is another one I found (although I haven't used it either... hoping to on a new project).

RyanWilcox
+2  A: 

I'm the creator/maintainer of Formtastic. I too have use the "disabled" hack to get "show" views nice and quick. It's not ideal, but it does work. This doesn't specifically answer your question, but in regards to the radio buttons, you can always do :as => :string for the "show" view. I'm doing this lots actually!

Justin French
A: 

I started Attrtastic project at my previous work and I now rewrite it from scratch (while refactoring a bit). I hope to get all I already done in previous version (nested objects collections, space for buttons/links, stuff like 'edit','delete','new') to the end of the month.

MBO
A: 

For the index I would definitely recommend checking out thoughtbot's sortable_table. It makes it super easy to creat clickable sortable tables. Combine with will_paginate. Add inherited_resources to get rid of most of your controller code. And you're set!

sbwoodside