← Back to Upcase

Array of all objects showing up next to my form

(Tamas Erdos) #1


Sorry for the noob question, but this behavior is completely unexpected:

I have two forms in my application and both of them display an array of the elements associated with the model when I run the server. How do stop this behavior?

Thank you!


(Pedro Moreira) #2

@Tamas_Erdos, check your erb tags in the view.

You are likely using a <%= @something ... %> , probably in a loop, when you mean to use <% @something %>

If you can post the view code, it’ll be easier to point it out :slight_smile:

(Tamas Erdos) #3

@pedromoreira that was exactly it!

Thank you!

(Pedro Moreira) #4

No problem, glad to help!