Rails3のScaffoldはとっても便利なんだけど、日本語化とか始めると、indexやshowでカラム名が固定文字で生成されたりして微妙なんで、いろいろやってみたよ
gem install i18n_generators
変更前 # config.i18n.default_locale = :de 変更後 config.i18n.default_locale = :ja
rake rails:templates:copy
<% attributes.each do |attribute| -%> <th><%= attribute.human_name %></th> <% end -%>
<% attributes.each do |attribute| -%> <th><%%= label :<%= singular_table_name %>, :<%= attribute.name %> %></th> <% end -%>
<th><%= label :member, :name %></th>
<b><%= attribute.human_name %>:</b>
<b><%%= label :<%= singular_table_name %>, :<%= attribute.name %> %>:</b>
<b><%= label :member, :name %>:</b>
def index @<%= singular_table_name %> = <%= orm_class.build(class_name) %>
def index @members = Member.new
rails g i18n ja