You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
it"redirects to contacts#show"dopost:create,contact: attributes_for(:contact,phones_attributes: @phones)expect(response).toredirect_tocontact_path(assigns[:contact])end
I did not know this also works, but it should be assigns(:contact) for consistency.
The text was updated successfully, but these errors were encountered:
JunichiIto
changed the title
Ch.5 assings[key] is used
Ch.5 assigns[key] is used
May 3, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
contacts_controller_spec uses
assigns[:contact]
:I did not know this also works, but it should be
assigns(:contact)
for consistency.The text was updated successfully, but these errors were encountered: