mardi 16 mai 2017

Getting duplicate data from the controller that is not there

please bear with me as I am quite new to this.

I have the following code in the controller:

@xform = Form.where(:x_id == current_user.id) @yform = Form.where(:y_id == current_user.id)

and the corresponding code in the view:

I'm getting the issue in which both the xforms and yform are returning the same file name into the view. What is causing this issue and how do i fix this. Thanks!

Aucun commentaire:

Enregistrer un commentaire