94d2fc1815
* Added nxhtml, mostly for django support. * Changed some org settings.
18 lines
291 B
Text
18 lines
291 B
Text
<h1>New post</h1>
|
|
|
|
<% form_for(@post) do |f| %>
|
|
<%= f.error_messages %>
|
|
<p>
|
|
<%= f.label :title %><br />
|
|
<% a = f.text_field :title %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :body %><br />
|
|
<%#= f.text_area :body %>
|
|
</p>
|
|
<p>
|
|
<%= f.submit 'Create' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Back', posts_path %>
|