Salve a tutti, ritorno a postare in quanto ho deciso di riprendere lo studio di RoR ho realizzato un semplice multistep form in Rails 3.1 utilizzando l'ottima guida di http://railscasts.com/episodes/217-multistep-forms FUNZIONA TUTTO, PERO' dopo la prima pagina ho le seconda con 2 tasti 'avanti' e 'indietro' QUINDI se l'utente non riempie i campi puo' fare 2 cose 1. cliccare sul tasto 'avanti' 2. cliccare sul tasto 'indietro' ovviamente se si verifica il caso 1. la 'validation' presente nel modello non fa andare avanti alla pagina successiva senza che non inserisco i valori nei campi (e mi sembra anche giusto) pero se si verifica il caso 2. si avvia la 'validation' anche in questo caso e secondo me non va bene ho forse sbagliato qualcosa\? grazie mille in anticipo C
on 2012-09-25 21:15
on 2012-09-26 00:52
La butto lì, non è che il tuo indietro è un button con type submit? Inviato da Ipad Sante Gennaro Rotondi Responsabile ICT ─ CIO dSmart srl Via per Cernusco 1 20060 Bussero (Mi) t +39 0297380504 m +39 393 6769152 skype: sante_dsmart www.dsmart.it Questa e-mail contiene informazioni strettamente confidenziali che non possono essere copiate, divulgate o aperte da chi non sia il destinatario finale (o ne sia direttamente autorizzato). Se avete ricevuto questa e-mail per errore vi preghiamo di informarci subito. This E-mail is confidential and you must not disclose, copy, circulate or in any other way use the information it contains unless you are (or are authorised to receive it for) the intended recipient. If you have received this E-mail in error please inform us immediately. Il giorno 25/set/2012, alle ore 21:15, Cluter Vipic <astr0surf3r@gmail.com> ha scritto:
on 2012-09-26 02:03
Si lo e' ho un bel: <p><%= f.submit "Back", :name => "back_button" unless @order.first_step? %></p> che e' lo stesso che c'e' nel codice di esempio https://github.com/railscasts/217-multistep-forms/... quindi e' un problema che sta nel controller o basta che metto un semplice javascript.history(back) ... scusate ma nn mi ricodo il comando esatto di JS ciao e grazie, C Sante Rotondi wrote in post #1077545: > La butto lì, non è che il tuo indietro è un button con type submit? > > Inviato da Ipad > > Sante Gennaro Rotondi > Responsabile ICT ─ CIO > > dSmart srl > Via per Cernusco 1 > 20060 Bussero (Mi) > t +39 0297380504 > m +39 393 6769152 > skype: sante_dsmart > www.dsmart.it > > Questa e-mail contiene informazioni strettamente confidenziali che non > possono essere copiate, divulgate o aperte da chi non sia il > destinatario finale (o ne sia direttamente autorizzato). Se avete > ricevuto questa e-mail per errore vi preghiamo di informarci subito. > > This E-mail is confidential and you must not disclose, copy, circulate > or in any other way use the information it contains unless you are (or > are authorised to receive it for) the intended recipient. If you have > received this E-mail in error please inform us immediately. > > Il giorno 25/set/2012, alle ore 21:15, Cluter Vipic > <astr0surf3r@gmail.com> ha scritto:
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.