Displaying 20 results from an estimated 10000 matches similar to: "in_place_editor_field in Rails 2.0.2"
2006 Apr 04
3
How to use in_place_editor_field ?
Hello, I really don''t understand how to use in_place_editor_field
In my controller :
class Admin::CategoriesController < Admin::BaseController
in_place_edit_for :category, :title
def list
@categories = Category.find_all
end
end
In the view list.rhtml
<% @categories.each do |c| %>
<td><%= in_place_editor_field :c, c.title %></td>
# snip
<%
2005 Nov 14
0
in_place_editor_field inside a partial collection
(I''ve already posted this to a quite unrelated thread. Sorry for those
reading this twice.)
Did anybody succeeded in using "in_place_editor_field" inside a
partial collection?
It''s working perfectly in a regular template, but the id part becomes
blank when it''s inside a partial collection.
article_controller.rb:
class ArticleController <
2006 Jul 06
0
Using in_place_editor_field for collections?
I am trying to use in_place_editor_field to make many objects editable
at the same time. I think I solved the first step of this problem;
before it was giving me a problem about referencing a nil, so I did
this:
<%= in_place_editor_field ''question[]'', :name %>
adding the [] seemed to fix things. Now all the fields show up on the
page and they are all clickable. But
2009 Nov 06
0
Nested objects not propagating from view
I thought I had this fixed, but apparently not. It works okay from the
console, but not from the view. I have the following:
# partial schema
create_table "users", :force => true do |t|
t.string "login", :null => false
t.string "first_name"
t.string "last_name"
t.string "email", :null => false
2006 Jan 13
0
Controller part of in-place editing
I''m doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section. I think I may have 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
2006 Mar 28
2
In_place_editor_field throws error ...
I receive the following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
when trying to use the in_place_editor_field tag:
<% for employee in @employees %>
<%= in_place_editor_field :employee, employee.fname %>
<% end %>
My model is called Employee and is being populated from a controller
method employees_list:
2008 Jun 16
1
changing the style of in_place_editor_field
Hi...
I''m using in_place_editor_field. I want to change the default style of
in_place_editor_field. I need to apply another style for the label, the
yellow and white highlighting color.
I tried
<%= in_place_editor_field :ci_class, :name, {:id => @ci_class.id},
{:highlightcolor => "#FF0000"} %>
But this is not working. Please help me to change its style.
--
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 Apr 11
0
in_place_editor_field breaks with onComplet option
Hi,
Don''t know why, but the in_place_editor_field doesn''t work anymore afte
a one time update when I
include {:options => "{onComplete: refresh_app}"}.
(complete line)
<%= in_place_editor_field :appointment, ''title'', {}, {:options =>
"{onComplete: refresh_app}"} -%>
Is this a reproducable problem, or is there something wrong
2007 Jun 06
0
in_place_editor_field - for multiple fields together
Does anyone know if there is a way to utilize the in_place_editor_field
with multiple fields together? Currently, I use the
in_place_editor_field for one field, but I want to be able to select a
group of fields and have the option to edit any of the grouped fields
and save any changes as a group.
If so, could you provide excamples?
Thanks
--
Posted via http://www.ruby-forum.com/.
2007 Oct 23
0
Applying CSS style to in_place_editor_field?
I have a simple in_place_editor_field but the default style when
clicking it isn''t quite acceptable for my needs.
I tried using options that in_place_editor can take advantage of but I''m
still getting a small field with a very close "Ok" button.
I''m currently using:
<% for note in status_notes.notes %>
<li>
<% @note =
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
2006 May 01
0
problem with in_place_editor_field
I can''t seem to pass any options other thant :rows to the in_place_editor
<p><%= in_place_editor_field :gallery, ''description'', {}, {:rows => 2,
:cols => 15} %></p>
:cols is just not working, a quick look at the html source confirms this?
I am using rails 1.0..
2006 Feb 07
0
in_place_editor_field with blank value
I have an in-place editor for my customer.notes attribute. Here''s the view:
<% @customer.notes = ''No notes'' if !@customer.notes ||
@customer.notes.strip == '''' -%>
<%= in_place_editor_field :customer, :notes, {}, { :rows => 2 } %>
2006 Jan 04
2
simple_format and in_place_editor_field
Hi!
How can i do to force an in_place_editor_field to format the text with
simple_format while not editing?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060104/bbd141a2/attachment.html
2008 Aug 26
0
in_place_editor_field doesn't work Float
Hi
Anyone please help to solve the issue. how can I use
in_place_editor_field for float column in DB. It''s works well in varchar
& integer.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2007 Nov 18
0
Escaping html entities with in_place_editor_field
I have a field where a user might need to enter text that includes
greater than and less than signs.
I am using in_place_editor_field, so I need a way to tell it to escape
html entities (convert to > and <) when displaying and NOT
escape html entities (just show the greater than and less than signs)
when editing.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You
2008 Jan 28
0
in_place_editor_field using onComplete
Can someone please show correct usage of the Rails
in_place_editor_field in conjuction with onComplete? (Actually what I
really want is onSuccess, but I can check the response code.)
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 May 30
4
aaf and dynamic attrs: a bug?
Hi!
I faced some issue while using it for dynamic attrs indexing/search.
Maybe I made something wrong. Here is test method. Everything works just
fine until last line http://pastie.caboo.se/66274 . Tested on both
stable and trunk of aaf and ferret 0.11.4.
the short version of code below:
Contact.acts_as_ferret :fields => [ :first_name ]
assert
2007 Apr 03
0
[Sybase Adaptor] find_by_xxx does not work correctly.
Hi
Please advice me about the following problem.
* Problem
find_by_xxx method does not work correctly the following caes with
sybase adaptor.
* How to reproducible
model :users
t.column :code, :string <-- :string column
t.column :last_name, :string
t.column :first_name,:string
>> User.find(1)
=> #<User:0x2abe232a68e8