Displaying 20 results from an estimated 1000 matches similar to: "Need help .. Rails Recipes, in_place_editor, selecting associations"
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
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
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 this page...
it''s just
2006 May 20
3
in_place_editor and no access to value
I have the following in my rhtml and I get an error that ''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
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
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
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.html
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 Feb 05
2
in_place_editor is missing load_text_url option
Ajax.InPlaceEditor supports a loadTextURL 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
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
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
2006 Jan 18
2
categories/recipes & books/descriptions - has_many vs has_one => id question
People,
In the cookbook eg, categories has_many recipes but in a book eg, book
has_one description - doesn''t that mean that the id of the description
should be the same as the id of the book (instead of having it''s own
"description_id" in the book table?
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney
2010 Aug 28
1
validates_uniqueness_of missing in rails 3.0 rc2?
Has anybody noticed validates_uniqueness_of missing in rails 3.0 rc2? I''m not sure if this is a bug or I''m just doing something wrong.
Here''s what I''m doing.
Class 1:
class Title < ActiveRecord::Base
validates_length_of :language, :is => 3
validates_uniqueness_of :language, :scope => :book_id
validate :language,
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,
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 19
3
Table belongs_to either of two other tables?
Suppose I have a site about books and authors, and users can leave
comments on either a book or an author.
I''d want to have a table called "comments", which could belong to either
an author OR a book.
In my structure I wouldn''t be sure whether to include an "author_id" or
a "book_id", or both.
What would be the best way to handle this
2006 Aug 11
2
User Favorites
Hi there,
I''m currently creating a simple (at least so I thought) structure of
user favorites. Basically users can add certain ''objects'' to their
list of favorites.
Here is my current structure (simplified)
class User
has_many :favorites
end
class Book
belongs_to :favorites
end
class Favorite
belongs_to :user
has_one :book
end
The table favorite just has a two
2005 May 25
2
URLS and Human Factors
This post addresses URLs generated by Ruby on Rails from a human
factors point of view.
Allow me to use Hieraki as an example. Hieraki is a great
application. It was one of my first introductions to the power of
Ruby on Rails.
Scenario: When I navigated to Chapter 1 of a book the URL in my
address bar was http://www.library.com/read/chapter/6. This
inconsistancy ("Am I on Chapter 1 or
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a
view ''list'' that renders a collection:
<%= render :partial => ''item'', :collection => @items %>
The item partial looks like so:
<div id="item_<%= item.id %>">
...
<div id="price">
<%= in_place_editor_field :item, :price