Tuesday, March 11, 2008

Rails Gotchas: Routes

This won't work:
map.disclaimer '/disclaimer', :controller => :main, :action => :disclaimer


Whereas this works:
map.disclaimer '/disclaimer', :controller => "main", :action => "disclaimer"


The difference is: the first one contains symbols and the second strings.

No comments: