Thank you all in advance.
I tried the same application from home and it is now working.
Reason: My company's network security system was blocking full
download of the plugin.
At home i just repeated: ruby script/plugin install
svn://
rubyforge.org/var/svn/liquidrail/plugins/ziya/trunk
and then started my server. Ziya worked the magic and i am so
happy....
Long live ziya...
For my fellow beginners:
step by step on ruby on rails, windows environment (instant rails
package):
- rails Charts
- cd Charts
- ruby script/plugin install svn://
rubyforge.org/var/svn/liquidrail/plugins/ziya/trunk
- rake db:create
- ruby script/generate migration Firstchart
- rake db:migrate
- ruby script/generate controller Firstchart
# Now lets modify the necessary files
# Navigate to app/controllers directory
# Edit firstchart_controller to match the following:
require 'ziya'
class FirstchartController < ApplicationController
include Ziya
def index
end
def sales
chart = Ziya::Charts::Bar.new
chart.add(:axis_category_text, %w{ 2002 2003 2004 2005 2006 })
chart.add(:series, "Sales", [ 10, 15, 20, 25, 30 ])
render :text => chart.to_xml
end
end
# Navigate to app/views/firstchart directory
# create index.html file and make sure it is an ERB File
# Edit it to match the following:
<%= gen_chart( "sales_chart", url_for( :controller =>
'firstchart',:action =>'sales' ), "#ffffff", 400, 300 ) %>
# run your server
- ruby script/server
# Navigate your browser to the following url:
http://localhost:3000/firstchart
THANK YOU ALL ONCE AGAIN..........@Ralph
> > Ziya fan, Ralph.- Hide quoted text -
>
> - Show quoted text -