没有向导宝石的Rails多步表单 [英] Rails Multi-Step Form without Wizard Gem

查看:114
本文介绍了没有向导宝石的Rails多步表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个收集呼叫数据的Rails 3.2.14应用程序。新页面和编辑操作表单在一个页面上相当长。我正在寻求实现一个多步骤表单,使用JS /客户端处理来移动步骤。我看过 Wicked Gem 作为一种多步骤表格的方式,但我不需要状态配置,不希望每步更新通话记录。我只需要一个干净的方法将表单拆分为步骤并指示当前步骤。

I have a Rails 3.2.14 app which collects call data. The new and edit action form is pretty long on one page. I'm looking to implement a multistep form that uses JS/client side processing to move along the steps. I've looked at the Wicked Gem as a way to do multi-step forms however I don't need the stateful configuration and don't want to be updating the call record with each step. I just need a clean way to split the form into steps and give an indication of the current step.

我已经查看了Fuelx及其向导组件的表格,但是想知道是否有任何其他JS模块在Rails中创建多步骤表单。

I've looked into Fuelx and its Wizard component for forms but would like to see if there are any other JS modules out there to create multi-step forms in Rails.

我意识到这个问题可能有点模糊所以随意编辑或提供反馈。如果有任何不明确的地方,请告诉我。只是寻找有关如何使这项工作的建议或技巧。

I realize this question may be a bit vague so feel free to edit or provide feedback. If any of this is not clear, please let me know. Just looking for suggestions or techniques on how to make this work.

推荐答案

经过一些试验和错误,我能够使用 Fuelux 在我的应用程序中实现多步骤表单。最后,我将研究构建一个多步骤表单,该表单可以使用 Wicked Wizard Gem 来记录记录的状态。定义步骤的方法。但是现在,Fuelux的Wizard组件运行良好。

After some trial and error I was able to use Fuelux to implement a multi step form within my app. Eventually I will look into building a multistep form which records the state of the record maybe using the Wicked Wizard Gem as a means for defining steps. But for now Fuelux's Wizard component works great.

这篇关于没有向导宝石的Rails多步表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆