I have a Story resource nested in a User resource. How do I fix this generate functional test?
test "should create story" do
assert_difference('Story.count') do
post :create, story: @story.attributes
end
assert_redirected_to story_path(assigns(:story))
end
DGM solution still have the story_url problem