OSDN Git Service

fix license picture
[pettanr/pettanr.git] / app / views / templates / r / form / tag / _select.html.erb
index 65bb2cb..fcec3a3 100644 (file)
@@ -1 +1,4 @@
-<%= select_tag tag.form_field_name, options_for_select(t_select_items(tag.items), :selected => tag.value.to_s), tag.options %>
+<%= select_tag tag.form_field_name, 
+  options_for_select(tag.source_by_model? ? tag.items : t_select_items(tag.items), :selected => tag.value.to_s), 
+  tag.options 
+%>