Content
View differences
Updated by Robin Wagner over 12 years ago
**Actual behavior**
- Preview section is not loaded when Preview button is clicked in “Add news” section (“News” -\> “Add news”).
**Expected behavior**
- Preview is displayed.
**Precondition**
- Module “News” is activated.
**Steps to reproduce**
1. Click on “Add news”.
2. Enter text in description field.
3. Click “Preview”.
**Solution Propositions**
- Console output suggests that the correct route is missing
<!-- end list -->
Started PUT "/projects/seeded_project/news/preview" for 127.0.0.1 at 2013-12-18 16:36:53 +0100
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.
ActionController::RoutingError (No route matches [PUT] "/projects/seeded_project/news/preview"):
- PreviewsController\#create expects the method to be POST but the Preview link generates PUT requests. This change to PUT was made here: https://github.com/opf/openproject/commit/bba42a46516e101d73afa30cea876c54a5d5274b\#diff-a9c3bd311eab80c9ebe6a69830f9ad02L1402
- Preview section is not loaded when Preview button is clicked in “Add news” section (“News” -\> “Add news”).
**Expected behavior**
- Preview is displayed.
**Precondition**
- Module “News” is activated.
**Steps to reproduce**
1. Click on “Add news”.
2. Enter text in description field.
3. Click “Preview”.
**Solution Propositions**
- Console output suggests that the correct route is missing
<!-- end list -->
Started PUT "/projects/seeded_project/news/preview" for 127.0.0.1 at 2013-12-18 16:36:53 +0100
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.
ActionController::RoutingError (No route matches [PUT] "/projects/seeded_project/news/preview"):
- PreviewsController\#create expects the method to be POST but the Preview link generates PUT requests. This change to PUT was made here: https://github.com/opf/openproject/commit/bba42a46516e101d73afa30cea876c54a5d5274b\#diff-a9c3bd311eab80c9ebe6a69830f9ad02L1402