Hi Ryan…you’re a great man to go this far into my problem…I
appreciate it.
I made the code as simple as possible which should make this easier to
troubleshoot.
test_it controller:
def jackster
end
RAILS_ROOT/views/test_it/jackster.rhtml:
<%= render :partial => ‘sample’ %>
RAILS_ROOT/views/test_it/_sample.rhtml:
Hello World
production log:
Processing TestItController#jackster (for 172.21.80.102 at 2008-01-23
21:15:39) [GET]
Session ID:
BAh7CDoOcmV0dXJuX3RvMDoJdXNlcmkNIgpmbGFzaElDOidBY3Rpb25Db250%0Acm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNl
ZHsA–a9910396813648d89e0a03f35b0b15d8c1122330
Parameters: {“action”=>“jackster”, “controller”=>“test_it”}
Rendering template within layouts/test_it
Rendering test_it/jackster
ActionView::TemplateError (wrong number of arguments (0 for 3)) on
line #1 of test_it/jackster.rhtml:
1: <%= render :partial => ‘sample’ %>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
partials.rb:115:in logger' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/ partials.rb:115:in
render_partial’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
base.rb:352:in render' app/views/test_it/jackster.rhtml:1:in
_run_erb_47app47views47test_it47jackster46rhtml’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
base.rb:637:in `send’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
base.rb:637:in
compile_and_render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/ base.rb:365:in
render_template’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
base.rb:316:in `render_file’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:1100:in
`render_for_file’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:836:in
`render_with_no_layout’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/layout.rb:262:in
render_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/benchmarking.rb:51:in
render’
/usr/local/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/benchmarking.rb:51:in
render’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:1153:in
default_render' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:1159:in
perform_act
…whadaya think?
jackster