I want my in place editor to be a textarea instead of a textfield.
Therefore
I am doing the following:
controller:
in_place_edit_for :event, :notes
view:
<%= in_place_editor_field :event, :notes, :rows => 5 %>
The method signature for in_place_editor_field is (object, method,
tag_options = {}, in_place_editor_options = {}). I’m a Ruby newbie but I
understand that the last two hashes will be combined into one, so I
don’t
have to explicity have an empty {} in there. According to the source,
in_place_editor_field calls in_place_editor passing in the options hash.
in_place_editor should pass along the ‘rows’ argument to the
Ajax.InPlaceEditor javascript function. It looks like it should work
judging
by the source, but I still get only 1 row. I tried some of the other
options, such as :okay_text and :cancel_text which don’t work either. Am
I
missing something?
Thanks!
Shane