)) を参照
== 例1:ユニットベクトルを表示できるようにする
=== 変更したファイル
app/models/analysis.rb
app/views/analysis/_draw_vector_settings.rhtml
=== 具体的な変更
* annalysis.rb
+++ app/models/analysis.rb 24 Feb 2007 14:14:12 -0000
@@ -124,6 +124,7 @@
["color_bar", true, "boolean", false, :vizshot]
]
@@draw_vector_attrs = [
+ ["unit_vect", false, "boolean", true, :ggraph],
["vector_variables_order", [], "array", false]
]
function_attrs = [
* _draw_vector_settings.rhtml
+++ app/views/analysis/_draw_vector_settings.rhtml 24 Feb 2007 14:14:12 -0000
@@ -8,4 +8,9 @@
X-Y component
<%= render(:partial => "variables_order") %>
+
+ <%= check_box("analysis", "unit_vect") %>
+
=end