search for: in_place_editor

Displaying 20 results from an estimated 44 matches for "in_place_editor".

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 meth...
2007 Dec 21
1
in_place_editor not working for Internationalization
I''m trying to implement internationalization in my app. I followed the instructions on the Globalize example (http://wiki.globalize- rails.org/globalize/show/Example+Application), using in_place_editor. The translation works fine, however, I can''t get in_place_editor to work to translate the strings. My controller: class Admin::TranslateController < ApplicationController in_place_edit_for :translation, :text def index @view_translations = ViewTranslation.find(:all, :conditi...
2006 Feb 05
2
in_place_editor is missing load_text_url option
...option. If you look at the InPlaceEditor page (http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor) you''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'...
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi, I am currently reading the Rails Recipes book and like the chapter on providing your own in_place_editor for enumerations / selects. I understood so far, or I believe that I understood ;-), how to do that for a field that uses values only, like choosing from "red", "black", "green". What I fail to understand is how to chose from associated objects?! Consider the fol...
2006 May 16
0
in_place_editor with local autocomplete
Hi Rails gals n guys I am trying to enhance the "Lightning-Fast JavaScript Autocompletion" rails recipe. For those that do not have the pdf-book the recipe explains how to use a javascript array for an auto-complete text field. I want to combine this with the in_place_editor call. My current (unworking) code: <!-- Load the array for autocomplete --> <script src="<%= url_for( :controller => "styles", :action => "jsarray" ) -%>" type="text/javascript"></script> <!-- div to make into a in-place...
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 text...
2006 May 20
3
in_place_editor and no access to value
...'' does not exist. This looks like the examples that I have seen so I am not sure what I am doing wrong. If I take off the :with part, I get a value parameter passed to my controller, but then I can''t figure out how to get the country id passed like I need to. <%= in_place_editor ''add_country_area'', :url => {:action => ''add_country_area''}, :with => "''value=''+escape(value)+''country=''+document.add_trip.country.selectedIndex" %> Thanks for the help Brian -- Posted v...
2006 Jan 19
5
script.aculos.us and the in_place_editor
Hi there, I''ve been trying incorporate the in_place_editor, but have had no luck so far. I read the Ajax.In Place editor wiki on script.aculos.us which was informing, but still left me wondering about a few things. Here''s what I''m trying to do. A user has a profile page which lists their name, age, homepage, etc... There is no form on th...
2006 Mar 18
2
in_place_editor change request...
Hi, How do I make a request to the Rails team to include a line something like: js_options[''savingText''] = %(''#{options[:saving_text]}'') if options [:saving_text] in the in_place_editor method? script.aculo.us supports the ''savingText'' option to control the text displayed while saving after an in-line edit. Having the ability to change this is necessary for the localisation of a Rails app that uses in-line editing. Thanks, Bob ---- Bob Hutchison...
2006 Mar 01
2
In_place_editor in a For loop
I''m using Ajax to create a list of items. Once these items have been created the user can edit in place and delete them. I''ve got the ajax working for delete and removing the element from the page, but the in_place_editor_field doesn''t seem to like being in a for loop. I''ve got in_place_editor working for single items, but what''s the syntax for creating editors for a list of items. Here''s my code so far: <% if @feeds -%> <% for feed in @feeds %> &...
2006 May 18
1
in_place_editor / file_column
has anyone managed to get get in_place_editor and file_column to work in tandem ? I am trying to allow someone to edit a photo in place, but not sure if this is possible. adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/487d5fee/attachment.ht...
2006 Mar 11
3
Widen in_place_editor ?
Is it possible to make that groovy in_place_editor wider? As is, it''s only about 20 chars wide. thanks Joe -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
0
Controller part of in-place editing
...ve the view part working right (at least, the editor pops up as expected) with this in my view: ### <% for link in @links %> <tr> <td> <div id="<%= ''url'' + link.id.to_s -%>"><%= link.url %></div></td> <%= in_place_editor (''url'' + link.id.to_s, :url => {:action => ''edit_inplace''} ) %> <td> <div id="<%= ''title_'' + link.id.to_s -%>"><%= link.title %></div></td> <%= in_place_editor (''titl...
2006 Nov 04
0
bug in scripts option for in_place_editor?
I can''t seem to get :script to set the evalScripts option in the Ajax.InPlaceEditor. No matter what combination of options I try it never shows up. E.g. : <%= in_place_editor ''url_1'', :url => { :controller => ''url'', :action => ''set_url'', :id => 1 }, :cols => 45, :script => true -%> will show the size attribute of 45, but not eval...
2006 Jun 03
0
in_place_editor and erros or validations
Hello, I want to use the in_place_editor but I have validations on the model and I am not sure how to get them back to the user? I would like to show somehting right below the field if the save fails. Any clues? Till Vollmer -- Posted via http://www.ruby-forum.com/.
2009 Oct 05
0
Editable datagrid using wice_grid and in_place_editor?
Hi All, I need to create an editable data grid. What would be a good way to do it? I did not explore wice_grid much - but it does not seem to allow editing. I was wondering if I could use a combination of in_place_editor and wice_grid to achieve this. -- Regards, Kashyap
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person who complained of problems specific to IE, but that''s what I''ve got. My environment is: Rails 1.0 + RJS Plugin Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support) Monkeypatched in_place_editor to support evalScripts I have just started using RJS, and I have two .rjs templates. They are quite simple, each template has two page.replace_html statements, which look like: page.replace_html "some_id", :partial => "some_partial" page.replace_html "some_other_i...
2006 Aug 08
1
RJS in_place_editor Error
http://pastie.caboo.se/7624 It just renders the JavaScript response as text/html rather than it being quiet. try { new Effect.Highlight("h1",{duration:1}); } catch (e) { alert(''RJS error:\n\n'' + e.toString()); alert(''new Effect.Highlight(\"h1\",{duration:1});''); throw e } I got this effect when i included an :update in a
2006 May 11
0
in_place_editor using file_column upload
Has anybody done this? What i want to do is allow a user to upload a photo (in place) and have it replace the current one, ajax style with no full page submit or refresh. thanks adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060511/aaaf63c0/attachment.html
2006 May 30
0
International characters with in_place_editor
I''ve been going through Recipe 1 of the "Rails Recipes" book by Chad Fowler. In-place editing is working just fine but I''ve noticed that the textboxes now won''t let me introduce letters with accents, as in "caf?". Is there some way to work around this problem? I guess I could go into the javascript to find that particular input validation but I wanted