mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix wrong hash syntax
This commit is contained in:
parent
a4eaecc833
commit
1371b24cce
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ end
|
|||
The corresponding view `app/views/articles/new.html.erb` using `form_for` looks like this:
|
||||
|
||||
```erb
|
||||
<%= form_for @article, url: {action: "create"}, html => {class: "nifty_form"} do |f| %>
|
||||
<%= form_for @article, url: {action: "create"}, html: {class: "nifty_form"} do |f| %>
|
||||
<%= f.text_field :title %>
|
||||
<%= f.text_area :body, size: "60x12" %>
|
||||
<%= f.submit "Create" %>
|
||||
|
|
Loading…
Reference in a new issue