A solid tutorial for creating a simple wiki application in Ruby on Rails?

I searched and I found a lot of obsolete ones.

Any suggestions?

+4
source share
5 answers

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

  • You create an empty application using the zena wiki

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

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

  • You change the status of an anonymous user 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 regular version control, comparison tools, and image management.

+2
source

I think that creating such an application from scratch would be much easier to trust me! The reason I do not propose building from a CMS or any other gem is because you need to find out how it works, which might be easier, but integrating it into your application is difficult and it gets tougher, especially when versions are different. I built a wiki for one of the social networking sites that I built. It's simple. I built it just like I created a blog. Each blog has a post and an author, like a wiki has a user and a question asked by the user.

The blog has comments, and the wiki has the answer to the question. All other small details follow. I'm still in the process of creating a reliable wiki with these basics. Therefore, I will be happy to help with further questions.

Video that helped me in this process:

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

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

+2
source

You might want to take a look at the instiki source code: http://github.com/parasew/instiki - there is a lot of code that you can reuse. enjoy!

+1
source
0
source

Perhaps your views on working examples will also help. I don't know the wiki tutorial for rails, but I know about these wiki solutions written on top of the rails and without rails, but written in ruby:

  • irwi is a complete wiki plugin for Ruby on Rails
  • instiki is another rails wiki
  • riki wiki is fun: it was written in ruby ​​for the shortest wiki contest, it is not documented, but the code can explain itself
0
source

All Articles