Hi there, does anyone have a resource for doing a search on a M:N side? That is, I have an object Album with many Keywords. I want to select only albums that have a specific keyword (ie keyword id 5)
Good evening, I am trying to add a jqeury file to my ruby rails app. I have the file, it's loaded (verified using a console), however all the listeners that the jquery file sets up are not attached.
If I copy/paste the code that assigns the listeners, then the application works just fine.
hm, figured my issue out. Rather then setting up the listerners in the js file, I setup the listeners in a function, then call that function at the bottom of the page. Is that how it is supposed to be done?
So, I want to show the "many" side of a relationship as a comma-deliminated list. I do this using: movie.keywords.map(&:name).join(",")
It works well, but I have another object that has a name that I compile in the method file. (The name has a firstname and lastname, and I have a methid that returns a string of the two names combined)
the problem is that map doesn't work with fields that aren't fields in the database