Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view = ActionView::Base.new(Rails::Configuration.new.view_path, {}, ProfileController.new)
- view.render :template => "profile/index", :layout => "profile", :locals => { :product => @product, :fund => @fund }
- ## error
- The error occurred while evaluating nil.parameters):
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:419:in `template_format'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:480:in `find_template_extension_from_handler'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:474:in `find_template_extension_for'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:398:in `pick_template_extension'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:298:in `render_file'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:331:in `render'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:117:in `render_partial'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:26:in `benchmark'
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:26:in `benchmark'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:116:in `render_partial'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:352:in `render'
- /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:345:in `render'
- /app/controllers/application.rb:80:in `regenerate_profile'
Add Comment
Please, Sign In to add comment