You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a custom slug using the instructions in the slug.rb. Here is my attempt:
slug :title do |doc|
doc._id[0..5]+"/"+doc.title.sub(/\s+/,'-')
end
But this doesn't seem to be working. Not even debugger is stopping the flow inside the block that is passed to it. Can you shed some light on what needs to be done here, and what I'm doing wrong. Thanks.
The text was updated successfully, but these errors were encountered:
I'm trying to create a custom slug using the instructions in the slug.rb. Here is my attempt:
But this doesn't seem to be working. Not even debugger is stopping the flow inside the block that is passed to it. Can you shed some light on what needs to be done here, and what I'm doing wrong. Thanks.
The text was updated successfully, but these errors were encountered: