I just noticed that this is an old question. I'd love to know how you solved the problem.
. 7 RESTFul keywords are blocked as friendly as a bullet choice. The intruder is new here.
From your code, it seems that you are trying to set slug to βnewβ, since this is the title of your message.
To prevent the use of reserved words, you can force the slug generator to use a method instead of a column.
class Post < ActiveRecord::Base extend FriendlyId friendly_id :name_and_id, :use=>:slugged # Used slugged mode, need a slug column in db. def name_and_id "#{id}-#{name}" end end
In this code example, when creating a message called my post , localhost:3000/posts/1-my-post works localhost:3000/posts/1-my-post . Separator - added automatically and can be changed.
See Friendly Id Guide.rdoc for details .
source share