Solid tutorial for building a simple wiki applicat

2019-03-21 07:54发布

I've searched and I've found a lot that are antiquated.

Any suggestions?

5条回答
在下西门庆
2楼-- · 2019-03-21 08:27

Maybe looking at working examples might help you as well. I do not know wiki tutorial for rails, but know about these wiki solutions, written on the top of rails and without rails, but written in ruby:

  • irwi is a complete wiki plugin for Ruby on Rails
  • instiki - another wiki running on rails
  • riki wiki - this is fun: it was written in ruby for the shortest wiki contest, it is not documented, but the code might explain itself
查看更多
聊天终结者
3楼-- · 2019-03-21 08:37

You can easily create a wiki with zena (a rails CMS):

  1. You create an empty application with
    zena wiki

  2. You initialize an empty database
    cd wiki; rake zena:init RAILS_ENV=production

  3. You set the publish, write and read groups of a node to "public" (use the wrench tool, "drive" tab)

  4. You change the anonymous user's status from "moderated" to "user" (user management by clicking on the "Admin User" link)

And you have a wiki with multilingual support (if you need it) and the usual versioning, diff tools and image management.

查看更多
我只想做你的唯一
4楼-- · 2019-03-21 08:39

I think building an application like that from scratch would be much easier trust me! The reason why I dont suggest building from CMS or any other gem is because you need to learn how it works which might be easier but integrating it into your application is tough and it gets tougher especially when the versions are different. I built wiki for one of the social networking website that I was building. It is simple. I built it just like I built a blog. Each blog has a post and an Author just like wiki has a user and a question asked by the user.

Blog has comments and wiki has answer to the question. Every other minor details follow along. I am still in the process of building a robust wiki with these basics. So I will be happy to help with any more questions that follow along.

The video that helped me with this process is:

http://media.rubyonrails.org/video/rails_blog_2.mov

Feel free to ask any more doubts that follow. I will be happy to share the code that I built.

查看更多
Ridiculous、
5楼-- · 2019-03-21 08:42
别忘想泡老子
6楼-- · 2019-03-21 08:46

maybe you want to take a look at the instiki sourcecode: http://github.com/parasew/instiki - there is lots of code you can reuse. have fun!

查看更多
登录 后发表回答