2
Ich konvertiere Rails 2.3.10 Anwendung auf Rails 3.0.3. In routes.rb machte ich Änderungen für ältere Rounting wie unten:Rails 3 Rounting Änderungen
Rails 2:
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
Equivalent Rails 3:
match ':controller(/:action(/:id(/:format)))'
Das Problem ist, ich habe die beiden älteren Routenformate
map.connect ':controller.:format'
map.connect ':controller/:action/:id/:section'
Ich weiß nicht, wie kann ich die über Schienen 2 Strecken gleichwertig Rails verdeckte 3. Kann jemand helfen Sie mir bitte
c: /jruby-1.5.2 /lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/action_dispatch/routi ng/mapper.rb: 164: in 'default_controller_and_action ': fehlend: aktion (ArgumentEr ror) – palani
Wenn ich versuche mit match ': controller (.: format)', bekomme ich den obigen Fehler. – palani