Active Scaffold
Active scaffold is a plug in provide Ajax based user interface for a rails project. You can use it for Admin side activities
* An AJAXified interface for creating, updating and deleting objects
* Automatic handling of ActiveRecord associations
* Sorting and Searching
* CSS styling and theming support
* Work on Firefox 1+, IE 6+ and Safari 2+
* Released under the MIT License, the same one as Rails itself, so you can use it freely in your commercial applications.
Step-1:
Install the plugin from the url:
./script/plugin install http://activescaffold.googlecode.com/svn/tags/active_scaffold
Step-2:
Add to your layout
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
Step-3:
Add to your controller
active_scaffold :model_name
Active scaffold requires a separate controller for a single model.If you do not want some attributes fields...
Add to your Application controller
ActiveScaffold.set_defaults do |config|
config.ignore_columns.add [:created_at, :updated_at, :status]
end
or you can add to your controller for the attributes fields you want to to display
active_scaffold :TechniquesEmployed do |config|
config.label = "Techniques Employed"
config.columns = [:techniques_employed]
columns[:techniques_employed].label = "Technique Employed"
end
3 comments:
This has been very helpful. I'd recommend the site to my Dad. he's into this kind of biz. Thank you so much for sharing this with us. More power to you and to your site!
Scaffold
I actually enjoyed reading through this posting.Many thanks.
Scaffold
The most eccentric and amusing images and pictures online.
Probe unconscious
[url=http://www.funnyimgz.blogspot.com]funny pictures[/url]
Post a Comment