提交 7e3abbfd 编写于 作者: Y Yehuda Katz

Merge commit 'jose/generators'

...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
<%%= f.error_messages %> <%%= f.error_messages %>
<% for attribute in attributes -%> <% for attribute in attributes -%>
<div class="attribute"> <div class="field">
<%%= f.label :<%= attribute.name %> %><br /> <%%= f.label :<%= attribute.name %> %><br />
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
</div> </div>
<% end -%> <% end -%>
<div class="action"> <div class="actions">
<%% if @<%= singular_name %>.new_record? %> <%% if @<%= singular_name %>.new_record? %>
<%%= f.submit 'Create' %> <%%= f.submit 'Create' %>
<%% else %> <%% else %>
......
...@@ -16,7 +16,7 @@ a { color: #000; } ...@@ -16,7 +16,7 @@ a { color: #000; }
a:visited { color: #666; } a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; } a:hover { color: #fff; background-color:#000; }
div.attribute, div.action { div.field, div.actions {
margin-bottom: 10px; margin-bottom: 10px;
} }
......
...@@ -75,6 +75,7 @@ def test_scaffold_on_invoke ...@@ -75,6 +75,7 @@ def test_scaffold_on_invoke
edit edit
new new
show show
_form
).each { |view| assert_file "app/views/product_lines/#{view}.html.erb" } ).each { |view| assert_file "app/views/product_lines/#{view}.html.erb" }
assert_file "app/views/layouts/product_lines.html.erb" assert_file "app/views/layouts/product_lines.html.erb"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册