Guest User

Untitled

a guest
Jun 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #7 of app/views/admin/confirm.rhtml:
  2. 4: <br>Description:
  3. 5: <br><%= @description %>
  4. 6: <br>Features:
  5. 7: <% @features.each do |feature| %>
  6. 8: <br><%= feature.humanize %>
  7. 9: <% end %>
  8. 10: <br>Role data:
  9.  
  10. app/views/admin/confirm.rhtml:7
  11. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `send'
  12. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `render'
  13. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in `render_template'
  14. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
  15. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:367:in `_render_with_layout'
  16. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in `render'
  17. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in `render_for_file'
  18. /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:896:in `render_without_benchmark'
  19.  
  20. flash[:name] = params[:name]
  21. flash[:description] = params[:description]
  22. flash[:role_data] = params[:role_data]
  23. flash[:user_data] = params[:user_data]
  24. flash[:features] = params[:features]
  25. flash[:theme] = params[:theme]
  26. redirect_to :action => "confirm"
  27.  
  28. def confirm
  29. @title = "Create a new simulation"
  30. @features = flash[:features]
  31. @name = flash[:name]
  32. @description = flash[:description]
  33. @role_data = flash[:role_data]
  34. @user_data = flash[:user_data]
  35. @theme = flash[:theme]
  36. flash.keep
  37. end
Add Comment
Please, Sign In to add comment