-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly redirect assets containing periods in the filename
E.g. the minister-of-funk.960x640.jpg test file. This was causing the people.feature:57 to fail because it was being redirected to minister-of-funk.960x640 (i.e. it was dropping the jpg extension). This seems to be because Rails was treating '960x640' as the extension (previously defined in routes.rb) and 'jpg' as the format in the call to `redirect_to`. Renaming `extension` to `format` in routes appears to do the trick. The change to the assets_test illustrated the problem before the change in this commit. TODO: Roll this into the previous commit. Without it the previous commit fails the people.feature.
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters