Rails views "new,edit,show" with same layout?

14 views
Skip to first unread message

KlausG

unread,
Feb 9, 2015, 5:42:07 PM2/9/15
to rubyonra...@googlegroups.com
So we have such wonderfull gems like SimpleForm and Formtastic which help us to build our "new" and "edit" view with great support for Bootstrap and Foundation.
But what about the "show" view? Is it still hand crafted or is there any way to generate a "view only form" with an "Edit" button instead of the "Save/Cancel" buttons?

I couldn't find any options in SimpleForm or Formtastic for making the form read_only ( or rendering an simple string instead a form input field )

Or are there any other gems out there helping us to show our data in a simple CRUD application with support for Bootstrap ?

Thx Klaus


Reply all
Reply to author
Forward
0 new messages