Displaying 1 result from an estimated 1 matches for "find_all_by_artist".
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all,
I followed the example on: http://www.roryhansen.ca/?p=9 for creating
related drop-down lists.
However, this code actually creates HTML in the controller component:
@albums = Album.find_all_by_artist_id(@params["artist_id"])
@html = "<select id=''album_id'' name=''album_id''>"
@html += "<option value=''''>No Album</option>"
@albums.each do |@album|
@html += "<option value=''#{@albu...