Hallo zusammen,

ich stehe vor folgendem Problem und finde im Netz nichts dazu. Ich möchte unter der Route /change_password den users_controller mit der update action und der id des aktuellen users aufrufen. Also etwa so:

map.change_password 'change_password', :controller => 'users', :action => 'show', :id => @current_user.id

Allerdings kann ich in der routes-Datei wohl so nicht auf Instanz- Variablen zugreifen. Wie mache ich das?


Grüße, Niko.

--
___________________________________
niko dittmann
gottfr.-keller-str. 36
78467 konstanz
GERMANY

mail:         [EMAIL PROTECTED]
fon:                +49 7531 959531
fax:           +49 1212 512 852 148
aim:                         ende42
___________________________________


_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an