Skip to content

Instantly share code, notes, and snippets.

@brenttaylor
Created February 15, 2012 01:18
Show Gist options
  • Save brenttaylor/1832279 to your computer and use it in GitHub Desktop.
Save brenttaylor/1832279 to your computer and use it in GitHub Desktop.
Rails url redirects.
<%= form_for([@commentable, Comment.new], :url => company_comments_path) do |f| %>
<div class="field">
<%= f.label :content %><br />
<%= f.text_area :content %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment