30 Dec '12, 5pm

いわゆるwizard形式の良い例。session使ってる所を、hiddenがcacheにすべきとは思いますが | Multistep Forms

A good multistep form remembers the input between steps, allowing users to go backwards and forwards through the pages without losing any of the information they have entered. If you just want to break up a big form to simplify the user interface you may could use a combination of JavaScript and CSS to show and hide different parts of the form when the “previous” and “next” buttons are pressed. An example of this approach can be found of Apple’s developer site. If you need something more dynamic and server-side orientated then you’ll need to go through Rails itself and we’ll show you how to do that in this episode.

Full article: http://asciicasts.com/episodes/217-multistep-forms


ruby on rails - get jquery to submit one of two...

stackoverflow.com 31 Dec '12, 5pm

i am trying to get jquery to submit one of two forms when a submit_tag is clicked. I am basing my conditions on the presen...