I get the following error when attempting to load a nested scaffold
with rtex installed. No error when rtex isn't installed.

I'm running this in a bare-bones test application with nothing beyond
the minimal ActiveScaffold config line in the controllers
using Rails 2.3.2, Ruby 1.8.7, ActiveScaffold git master, rtex gem
2.1.1:

ActionView::TemplateError (wrong number of arguments (2 for 1)) on
line #11 of vendor/plugins/active_scaffold/frontends/default/views/
_list_record.html.erb:
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) : ''
%>

    vendor/plugins/active_scaffold/frontends/default/views/
_list_record.html.erb:11
    vendor/plugins/active_scaffold/frontends/default/views/
_list_record.html.erb:10
    vendor/plugins/active_scaffold/frontends/default/views/
_list.html.erb:24
    vendor/plugins/active_scaffold/frontends/default/views/
list.html.erb:28
    rtex (2.1.1) lib/rtex/framework/rails.rb:34:in `render'
    vendor/plugins/active_scaffold/frontends/default/views/
_nested.html.erb:39
    vendor/plugins/active_scaffold/frontends/default/views/
_nested.html.erb:11:in `each'
    vendor/plugins/active_scaffold/frontends/default/views/
_nested.html.erb:11
    rtex (2.1.1) lib/rtex/framework/rails.rb:34:in `render'


And from the referenced rtex file:

33>>  def render_with_rtex(options=nil, *args, &block)
34>>  result = render_without_rtex(options, *args, &block)
          if result.is_a?(String) && Thread.current[:_rendering_rtex]
            Thread.current[:_rendering_rtex] = false
            options ||= {}
            ::RTeX::Document.new(result, options.merge(:processed =>
true)).to_pdf do |filename|
              serve_file = Tempfile.new('rtex-pdf')
              FileUtils.mv filename, serve_file.path
              send_file serve_file.path,
                :disposition => (options[:disposition] rescue nil) ||
'inline',
                :url_based_filename => true,
                :filename => (options[:filename] rescue nil),
                :type => "application/pdf",
                :length => File.size(serve_file.path)
              serve_file.close
            end
          end

A naming collision, but I don't see where. The rtex gem has no method
named 'get_column_value'.
Suggestions?

david
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to