Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
Last active November 20, 2017 22:07
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 ornerymoose/0cd99cd10ee3a5175c79a405c9e701ff to your computer and use it in GitHub Desktop.
Save ornerymoose/0cd99cd10ee3a5175c79a405c9e701ff to your computer and use it in GitHub Desktop.
ok this worked in outages/show.html.erb. Had to add in @relationship = Relationship.new to the outage#new action.
<%= form_for @relationship, :url => relationships_path do |f| %>
<%= f.text_field :child_id %>
<%= f.text_field :outage_id %>
<%= f.submit %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment