Well long break,Let me guess It over 3 month since I wrote my last post. I’ve been kind of busy lately not manage to dedicate much time to thing that I do.
Rails 3.1.0 is been in picture for a quite a while a now and major feature that been included in Rails 3.1.0 is asset pipeline and pre-processor.
For those is who aren’t aware of Rails 3.1.0 asset pipeline and pre-processor there is a very good article on rails guide and recently Ryan Bates introduce a screencast on Rails 3.1.0 asset pipeline.
I’m not here to talk about asset pipeline you can get it all if you just googled it.
So what I’m here upto then ?
Well ever since I was made aware of what asset pipeline and pre-processor more importantly pre-processor ,it always trilled me of using a custom pre-processor .
As you all know that Rails 3.1.0.rc1 is bundle with coffee-script and sass support. In your asset folder you may find js and css file that look something like this “*.js.coffee” , “*.css.scss“. Now you can add a chain of pre-processor that just look like this “*.js.coffee.erb” , “*.css.scss.erb”
The post is all about chaining your own pre-processor just as above something like “*.js.coffee.mustache”
Mustache (Mustache is taken just for example here you can use your own) because I been in love with it ever since I explored it . So how to accomplish this .
Stay with me as I will show how ?
Firstly you need to be aware of Sprockets and Tilt library
First the code
Continue reading »
Rchart is ruby port of the slick pChart charting library.
Using Rchart we can develop various format of chart.
- Line Chart
- Cubic Curve Chart
- Bar Chart
- Pie Chart
- Filled Line Chart
- Stacked Bar Chart
And many more ,You can checkout examples of rchart.Some of examples are listed below.
Rchart:- Stacked Bar Chart
Rchart - 3D Pie Chart
Rchart -Line Chart
Rchart gem require ruby-gd gem and GD library.
To install rchart gem on ubuntu following packages needed.
- sudo apt-get install libgd-ruby
- sudo apt-get install libpng-dev
- sudo apt-get install libgd2-xpm-dev
- sudo gem install ruby-gd
After installing rchart,You can checkout examples of rchart.
More examples of rchart is available on http://amardaxini.github.com/rchart/.
Online Documentation is available on http://rdoc.info/gems/rchart/1.1.1/frames
If you have found any difficulties to install or running rchart,then comment on this post or write issues on github.
Today, I have started testing Beta release of Rails 3.0.By Default Rails 3.0 start with webrick.To start with mongrel do following steps.
1)Install mongrel gem
sudo gem install mongrel
2) After installing mongrel gem go to config/boot.rb file
and add following line
3) Start server as rails server