Active Admin: Creating a Page in Rails by Admin [closed] - ruby-on-rails

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I just want to know whether an Admin can create a new page like about_us or something similar to that from admin's page in Rails.
He should be able to create a new view, controller and model{not necessary}.
If this is possible please give me some link for it tutorials.

The Active Admin gem creates default UI for data administrators:
Active Admin is a Ruby on Rails plugin for generating administration
style interfaces. It abstracts common business application patterns to
make it simple for developers to implement beautiful and elegant
interfaces with very little effort.
It is not like Joomla admin pages, which allows the admin to change/add the pages users can see, unless their are data-driven in an application specifically written to enable that.
You can look for libraries which solve this problem, or integrate rails with a CMS application (like this: http://joomlarails.com/)

Related

Can we structure a website in groups using Django framework or rails(groups like admin, moderators,helpers,users,etc)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am trying to make a site where i can divide the site into different member categories like admin,moderators,helpers,users,etc with their own functionalities ... I have once used the Django framework, so my question is can i be able to do this task also using Django again, i mean, can Django fulfill this task's requirements easily so i may not need to roam to other languages or frameworks for this particular task?
P.S.: I know php(framework like laravel or others)can do this task but i was just trying to implement Django since i have used it once already. OR do you recommend frameworks like Rails(i have heard a lot about it specifically on field of web-development,can it do this task). OR Anyone please tell me which should i use ?
I am in a lot of dilemma in choosing among these three.
Regards,
Note: I have edited the whole description.
The Django authentication has groups.
Users can be assigned to groups and permissions can be added to groups (giving all the users of the group the set of permissions which is assigned to the group).

Custom CMS features in ASP.NET MVC site [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
We have a requirement for our partners to built a CMS in which some of pages on the site should be configurable by them using the admin panel. So we are planning to create a static website with pre-defined layout and pages and replace those content when partner users will make changes in admin panel.
Now the problem is that this application will be used by multiple partners and if one will edit the information through admin panel then it should not effect the other partners custom pages.
The solution which we are thinking is to replicate the same code on multiple domains for each set of partners and replace the content. Can somebody suggest how can we do in one domain and not replicating the code again and again.
We resolved it by creating the sub-domains for each partner and by creating a standard HTML page with fixed layout and saving the customizable information in database for each partner like text, image paths etc. Then depending upon the partner we get the dynamic content from database and replace on page using jquery. So no need to duplicate the code and no manual effort.

i want to include all controllers, views and models of a gem into my host application. is it possible in ruby on rails? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
There is a gem I included in my project. I want to customize it. I don't know how. I can customize it depending on requirement only if I have all the controller views in my host application.
Is there a way I can copy all the code into my application? How to configure routes and all...?
Will it work if I copy all the controllers and views and models?
Yes,a Rails Engine is exactly what you're looking for. It's a form of a gem that includes all of the above in a host app.
Engines can be considered miniature applications that provide functionality to their host applications. A Rails application is actually just a "supercharged" engine, with the Rails::Application class inheriting a lot of its behavior from Rails::Engine.

Need to know about CMS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In Ruby On Rails which CMS gem support the more powerful features and fully customizable functionality.
I need to create an application that have an admin that create,update and edit, delete the pages.
And wants to use customizable CSS and additional functions like i can add inside application.
For e.g Count likes of an artical on page and sharing the page on facebook.
Your help and suggestions are definably appropriate.
Thanks for Help.
From my own experience I can recommend Refinery CMS which will fulfill most of your requirements. You can fully customize the CSS and it allows you to add Rails Engines to it on the one hand, but it can also be added to an existing application as a gem. You will have to do some work to get your counts and your Facebook sharing though.
I also once heard a talk from the creator of Locomotive CMS which at first sight seems somewhat more flexible, but you will need to invest some more time to get you started. It allows transferring a running site from development to production through a companion app whereas you have to develop your content "online" with Refinery CMS.
I guess your choice will be a matter of taste. There is of course a host of other possibilities listed in the Ruby Toolbox
To give some perspective, we recently created our own CMS from sratch
It's very simple to do - there are several tutorials online which explain the process
Basically, you need:
Models - Post, User, Option
Controllers - posts, application, users, admin: [application, posts]
Views - application(index), posts, admin: [application(index), posts]
Here are some resources:
http://therailworld.com/posts/12-How-to-Create-a-Blog-from-Scratch-Using-Ruby-on-Rails
http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/
http://railscasts.com/episodes/310-getting-started-with-rails?view=comments
http://guides.rubyonrails.org/getting_started.html

Looking for a "full service" Rails 3 plugin/gem/engine with internally managed user creation/auth [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a Rails 3 compatible plugin/gem/engine that takes a more auth-begets-auth approach. Most of the rails "authentication/authorization" plugins I've encountered are set up with a view to users signing up automatically. In the past I've simply used the core of these plugins (for auth purposes) and tacked my own functionality on in order to get the results I want.
It would be nice, though, if there were an existing "full service" plugin/gem/engine that approached the whole Authentication from the standpoint of there being a single (with future) super user and only they can create users? Sort of a management system approach instead of a "hey we trust anyone to join us" approach…?
In a perfect world I'd also like to dynamically adjust permissions for each role, but I'd be happy with just a more "paranoid" authorization/authentication model. If not, I'll continue Frankensteining.
Best
You can set up the sign-up page with a before_filter for authentication with proper authorization so that random people can not create new users.
I recommend CanCan which is a joy to manage Role abilities and denying all but admins to create new users. CanCan can also automatically authorize Controller actions and will not allow even to acquire the signup form if not authorized.

Resources