GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple chord viewing interface layered upon pngs of mandolin chords I found somewhere a while ago.
Clone URL: git://github.com/kjell/chords.git
Lose the /c/ the chord route, just have it be root with a name param.
kjell (author)
Sat Aug 09 20:22:08 -0700 2008
commit  f7d2a6561c6d637ce00527466214ab99a3839e8d
tree    d7d19f8bf01d9daca0e5b54d1fc7811a7249e925
parent  19bcbfd59ee1330cac0664b8a15b28a69ef9e831
...
34
35
36
37
 
38
39
40
...
34
35
36
 
37
38
39
40
0
@@ -34,7 +34,7 @@ get('/find') do
0
   haml :chords
0
 end
0
 
0
-get('/c/:name') do
0
+get('/:name') do
0
   @chord = if (_chords = params[:name].split('|')).size > 1
0
     find(_chords)
0
   else
...
6
7
8
9
 
10
11
12
13
...
6
7
8
 
9
10
11
12
13
0
@@ -6,7 +6,7 @@
0
   %p= "sorry, no chords for ''#{params[:q]}'" if @chords.empty? && params[:q]
0
   - @chords.each do |family, chords|
0
     - chords.each do |chord|
0
- %li= %[<a href="/c/#{chord.chord}">#{chord.chord}</a>]
0
+ %li= %[<a href="/#{chord.chord}">#{chord.chord}</a>]
0
     %hr
0
     
0
   %a{:href => '/'} back
0
\ No newline at end of file

Comments

    No one has commented yet.