similar to: In_place_editor_field throws error ...

Displaying 20 results from an estimated 1000 matches similar to: "In_place_editor_field throws error ..."

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 <%
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 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 Mar 22
9
Setting empty fields with in_place_editor_field
Hi all! Playing around with in_place_editor_field, I found that when you set a field to be empty, you can''t edit it at all anymore after that. Am I doing something wrong or is this the way it is intended to be? If so, is there any way around that behaviour? Is it just styling? Best regards, Raphael -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
7
Whats the best way to achieve this?
employees HABTM projects, projects HABTM employees. I am doing a permissions page for a selected project. I know that I can get all of the employees in the system (@employee.find(:all)) or get all the employees for the selected project. What i''m trying to do is get a list of all the employees in the system and have a check box that states if they are associated with the current
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 Apr 27
6
How to trim a string?
This must be really simple but I have looked everywhere. I have a <%= item.description -% in my view and I want to trim it to 10 words. The description can be long and I want to trim this in my preview? -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
7
Javascript helpers not updating table row in IE6
Trying to replace a table row with an id using both RJS templates and normal link_to_remote :update. Neither work in IE6, fine in FF etc. If I use the same code but target a div with an ID it works. This is tricky as I have a table with edit buttons, when the button is pressed that row gets updated with a partial containing a form for update. I need this to work as II don''t fancy
2006 Feb 08
3
ungenerate / remove scaffold command?
I have seen this somewhere and can''t find it now. Is there an ungenerate or remove command for the scaffold generator. It would be easier than removing all the files by hand. I have tried ./script/ungenerate but no luck. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work. Throws an error: c:\work\development\rails\application1>ruby script/console Loading development environment. c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined method `up case'' for nil:NilClass (NoMethodError) from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup''
2006 Mar 14
15
in_place_editor_field -- values not clickable
Hallo -- I''ve just installed the latest stable version of rails, and am following the rails recipies book''s first recipie -- using in_place_editor_field. My problem is that the code throws no error, but the resulting fields are not editable -- the values just come up as text, rather than clickable-then-editable fields. Can anyone help shed any light on why this might be the
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of the script.aculo.us options such as :cols, :save_text, :cancel_text, but how do I access the okButton = false & submitOnBlur options? Basically, I want no submit button, a cancel button, and the ability to submit when I tab out of the field. Is this doable without writing a helper? (avoiding digging that deep so
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
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 Feb 19
3
accounts and subdomains
With reference to a previous post:http://www.ruby-forum.com/topic/55201#new I would like my app to function as follows: A new user signs up for my application, his username is "andy". When andy now logs in to the application the url is redirected to : http://andy.myapplication.com Questions: Is this possible to develop on a windows box with webrick? Do I need anything special like
2006 Feb 21
11
helper for models?
Is there such a thing? I have some duplicate methods in my models, can I place them somewhere and call them in to my models, thus keeping DRY? -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble getting the ID passed through to the controller. I use this in my view to create the field: <% for frame in @frames %> ... <%= in_place_editor_field :frame, :price %> <% end %> and this produces the following in my output: <span class="in_place_editor_field"
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
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/.