app/views/textboxes/show.html.erb in mega_bar-0.0.1 vs app/views/textboxes/show.html.erb in mega_bar-0.5.1
- old
+ new
@@ -1,5 +1,6 @@
-<br><%=text_field_tag(
- displayable_field[:field].tablename.singularize + "[" + displayable_field[:field].field + "]",
- value,
- size: displayable_field[:display_format].size
- )%>
\ No newline at end of file
+<br>
+<%=text_field_tag(
+ param_from_tablename(@mega_model_properties, field.tablename) + "[" + field.field + "]",
+ value,
+ size: textbox.size, title: field.tool_tip, :data => {:toggle => 'tooltip' }
+ ) if textbox %>