Ciao,
sto cercando di far funzionare correttamente un menu tramite l'helper
"link_to_unless_current".
In pratica ho diverse voci nel menu come ad esempio:
link_to_unless_current('libri', books_path, { :controller => 'books' })
Nel momento in cui sono nella View corrispondente al controller: books e
alla action: index tutto ok, il link non viene stampato.
Se però clicco per entrare nella scheda di un libro, la voce del menu
torna linkata.
In pratica, nello stesso controller (books) salto dalla action: index a
show e basta.
Visto che nell'helper ho indicato solo il controller (books) non
dovrebbe comunque rimanere la voce senza link (come vorrei accadesse)?
Grazie.
on 2010-03-02 17:49
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.