Skip to content
This repository
Browse code

Add info on user-controlled slugs.

  • Loading branch information...
commit d8298738633416b377c09e9622462ae91daac5c5 1 parent c75b80d
Norman Clarke authored September 22, 2010
2  Changelog.md
Source Rendered
@@ -6,7 +6,7 @@ suggestions, ideas and improvements to FriendlyId.
6 6
 * Table of Contents
7 7
 {:toc}
8 8
 
9  
-## 3.1.7 (NOT RELEASED YET)
  9
+## 3.1.7 (2010-09-22)
10 10
 
11 11
 * Reserved words can now be regular expressions.
12 12
 * Fix broken SQL when finding with a nil scope on AR3 (Tony Primerano)
8  Guide.md
Source Rendered
@@ -517,6 +517,14 @@ slugs older than 45 days.
517 517
 
518 518
 # Misc tips
519 519
 
  520
+## Allowing Users to Override/Control Slugs
  521
+
  522
+Would you like to mostly use default slugs, but allow the option of a
  523
+custom user-chosen slug in your application? If so, then you're not the first to
  524
+want this. Here's a [demo
  525
+application](http://github.com/norman/friendly_id_manual_slug_demo) showing how
  526
+it can be done.
  527
+
520 528
 ## Default Scopes
521 529
 
522 530
 Whether you're using FriendlyId or not, a good rule of thumb for default scopes
1  Rakefile
@@ -41,6 +41,7 @@ namespace :test do
41 41
   Rake::TestTask.new(:friendly_id) { |t| t.pattern = "test/*_test.rb" }
42 42
   Rake::TestTask.new(:ar) { |t| t.pattern = "test/active_record_adapter/*_test.rb" }
43 43
 
  44
+  desc "Test against lots of versions"
44 45
   task :pre_release do
45 46
     ["ree-1.8.7-2010.02", "ruby-1.9.2-p0"].each do |ruby|
46 47
       ["sqlite3", "mysql", "postgres"].each do |driver|
2  lib/friendly_id/version.rb
@@ -3,7 +3,7 @@ module Version
3 3
     MAJOR = 3
4 4
     MINOR = 1
5 5
     TINY = 7
6  
-    BUILD = 'pre'
  6
+    BUILD = nil
7 7
     STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
8 8
   end
9 9
 end

0 notes on commit d829873

Please sign in to comment.
Something went wrong with that request. Please try again.