Hallöchen,
ich habe folgende Route
map.blog_by_date '/blog/:year/:month/:day', :controller => 'blog', :action =>
'show_date', :conditions => { :method => :get },
:requirements => { :year => /(19|20)\d\d/,
:month => /[01]?\d/,
:day => /[0123]?\d/
},
:month => nil,
:day => nil
Jetzt suche ich die Lösung wie ich die params als condition verwenden kann.
Wenn alle 3 Parameter angegeben sind ist das recht einfach mit Date.new aber
sobald nur ein Jahr mit Monat bzw nur ein Jahr angegeben wurde brauche ich ja
einen Range .
Hat jemand hierfür eine elegante Lösung
Gruß Marco
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug