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
I often use fields_for when creating or updating records in API endpoints or for testing controllers. I think params_for makes more sense in these cases.
post comment_path(conn, :create), params_for(:comment)
The text was updated successfully, but these errors were encountered:
I often use
fields_for
when creating or updating records in API endpoints or for testing controllers. I thinkparams_for
makes more sense in these cases.post comment_path(conn, :create), params_for(:comment)
The text was updated successfully, but these errors were encountered: