Gem best_in_place 即时编辑组件

huacnlee · December 20, 2011 · Last by bony replied at February 04, 2012 · 3753 hits

以前做者也的时候我用过 on_the_spot 这个 Gem,但是 best_in_place 这个看起来功能更强大,可以支持 input, textarea, select, checkbox ...

https://github.com/bernat/best_in_place

DEMO: http://bipapp.heroku.com/

这儿有教程: http://railscasts.com/episodes/302-in-place-editing

非常不推薦使用

这个让键盘控怎么玩啊?

#2 楼 @huacnlee 你試驗一下他的 demo,然後看看 railscast 下面那幫哥們的評論啊。 1 text area 需要 ck_editor 咋辦 2 simple_form 結合使用咋辦

#4 楼 @Victor 我认为这类功能只是在一些需要的场景使用,而不是所有地方都用。 所以你说那些都不是问题。

刚好用上。。。修改评论的时候太适合了。。

You need to Sign in before reply, if you don't have an account, please Sign up first.