Can you be more specific about the error you are facing. In rails 4, friendly_id will not automatically overwrite the active record finders. and you should do that manually.
Check here for friendly_id implementation of rails 4 .
http://kapilrajnakhwa.com/blogs/user-friendly-urls-with-friendly_id-gem-in-rails-4