search for: to_content_tag

Displaying 4 results from an estimated 4 matches for "to_content_tag".

2006 Jul 24
2
InPlaceSelectEditor question
I''m attempting to use the example given in the Rails Recipes book chapter 2, to create a select drop-down using the InPlaceEditor function (modified to be InPlaceSelectEditor. The example given works (a country list drop-down), but I''m attempting to use it to display a list of items generated from an object in another table that is linked to the table that I''m editing.
2006 Mar 25
0
in_place_collection_editor
...ers/java_script_macros_helper.rb =================================================================== --- actionpack/lib/action_view/helpers/java_script_macros_helper.rb (revision 3940) +++ actionpack/lib/action_view/helpers/java_script_macros_helper.rb (working copy) @@ -72,6 +72,86 @@ tag.to_content_tag(tag_options.delete(:tag), tag_options) + in_place_editor(tag_options[:id], in_place_editor_options) end + + # Makes an HTML element specified by the DOM ID +field_id+ become an in-place + # editor of a property using a selection list populated by the . + # + # A...
2006 Aug 02
2
Passing Ajax.InPlaceEditor options
I''ve followed the instructions in the Rails Recipe #1 and have the in_place_editor_field working but now I want to tweak how it looks and behaves. I''d like to be able to override the default yellow highlight color, which is done using the highlightcolor param according to the scriptaculous documentation (unless I''m missing something). I''m new to Ruby and Rails
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of the script.aculo.us options such as :cols, :save_text, :cancel_text, but how do I access the okButton = false & submitOnBlur options? Basically, I want no submit button, a cancel button, and the ability to submit when I tab out of the field. Is this doable without writing a helper? (avoiding digging that deep so