PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

'in_place_editor' method is missing. #699

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a column's "inplace_edit" attribute to "true"
2. Try to view your scaffold.

What is the expected output? What do you see instead?

You should be able to in-place edit that column.

What version (or revision) of the product are you using?

Latest github checkout (2009-09-09).

If this bug causes an exception, please paste at least the first 20 lines 
below.

Showing 
vendor/plugins/active_scaffold/frontends/default/views/_list_record.html.er
b where line #11 raised:

undefined method `in_place_editor' for #<ActionView::Base:0xb5b0934c>
Extracted source (around line #11):

8: 
9: <tr class="record <%= tr_class %>" id="<%= element_row_id(:action => 
:list, :id => record.id) %>">
10:   <% active_scaffold_config.list.columns.each do |column| %>
11:     <% column_value = get_column_value(record, column) -%>
12: 
13:     <td class="<%= column_class(column, column_value) %>" >
14:       <%= record.authorized_for?(:action => :read, :column => 
column.name) ? render_list_column(column_value, column, record) : '' %>

Original issue reported on code.google.com by seegahan@gmail.com on 10 Sep 2009 at 8:49

GoogleCodeExporter commented 9 years ago
That method is in in_place_editor plugin.

Original comment by sergio.c...@gmail.com on 11 Sep 2009 at 10:24

GoogleCodeExporter commented 9 years ago
Ah, thanks. That was easy. :)

Man, ActiveScaffold's error messages make it really difficult to customize 
things. I 
was getting an awesome one today: "Object is not missing constant".

I fixed it by changing:

   active_scaffold :thing { |config| }
       to 
   active_scaffold :thing

Obvious, huh? :)

Original comment by seegahan@gmail.com on 11 Sep 2009 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by sergio.c...@gmail.com on 14 Sep 2009 at 4:05