Is there a way that I can produce a report in RoR without using Ruport or any other report generator rails plugin?
There is nothing magical about a "report", you can create your own view which calculates summary data in whatever type of visualization you might need.
I gave my Spanish railsconf talk about that:
http://www.slideshare.net/ferdinand13/el-ferrocarril-contra-los-arboles-muertos2
(Spanish)
You have a handful of options, any of which is a silver bullet.
I am very pleased with wicked-pdf lately.
I hope this helps you, sorry the slides are in spanish, but code samples should serve you to get an idea.
You can try to use Jasper Report as your report backend processing. You can design your report with Jasper's web interface and programmatically call Jasper's processing tools.
Have a look here.
I hope it'll help.
Related
I love Wallabag, but PHP kills my soul. Does anyone know of another project that uses a framework like Rails?
(PHP is great for what it does, but it's just not my style.)
You can have a look to https://github.com/cantino/ruby-readability
It's more simple than wallabag, I think it's only grab article content. But it does the job.
(thank you for loving wallabag btw)
I need a Rails plugin that gives you the chance to purely separate HTML and any logic in your views. Views should be classes reading the separate markup and replacing it with dynamic content where needed.
Basically Effigy from github does this.
I am looking for something like Wicket, but on the Rails base.
I can remember seeing a plugin from a Rails enterprise that does this. In my memory, it was better and seemed more mature than Effigy. But I forgot its name. It was something like "luxurious" or "delicious"; does anyone know what I am talking about? The plugin was created in a US Rails enterprise.
Any other alternatives would be much appreciated.
I feel that Effigy is almost OK, but it's hard to find tutorials or people using it properly, so I question its the maturity.
Well, if nothing comes up, I will go ahead with Effigy for now.
All right guys, I think I finally found what I was talking about.
The plugin is called "Erector"
The thing that I like about it, is that views are finally plain ruby objects and you can do everything you can usually do in ruby. I found couple of blogposts:
https://github.com/erector/erector
Why I always liked this idea you can easily see in this blogpost
I want to thank the creators for this.
I'm hoping to avoid building this if it already exists. Does anyone know of a plugin for Ruby on Rails that will generate a screenshot of a web site? Thanks in advance to anyone who can help me find one.
As far as I am aware you need a server with a desktop (eg. Gnome, X11, KDE) and a web browser with thumbnail capabilities installed (eg. webkit and CutyCapt). Of course this is not usual for a Linux server.
I have used the service suggested by Soufiane using code based on Peter Coopers snippet and it works very well.
Generating website thumbnails would require significant server resources and some sort of background process and job queue so using a web thumbnail generation service might be a better alternative to generating your own.
Yes there is a wonderful solution:
http://webthumb.bluga.net/
It has an great API and there are some Ruby Wrappers (i.e. http://github.com/simplificator/rwebthumb)
It allows you to process 100 thumbnails a month, if you need more the price for credits is very generous if you ask me.
This is not a plugin, but I found this snippet which is using an external site to do what you want (I think.). I didn't test it though.
This is getting a little dated now, but just for posterity's sake there is an answer over here
Given a Rails application on the server, what is the best charting/graphing solution for displaying dynamic, database driven charts/graph on a web page such as those available in Google Analytics.
An optimal solution would include components that can speak JSON back-and-forth with the Rails application via AJAX.
Thanks!
Check Google Visualization API
how about open flash plugin ;
i have created some nice graphs with this
http://pullmonkey.com/projects/open_flash_chart
Take a look at amCharts.
While many good solutions presented above, the best imho is FusionCharts
Including those suggested here, I rank the solution as follows:
FusionCharts
Open Flash Charts (plugin: http://pullmonkey.com/projects/open_flash_chart)
Ziya LiquidRails (which runs on top of XML/SWF Charts)
The Google Visualization API is nice as well but not unless you're comfortable with everything running through their servers (which I doubt most are). Insofar as my #1 option goes above, the only downside is cost (though there is a free lite version as well).
Thanks again for all the suggestions made above.
Morris.js is definitely worth a look.
http://railscasts.com/episodes/223-charts-graphs-revised?view=asciicast
http://www.oesmith.co.uk/morris.js/
I have to add Wufoo-like WYSIWYG form-builder functionality to a Rails webapp.
Does anyone know of good resources (gems/engines/plugins/example code) that would help?
this is not really an answer to your question, but I still can't add comments unfortunately, due to my reputation level, sorry :)
There is exact equivalent of such functionality in Drupal(php)
http://drupal.org/project/webform especially useful for contact forms, i.e. clients happy and don't bug me every time they want to adjust or even to add new inquiry form :)
Would be nice to have such gem/plugin if any? :P
Thanks.
I don't think creating such a app in rails would be a great idea.
Using AR, such an app would be creating migrations on the fly - which doesn't sound like a great thing to do.
AFAIK, wufoo uses php.