Guest User

Untitled

a guest
May 27th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. NoMethodError in Main#index
  2.  
  3. Showing app/views/main/index.html.erb where line #4 raised:
  4.  
  5. undefined method `to_uri' for "test":String
  6.  
  7. Extracted source (around line #4):
  8.  
  9. 1: <% for column in @columns %>
  10. 2: <div class="column_<%= column.position %>">
  11. 3: <% for category in column.parent_categories %>
  12. 4: <h2><%= link_to category.name, category_path(category) %></h2>
  13. 5: <%= display_categories((category.children + category.forums).sort_by(&:name), category.display_mode) %>
  14. 6: <% end %>
  15. 7: </div>
  16.  
  17. RAILS_ROOT: /myapp
  18.  
  19. app/models/category.rb:34:in `permalink'
  20. app/models/category.rb:38:in `to_param'
  21. (eval):15:in `category_path'
  22. app/views/main/index.html.erb:4
  23. app/views/main/index.html.erb:3
  24. app/views/main/index.html.erb:1:in `each'
  25. app/views/main/index.html.erb:1
Add Comment
Please, Sign In to add comment