Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

投稿時にユーザーを指定できるように

  • Loading branch information...
commit 44cf70d25cf0c61f3c593c8d0d4ae7520214332a 1 parent 7323852
Nickle authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mblog/app/views/home/index.html.erb
View
4 mblog/app/views/home/index.html.erb
@@ -12,7 +12,9 @@
</ul>
</div>
<% end %>
-
+
+ <%= select("post", "user_id", User.all.collect {|p| [ p.name, p.id ] }) %>
+
<div class="field">
<%= f.label :text %><br />
<%= f.text_area :text %>
Please sign in to comment.
Something went wrong with that request. Please try again.