Skip to content

Instantly share code, notes, and snippets.

@dlikhten
Created June 28, 2011 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlikhten/1050441 to your computer and use it in GitHub Desktop.
Save dlikhten/1050441 to your computer and use it in GitHub Desktop.
<%- semantic_form_for(@doctor) do |form| -%>
<!-- if i comment this one out, the second will show -->
<%- form.semantic_fields_for :user_roles do |role_form| -%>
<%- role_form.semantic_fields_for :user do |user_form| -%>
<%= user_form.input(:email) %>
<%- end -%>
<%- end -%>
<!-- this will not render unless the prev is commented out -->
<%- form.semantic_fields_for :npi_record do |npi_form| -%>
<%= npi_form.input(:npi_number) %>
<%- end -%>
<%- end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment