Guest User

Untitled

a guest
Apr 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. view = ActionView::Base.new(Rails::Configuration.new.view_path, {}, ProfileController.new)
  2. view.render :template => "profile/index", :layout => "profile", :locals => { :product => @product, :fund => @fund }
  3.  
  4. ## error
  5. The error occurred while evaluating nil.parameters):
  6. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:419:in `template_format'
  7. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:480:in `find_template_extension_from_handler'
  8. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:474:in `find_template_extension_for'
  9. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:398:in `pick_template_extension'
  10. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:298:in `render_file'
  11. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:331:in `render'
  12. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:117:in `render_partial'
  13. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:26:in `benchmark'
  14. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  15. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
  16. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:26:in `benchmark'
  17. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:116:in `render_partial'
  18. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:352:in `render'
  19. /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:345:in `render'
  20. /app/controllers/application.rb:80:in `regenerate_profile'
Add Comment
Please, Sign In to add comment