Skip to content
Pre-built Netzke widgets for your RIA
Ruby JavaScript
Find file
Pull request Compare This branch is 19 commits ahead, 1098 commits behind netzke:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app/models
javascripts
lib
locales
stylesheets
test
.autotest
.gitignore
CHANGELOG.rdoc
LICENSE
README.rdoc
Rakefile
TODO.rdoc
from_05_to_06.rdoc
init.rb
install.rb
netzke-basepack.gemspec
uninstall.rb

README.rdoc

netzke-basepack

A pack of pre-built Netzke components, such as grid, form, tab panel, etc. Learn about Netzke on netzke.org.

Requirements

  • Ruby 1.9.2 (1.8.7 may work, too)

  • Rails >= 3.0.0

  • Ext JS >= 3.3.0

Installation

In your Gemfile:

gem 'netzke-basepack'

For the “edge” stuff, tell bundler to get the gem straight from GitHub:

gem 'netzke-basepack', :git => "git://github.com/skozlov/netzke-basepack.git"

Usage

Read the “Embedding components into Rails views” section on github.com/skozlov/netzke-core

Embed a basepack component into a view as any other Netzke component, e.g.:

<%= netzke :books, :class_name => 'Basepack::GridPanel', :model => 'Book' %>

(assuming model 'Book' exists)

For more examples, see demo.netzke.com, and look into test/rails_app

Running tests

Netzke-basepack is bundled with automated tests. To run them, you need to set up test/rails_app a similar way as you did with your own Rails app that is using Netzke, i.e.: 1) link Ext JS into the “public” folder, 2) link your copy of netzke-core and netzke-basepack into vendor/gems, 3) run migrations and clone the development database structure into the test database.

After this you may run (*from test/rails_app*):

cucumber features

and

rspec spec

Testing playground

The test/rails_app application is also a convenient playground, as it may be run as independent Rails 3 app. After starting it, access any of the lib/netzke widgets by using the following url:

http://localhost:3000/components/<name of the component class>

e.g.:

http://localhost:3000/components/UserGrid

Icons support

Netzke-basepack can make use of FamFamFam Silk icon set (www.famfamfam.com/archive/silk-icons-thats-your-lot/). To enable this, download the icons and put the “icons” folder into your app's public/images folder. Then restart your application.

More info

Official project site: netzke.org

Twitter (latest news about Netzke): twitter.com/skozlov

Many (if a bit outdated) tutorials: blog.writelesscode.com


Copyright © 2008-2010 Sergei Kozlov, released under the MIT license

Something went wrong with that request. Please try again.