Is there a way in Rails to find out how many yields have been defined in a layout along with their corresponding names?
A:
grep -c yield < layout.html.erb
That should get you the count you're looking for.
Steve Ross
2010-10-27 20:03:47