Automatic website creation using rails - ruby-on-rails-3

I am looking for a template generator for rails, much like the scaffolding, but complete with preset pages and css, everything already built-in generically.
I am unsure where or how to search for this.
The reason I want something like that and not create one myself, is that I need to create a website really quickly with a certain preset theme

I had the same problem that you had, and could not find a solution. Therefore I built a gem for it.
https://github.com/bighostkim/simple-layout
It only applies to your development mode and it does not use asset to make it simple.
Hope it helps.

Rails Yard may be the solution you are looking for. It is a CMS written in Rails.
Rails CMS WIKI FORUM 2nd option
Rails Admin is great for data management (Create, Retrieve, Update, Delete).

Related

report builder like salesforce has for ruby on rails?

Salesforce report builder is pretty awesome - see here http://www.salesforce.com/_app/video/chatter/help/report_builder.jsp.
Lots of my customers want similar functionality built into ruby on rails apps. I cant seem to find any good tool, framework or gem out there to do this sort of thing. Before I start building one myself, I wanted to see if anyone knew of something out there that was similar or could be used for the same purpose.

Ruby on Rails - using a Themeforest Admin Theme with my project

I am trying to build a CRM tool for a particular niche. I'm a complete newbie. This will be my first app. My only programming experience is with VB and MS Access, so RoR is presenting quite the learning curve. I have worked through the first version of Michael Hartl's Rails Tutorial. (And actually absorbed about 10% of it)
I bought a Themeforest bootstrap admin theme and have two general questions on it:
1) The theme has some PHP code in it. I'm assuming that I should re-write this code in Ruby, right? The code mostly controls things like file uploading, etc.--things that could be re-written in Ruby by an experienced programmer rather quickly (for me, it will take months :)
2) The theme contains a number of different pages. For example, one page is a dashboard, and another is a calendar. Both of these pages have a lot of duplication between them - all the main control buttons, etc., stay the same from page to page. In the theme, each page is a different HTML file where all of the code is simply duplicated. I'm assuming that I'll want to set up some sort of template system in Rails so that I don't cut-and-paste code between a bunch of HTML pages, right? (If I change a main button, I only want to make that change in one place, rather than in each of the 20 HTML files that came with this theme.)
1)
I'm not absolutely sure if there's no other way, but it's most likely the easiest solution.
If you have to rewrite stuff that's common in web apps, like file uploading, there is usually a gem to help you out, so you don't have to do everything from scratch. I can recommend the paperclip gem, Railscast for file uploading, since we use that in our own project.
Note: The Railscast is out of date, so the installation stuff is no longer accurate. Also, paperclip requires ImageMagick to work.
Railscasts also cover lots of other useful gems. If you need to find something specific, just google it. The github page then usually reveals if a gem is still maintained or if you're better off with something else.
2)
Rails prevents duplicated code with partials. Here's the Railscast (syntax might have changed since 2008). Partials let you place code like headers, or buttons in your case, in a file, which can then be rendered in any of your views.
Unfortunately, I can't link the other stuff like the github page and Rubygems.org because I lack the reputation. I hope this still helps a bit.
Extract the common elements of the theme into your application layout.
Extract the modular sections of the theme into their own controllers and actions. For example, create a calendar controller for the calendar section, the actions that appear in the calendar controller will be the views that support the calendar. You can also use partials (views that start with '_'), without having to create a controller action. But if there is data that needs to be sent to the view, it is better to stick with normal controller actions and views.
As for the php code, get rid of it, move as much logic as possible into your model and controllers, with preference to putting in your models. As hobo suggested, check out gems to replicate the functionality of any complicated php code.

Charts in Ruby on rails 3 web app

I need to generate some charts and graphs in a Ruby on Rails 3 app.
I have searched around for a gem to help me out and I have found gchartrb, googlecharts and gruff, but the first two seem to be too old to support Rails 3 (last commit is around 2008) and gruff I read that it is not recommended because it depends on ImageMagick and RMagick. But this was also from the year 2007.
HighCharts also have nice looking charts, but I don't have much JavaScript skills
So what gem or what approach would be best to have some bar/line/pie charts in a rails app?
Google has a great library for drawing charts with HTML5 and JavaScript. It's called Google Chart Tools.
You can pick the chart type you want from their Chart Gallery and use it with JavaScript. Even if you don't have much JavaScript skills, the examples should help you to get the job done.
Even if the question was already answered, I would like to suggest Morris for those that will pass here, even with "not much JavaScript skills" you could create nice charts. I also do not have much Javascript skills, but so far it is being easy. You have basically to create a JSON on the server side and set it to a #variable on your Controller. From your view you access this variable from a Javascript code passing it to the Morris calls.
I started using Highcharts a few weeks ago and can tell you that you don't need that much Javascript knowledge (depending on your needs and the complexity of the data). Apart from that those charts look really nice, in my opinion.
There are good tutorials and examples available which can help you. There's also a railscast regarding this topic.
I've another own option - https://github.com/railsjazz/rails_charts
It's using Apache eCharts, so same powerful as Highcharts and have convinient helpers to generate charts in your RoR app.

Is there a web UI for modifying I18n locales for Rails 3?

I'm looking for a way to modify the values of I18n yml files for locales via web gui, is there some gem for that?
A gem that mimics Twitter Translation Center github.com/badrit/translation_center
Tolk is a web interface for doing i18n translations packaged as an engine for Rails 4 applications
https://github.com/tolk/tolk
Yes, I modified the Newsdesk's translate plugin for using with Rails 3:
https://github.com/romanbsd/translate
There's also tolk written by the creator of rails:
https://github.com/dhh/tolk
In http://rst-it.com we also had problems with finding the right solution, so we decided to make an activeadmin translation panel with interface similar to http://www.localeapp.com/.
Currently we are in design stage (first draft is on https://github.com/KMPgroup/active_I18n) but next week we will have working solution.
I will post here info when we lunch it, but in the meantime you can check https://github.com/KMPgroup/active_I18n and tell us what you think or even write an issue - the more feedback at the beginning the better.
This looks promising too:
http://www.localeapp.com/
I think I will give it a try. Anyone has experience with this service?

How can I implement a/b split testing the easiest way in Drupal 7?

Drupal has a few split testing modules but I can't find one that compatible with recently released (as of this writing) Drupal 7. I could try to use Google Website Optimizer but, I'm new to Drupal, and not sure how I could edit the Head HTML to insert the unique JavaScripts on each page (I assume they all share the same Head declarations).
Can someone help?
There's already a dedicated Drupal module for inserting the GWO code into pages where it's appropriate. If you need to do something more exotic, use it as a starting point.
FYI for others who stumble on this, the Google Website Optimizer module linked by Eaton is now unsupported and obsolete.
With a quick search I found the Multivariate module at https://www.drupal.org/project/multivariate that can be used to setup multivariate or A/B tests.