Skip to content

Instantly share code, notes, and snippets.

@azabaj
Created July 25, 2011 20:51
Show Gist options
  • Save azabaj/1105173 to your computer and use it in GitHub Desktop.
Save azabaj/1105173 to your computer and use it in GitHub Desktop.
# comments/_form.html.erb
<div class="new_comment">
<%= form_for(@comment, :url => project_message_comments_path(@project,@message)) do |f| %>
<%= error_messages @comment %>
<p><%= f.label :content, 'Szólj hozzá!' %>
<%= f.text_area :content, :class => 'text maxwidth' %></p>
<div class="submit_wrapper">
<%= f.submit 'Elküldöm a hozzászólást' %>
</div>
<% end %>
</div>
# és ezt a paritalt vagy a messages/show-ból húzzuk be
# vagy a statuses/show-ból. és ennek megfelelően kell majd postolni és a kontrollerben pedig redirectelni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment