search for: set_translation_text

Displaying 2 results from an estimated 2 matches for "set_translation_text".

2007 Dec 21
1
in_place_editor not working for Internationalization
...d(:all, :conditions => [ ''built_in IS NULL AND language_id = ?'', Locale.language.id ], :order => ''text'') end def translation_text @translation = ViewTranslation.find(params[:id]) render :text => @translation.text || "" end def set_translation_text @translation = ViewTranslation.find(params[:id]) previous = @translation.text @translation.text = params[:value] @translation.text = previous unless @translation.save render :partial => "translation_text", :object => @translation.text end end And the call in v...
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 convert...