search for: load_text_url

Displaying 6 results from an estimated 6 matches for "load_text_url".

2006 Feb 05
2
in_place_editor is missing load_text_url option
...#39;'ll see an excellent example in Rails of how you might use that option textilize in place edited stuff. Unfortunately, the example doesn''t use the nifty Rails in_place_editor method because ActionView::Helpers::JavaScriptMacrosHelper#in_place_editor doesn''t suppport a load_text_url option (that would ostensibly be passed on to the AJAX constructor as loadTextURL). Dissapointed. I added this line to in_place_editor: js_options[''loadTextURL''] = "''#{url_for(options[:load_text_url])}''" if options[:load_text_url] And now I'...
2006 Jun 12
2
in_place_editor consumes html tags?
I''ve got a bog-standard view which displays textilized data. In the same view, I have an in_place_editor which uses load_text_url to bring in non-textilized data when editing. Now, if I have html tags in the data loaded from load_text_url, they appear to go missing. I can see the tags in the output from my controller method using the console, but the tags are not shown in the in_place_editor textarea and -- most importan...
2007 Dec 19
2
undefined method `in_place_editor'
I''m trying to get Globalization to work using the globalize plugin. In their sample application they use in_place_editor to edit the translate strings. <%= in_place_editor "tr_#{tr.id}", :url => { :action => :set_translation_text, :id => tr.id }, :load_text_url => url_for({ :action => :translation_text, :id => tr.id })%> </p> I get the following error: undefined method `in_place_editor'' I use Rails 2.0.1 and read that in_place_editor, just as auto_complet, got kicked out of rails converted to plugins. I tried installing the...
2006 Mar 25
0
in_place_collection_editor
...@post = Post.new(:id => ''1'', :title => ''Foo'', :section => @sections[0]) + @controller = Class.new do def url_for(options, *parameters_for_method_reference) url = "http://www.example.com/" @@ -91,4 +103,30 @@ :load_text_url => { :action => "action_to_get_value" }) end + def test_in_place_collection_editor_with_simple_array + assert_match "Ajax.InPlaceCollectionEditor(''id-goes-here'', ''http://www.example.com/action_to_set_value'', {collection:[''...
2007 Dec 21
1
in_place_editor not working for Internationalization
...ranslation.text = previous unless @translation.save render :partial => "translation_text", :object => @translation.text end end And the call in view: <%= in_place_editor "tr_#{tr.id}", :url => { :action => :set_translation_text, :id => tr.id }, :load_text_url => url_for({ :action => :translation_text, :id => tr.id })%> </p> It loads the value that it gets from translation_text, but when I try to change the string, all it says in the box is ''Saving...'' and it never updates the entry. --~--~---------~--~----~----------...
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