Using Rails 2.3.5, Ruby 1.8.7.
Is there any plugin that will make it easier to make my "show" and "edit" and "new" pages have the same look and feel? I'd love to be able to do the following type of thing. Right now, if I add a field to my model, I have to add it to both the edit.html.erb and the view.html.erb. I want to be able to specify the look fairly extensively, but I want "edit" and "show" to look the same (With execeptions between the two, perhaps, but not many.)
Is there any DRY tool for this?
Essentially, I'd like to be able to make my "edit.html.erb" to be:
<% plugin_form_helper_for @model do |form_helper| %>
<%= render :partial => 'common_look', :locals => {:helper => form_helper} %>
<% end %>
and the show.html.erb be:
<% plugin_show_helper_for @model do |show_helper| %>
<%= render :partial => 'common_look', :locals => {:helper => show_helper} %>
<% end %>
Then the "form_helper" and "show_helper" would implement the same interfaces (with some ability to branch to make slight differences between the layout/look of the two.)