I am using a javascript file named text_messages.js i would like this to only be used in my text_messages\new.html.erb page.
Right now when i get in any other page in my project in my console I get the error:
this error is happening because I am running the text_messages.js in every page which is what i am trying to prevent. Thank you!
