Does anyone know how to make multiple layouts in refinery? It doesn't have to be in the user admin I just need to be able to programmatically tell some refinery pages to use one layout and others to use a different one.
thanks.
I see that you also posted this to the Refinery CMS Google Group http://groups.google.com/group/refinery-cms/browse_thread/thread/879cea21bd2c2063
So, I'll answer there.
Related
I've been reading the documentation on Refinery CMS but I haven't seemed to come across the right answer yet. If you have an existing Ruby on Rails application, is there a way to add Refinery to it and then run a command so that your previous models become refinery compatible, that is, you design a page and then it becomes editable in the refinery editors?
I'm asking because I'm planning on designing a website for a non-profit that does not have the resources for paid web developers. Is it possible for one web developer to write out the code and then have it all be editable by the editor? Does anyone have any experience with this? Thank you in advance.
If you have an existing Ruby on Rails application
You can add Refinery CMS in an existing Rails application:
http://www.refinerycms.com/guides/with-an-existing-rails-app
run a command so that your previous models become refinery compatible, that is, you design a page and then it becomes editable in the refinery editors
No, you will have to manually convert this models.
I'm asking because I'm planning on designing a website for a non-profit that does not have the resources for paid web developers. Is it possible for one web developer to write out the code and then have it all be editable by the editor? Does anyone have any experience with this? Thank you in advance.
Why don't you use a static website generator like middleman or Jekyll ? And choose a Headless/Decoupled CMS like Contentful.
Refinery CMS will soon be able to use it like a Headless CMS but it needs more work to do that:
https://github.com/refinerycms-contrib/refinerycms-api
https://github.com/refinerycms-contrib/refinerycms-api-wrapper
https://github.com/refinerycms-contrib/refinerycms_middleman
Does anyone know of a quick way to add a role CRUD system to rails?
I only want admins to create users and have all currently signed up users listed on a page in my app.
Im trying to figure out a way to assign users to different roles and restrict them for performing certain actions using collection select or a series of checkboxes.
Ive followed a few tutorials but none seem to be working for me :/
Can anyone recommend a solution? I us devise for my authorization it that matters.
You can think about CanCan. Using it you're able to define roles and restrict access to certain actions or model elements according to the role.
It can be also easily integrated with Devise mentioned by Scott Schulthess.
Devise on github has a wiki page showing how to do this
https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-role
You can also try using API Keys if you want to expose this API to many others
I've been thinking of writing my own backend, because I feel active_admin might not support all the requirements.
I wanted to ask if Active_Admin supports any of these just to be sure:
I have a has_and_belongs_to_many relationship between my ad model
and tag model. In the new ad page I would like to have the form for
the ads, as well as all available tags so the admin can choose which
tags to associate with the ad. I was able to do that normally in my
application, but can I do that with active_admin?
Can I add custom buttons.. Like one to convert to PDF for example,
or one to send an e-mail..
Could I add some sort of before_filter, so the admin can only view a
model, but not edit or delete it for example?
Thank you.
All of those things can be done via Active Admin, but as it was pointed out, it can be quite a nightmare actually implementing certain things depending on the amount of flexibility you need it to have. For that exact reason, I decided to start rolling my own administration panels.
I have tried an implemented almost all robust gems for admin panels. I have also sweated over several hand-made ones.
Active-Admin is very usability centred, but it is not configuration centred.
As you rightly aniticipated, some of the more complex modifications can be tedious.
In my experience, rails_admin is the best middle ground I could find.
Take a look at it, it is highly functional, completely modular (made as a Rails 3 Engine) and simpler to modify.
If you can live without some details when customizing this is definitely the way to go. However, if you need to have everything just right, then there is not substitute for hand-made.
So I want to play with the active_admin gem. Two basic pieces I need is pages and images. I could setup a system myself, but is there any gems or anything out there that make setting this up easy? Ideally the pages would have ability to have custom slugs, nested pages, custom fields etc. And maybe ability to add images to the pages.
Yes yes maybe I should just go with a system like refinery. But I'm curious if there something lighter out there for what I need.
My suggestion: if you want the "lightweight" way, just go to implement your own CMS.
In my experience, for rails application, rebuilt is much easier and faster than refactoring/reuse, if your requirement is kinda of complex.
Maybe you should have a look at active_cms, which is still in active development, but already useful for basic functionality. You can find it here: https://github.com/geisters/active_cms
I am going to write a ContentManagementSystem for RubyOnRails for administration of static pages.
Which features do you prefer to appear in this CMS?
What do you think might be helpful for daily work?
Best regards
Just a good read on Rails & CMS
The Ruby on Rails CMS dillema
something like an drag & drop Template builder.
Userstory :
Create new Page
Take some boxes from the sidebar and put it on an empty page
click the box
add content , pictures etc. to this box
save & publish
.. yeah i want something like this :-) inspired by Wordpress Widget Management.
Look around for existing Rails CMSs likes Radiant, BrowserCms,
Also study Drupal, Wordpress and Joomla in php, they seem to be doing pretty great as CMS's and are awesome at that.
A Django-like in feature but Rails-ish in nature Admin interface. That is the talk of the town these days..
Did you try: http://shane-hippo.blogspot.com/2009/08/hor-experiment-2.html
This experiment shows how you can set up your own application within 15 minutes, with Hippo on Rails.