Guest User

Untitled

a guest
May 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class GrantApplication < ActiveRecord::Base
  2. has_one :household, :dependent => :destroy
  3. end
  4.  
  5. class Household < ActiveRecord::Base
  6. belongs_to :grant_application
  7. end
  8.  
  9. map.resources :grant_applications do |grant|
  10. grant.resource :household
  11. end
  12.  
  13. <% form_for([:grant_application, @household]) do |f| %>
  14.  
  15. undefined method 'grant_households_path' for #<ActionView::Base:0x23eda44>
  16.  
  17. <% form_for(@household, :url => grant_application_household_path(@grant) ) do |f| %>
Add Comment
Please, Sign In to add comment