Ruby on Rails User Control - ruby-on-rails

I want to develop some kind of user control solution in Rails, so then that control can be easily added to Ruby On Rails sites.
For example, lets say, i want to create some chat user control with its own database,views,controllers, so then that chat control can be added to Ruby On Rails sites.
Is this possible? And if yes, what should i learn for that(plugins,gems?)
Thanks in advance

You want to build an Engine.

Related

Admin Panel System Design using Ruby on Rails

I'm trying to make an admin panel for a website that is already running. I've never deployed an admin panel feature, so I want to ask you what the best and most common approach to creating one, and what I need to look out for when I launch it using a subdomain admin.mydomain.com. This website already has users and sessions controller, and I also would like to know how to differentiate two different authentication systems.
Thanks!
you can use Active admin gem.
see the complete documentation from this link https://activeadmin.info/0-installation.html

Rails/Refinery CMS: Adding to existing application + modifying existing code via CMS

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

Is there a Rails Gem for Page Stats?

I'm allowing users to create sites within my application, and I want to provide simple stats to them like the number of page views. Is there a Rails gem that I can implement to do this?
Check this similar question simple hit counter for page views in rails. Based on the answer to the mentioned question, a gem named impressionist was created by John McAliley. The gem is Rails 3 ready, so you can include it in your app directly.
Try out the StatsMix gem. You can use it to track any action or event in your application. Disclaimer: I'm the founder and it's a subscription based (paid) service. We do have a free developer plan though and have the abilty to embed charts and dashboards to easily allow for providing stats to your users.

Best Way to Handle the UI Layer Within a Ruby Architecture

Are there some tools like CMS or UI-level frameworks that help in the maintenance and development of the UI layer within Ruby architectures?
I am still learning Ruby but as I understand it, it is very coupled with the front-end, correct?
Thanks,
Alex
You can use active_scaffold to get ajaxified crud interface and it can get integrated inside your existing rails app easily.
github.com/activescaffold/active_scaffold/wiki/Getting-Started
You can also use hobo but from I have gathered you need to use it right from the beginning as its generator creates the app.
hobocentral.net/
You can use comatose cms for integrating a basic content management functionality in your existing ror app.
comatose.rubyforge.org/getting-started-01.html
Also if you are looking for something pre-packed with rails then you can use command:
$ rails generate scaffold Post name:string title:string content:text
Command above is specific for rails 3 (in previous version scaffolding was available via ruby script/generate scaffold).
guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding
Hope this helps.
Are there some tools like CMS or UI-level frameworks that help in the maintenance and development of the UI layer within Ruby architectures?
CMS and UI level frameworks are very broad categories that you are talking about. Just to get you started, I will list down some I started with
Nifty-generators
blueprint-css
jquery-rails
I am still learning Ruby but as I understand it, it is very coupled with the front-end, correct?
No, its not very coupled with the front end as you think it is. You can assume Rails(Ruby) as just the back-end that will just send back data and when data has arrived at front-end, its your wish how to present it, format it or whatever you want to do with it.

Which CMS features do you need in Rails?

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.

Resources