1

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?

user229044
  • 232,980
  • 40
  • 330
  • 338
Barbared
  • 800
  • 1
  • 8
  • 25
  • It seems you're looking for a CMS gem. [Here's a good list](http://stackoverflow.com/questions/3782988/simple-rails-3-cms-gem-plugin) – alf Jun 29 '12 at 14:15

2 Answers2

2

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.

Barbared
  • 800
  • 1
  • 8
  • 25
1

Copycopter was created for this sort of thing. Watch the railscast.

stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
  • I'm very new to rails so just a question to see if I got it: @stephenmurdoch Copycopter application would become my admin interface, wouldn't it? And administrators will have to change pages content, by searching in that application what they want right? How can I make them retrieve just the content they want? – Barbared Jun 29 '12 at 14:49