Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags and breadcrumbs with scandic letters don't work #22

Open
PolarFox opened this issue Sep 22, 2011 · 1 comment
Open

Tags and breadcrumbs with scandic letters don't work #22

PolarFox opened this issue Sep 22, 2011 · 1 comment
Labels

Comments

@PolarFox
Copy link

I get an error every time I use scandic chars like ä or ö in a tag name. Also albums with those chars leave ugly breadcrumbs.

Tag in question was: Ässät
and below is the log.
-- log start --

Started GET "/tags/assat/photos" for 127.0.0.1 at Thu Sep 22 12:33:22 +0300 2011
Processing by PhotosController#index as HTML
Parameters: {"tag_id"=>"assat"}
Completed 500 Internal Server Error in 3ms

NoMethodError (undefined method photos' for nil:NilClass): app/controllers/photos_controller.rb:9:inindex'
app/middleware/flash_session_cookie_middleware.rb:17:in `call'

-- log end --

@espen
Copy link
Owner

espen commented Sep 25, 2011

I guess the best way to solve this is with a slug attribute that is updated each time the record is updated. I don't want to use id in the tag URL. Should it be parameterized (remove non-ascii characters)? The breadcrums uses the request.path which does not play well with non-ascii characters.

'Ässät' works for me locally though (except for the messed up breadcrumb). I have updated to Rails 3.0.10, might be the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants