No, it's the same, Rails just get the I'd from the requirement instance.
Le 16 mars 2014 15:11, "Akshat Pradhan" <notifications@github.com> a écrit :

> In app/views/users/show.html.erb:
>
> >                  <div>
> >                    <%= link_to "Attach proof",
> > -                      new_requirement_proof_path(requirement, @proof),
> > +                      new_requirement_proof_path(requirement_id: requirement.id),
>
> What quick question. If I replace requirement_id: requirement.id with
> requirement, the tests seem to pass. Was there a specific reason to use requirement_id:
> requirement.id ?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/akshatpradhan/compliance_chimp/pull/20/files#r10639486>
> .
>