Skip to content

Instantly share code, notes, and snippets.

@tafryn
Created March 13, 2014 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tafryn/9538718 to your computer and use it in GitHub Desktop.
Save tafryn/9538718 to your computer and use it in GitHub Desktop.
------------------------------views/alphas/show.html.erb--------------------------------
<%= form_for [bravo, bravo.build_charile], url: bravo_charlies_path(bravo) do |f| %>
<%= render "charlies/form_fields" %>
<% end %>
------------------------------views/charlies/_form_fields.html.erb----------------------
<%= f.label :foo %>
<%= f.text_area :foo %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment