Is there a way to allow admins to modify the content of simple static pages?
I know I can create a “Pages” model with attributes like “Title”, “Content”, “Images” etc, and make administrators modify them. But is there a gem for such a thing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found a different kind of solution which offered me a more completed way in modifying static pages.
Since pages could be different than simple text I used Mercury editor. Watch the demo in the page. There is a good railscast about that but don’t follow it too strictly since something is changed in the new versions(for example the update method is saveUrl while in the cast is called saveURL).
Watch out!: the github project is this, there is another one on github but it didn’t work for me.
Hope this will help somebody.