In my opinion you should have 2 layouts.
The `padding’ layout should be nested inside application and
(according to its name) add some padding :-). Look here about how to
do it in rails 2 and 3:
With that you could setup layout per every action.
layout :padding, :only => [:new].
The second way of doing this:
Add one more stylesheet in every view that needs padding:
<%= yield :head %>
You could abstract it into helper method and use as simple as:
<%= padding() %>
Third way is to create helper that would be used this way:
<%= padding do %>
create your content here
<% end %>
I wouldn’t bother controller with such a minor change in view layer so
I prefere keeping padding in views instead changing layout on the