Hallo Niko,

Am 29.06.07 schrieb Niko Dittmann <[EMAIL PROTECTED]>:
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?

warum nicht so:
map.change_password 'change_password', :controller => 'users', :action => 'show'

und im user-controller:

def show
 id = @current_user.id
 ....
end

???

HTH und Grüße
Beate
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an