Displaying 1 result from an estimated 1 matches for "mediatype_medias_options".
2005 Dec 16
2
Shared code for controllers
Hi,
I think that this is made from a plugin or something in /lib/, but i really
don''t know which is the better way:
I have this in my MediasController:
def mediatype_medias_options
if params[:id]
begin
@mediatype = MediaType.find(params[:id])
render :inline => "<%= options_from_collection_for_select @
mediatype.medias, ''id'', ''name'' %>"
rescue Exception
render :nothing => true...