Post History
#5: Post edited
- In a fresh development instance I went to `http://localhost:3000/mod` and got a 500 Server Error related to
- ```
- ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}, possible unmatched constraints: [:post_type]):
- 34: <div class="widget">
- 35: <div class="widget--body">
- 36: <i class="fas fa-file-alt"></i>
- 37: <%= link_to 'Create Help Page', new_post_path(post_type: HelpDoc.post_type_id) %>
- 38: </div>
- 39: </div>
- 40: </div>
- app/views/moderator/index.html.erb:37:in `_app_views_moderator_index_html_erb___3348426895881517021_62660'
- ```
- How can I fix this?
- It might be related to [How can I add post types to a category?](https://collab.codidact.org/posts/285516)
P.S.: I redid the setup of QPixel and the error is not reproducible again.
- In a fresh development instance I went to `http://localhost:3000/mod` and got a 500 Server Error related to
- ```
- ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}, possible unmatched constraints: [:post_type]):
- 34: <div class="widget">
- 35: <div class="widget--body">
- 36: <i class="fas fa-file-alt"></i>
- 37: <%= link_to 'Create Help Page', new_post_path(post_type: HelpDoc.post_type_id) %>
- 38: </div>
- 39: </div>
- 40: </div>
- app/views/moderator/index.html.erb:37:in `_app_views_moderator_index_html_erb___3348426895881517021_62660'
- ```
- How can I fix this?
- It might be related to [How can I add post types to a category?](https://collab.codidact.org/posts/285516)
- P.S.: I redid the setup of QPixel and this error is not reproducible even though the db:seed error still is. Will close as "not constructive".
#3: Post edited
- In a fresh development instance I went to `http://localhost:3000/mod` and got a 500 Server Error related to
- ```
- ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}, possible unmatched constraints: [:post_type]):
- 34: <div class="widget">
- 35: <div class="widget--body">
- 36: <i class="fas fa-file-alt"></i>
- 37: <%= link_to 'Create Help Page', new_post_path(post_type: HelpDoc.post_type_id) %>
- 38: </div>
- 39: </div>
- 40: </div>
- app/views/moderator/index.html.erb:37:in `_app_views_moderator_index_html_erb___3348426895881517021_62660'
- ```
- How can I fix this?
It might be related to [How can I add post types to a category?](https://collab.codidact.org/posts/285516)
- In a fresh development instance I went to `http://localhost:3000/mod` and got a 500 Server Error related to
- ```
- ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}, possible unmatched constraints: [:post_type]):
- 34: <div class="widget">
- 35: <div class="widget--body">
- 36: <i class="fas fa-file-alt"></i>
- 37: <%= link_to 'Create Help Page', new_post_path(post_type: HelpDoc.post_type_id) %>
- 38: </div>
- 39: </div>
- 40: </div>
- app/views/moderator/index.html.erb:37:in `_app_views_moderator_index_html_erb___3348426895881517021_62660'
- ```
- How can I fix this?
- It might be related to [How can I add post types to a category?](https://collab.codidact.org/posts/285516)
- P.S.: I redid the setup of QPixel and the error is not reproducible again.
#2: Post edited
How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}?
- How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil} when visiting the moderator page?
#1: Initial revision
How to fix ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}?
In a fresh development instance I went to `http://localhost:3000/mod` and got a 500 Server Error related to ``` ActionView::Template::Error (No route matches {:action=>"new", :controller=>"posts", :post_type=>nil}, possible unmatched constraints: [:post_type]): 34: <div class="widget"> 35: <div class="widget--body"> 36: <i class="fas fa-file-alt"></i> 37: <%= link_to 'Create Help Page', new_post_path(post_type: HelpDoc.post_type_id) %> 38: </div> 39: </div> 40: </div> app/views/moderator/index.html.erb:37:in `_app_views_moderator_index_html_erb___3348426895881517021_62660' ``` How can I fix this? It might be related to [How can I add post types to a category?](https://collab.codidact.org/posts/285516)