-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://svn.esda.local/trunk/esdaweb/vendor/plugins/scaffolding_esda@3444 28bfca7a-c10d-0410-b1fe-ac714baaa4f2
- Loading branch information
schreiber
committed
Nov 26, 2009
1 parent
1f7cee6
commit 33a6daa
Showing
6 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
= scaffolding_esda - a more complete scaffolding extension for Ruby on Rails | ||
|
||
The purpose of this extension is to provide an almost complete solution for | ||
ordinary tables, for example a managing interface for master data. At Esda we | ||
developed it for our inhouse ERP system. | ||
|
||
= Quickstart | ||
|
||
* install the gem | ||
* add the gem in config/environment.rb to your application: | ||
|
||
config.gems "scaffolding_esda" | ||
|
||
* use the scaffold method in your controller: | ||
|
||
class MyVeryOwnController | ||
scaffold :my_very_own_model | ||
end | ||
|
||
* run the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
require 'rake/packagetask' | ||
require 'rake/gempackagetask' | ||
PKG_NAME="scaffolding_esda" | ||
PKG_VERSION="0.9" | ||
dist_dirs = [ "tools", "lib", "rails", "scaffolds_tng", "test", "public" ] | ||
spec = Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.name = PKG_NAME | ||
s.version = PKG_VERSION | ||
s.summary = "A scaffolding extension for Ruby on Rails" | ||
s.description = %q{} | ||
|
||
s.files = [ "Rakefile", "README", "CHANGELOG", "TODO" ] | ||
dist_dirs.each do |dir| | ||
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) } | ||
end | ||
|
||
s.add_dependency('rails', '= 2.3.4') | ||
|
||
s.require_path = 'lib' | ||
#s.autorequire = 'active_record' | ||
|
||
s.has_rdoc = true | ||
s.extra_rdoc_files = %w( README ) | ||
s.rdoc_options.concat ['--main', 'README'] | ||
|
||
s.author = "Daniel Schreiber" | ||
s.email = "[email protected]" | ||
#s.homepage = "http://www.rubyonrails.org" | ||
#s.rubyforge_project = "scaffolding_esda" | ||
end | ||
Rake::GemPackageTask.new(spec) do |p| | ||
p.gem_spec = spec | ||
p.need_tar = true | ||
p.need_zip = true | ||
end | ||
|
||
namespace :scaffolding_esda do | ||
task :install_assets do | ||
puts RAILS_ROOT | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
There are some issues with this plugin that can quite easily be fixed: | ||
* use i18n for templates | ||
* make livegrid compatible with other browsers than Firefox | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Include hook code here | ||
require 'esda/scaffolding/model_extension' | ||
require 'esda/scaffolding/helper/scaffold_helper' | ||
require 'esda/scaffolding/helper/legacy_helper' | ||
require 'esda/scaffolding/helper/table_indexed_position_helper' | ||
require 'esda/scaffolding/browse.rb' | ||
require 'esda/scaffolding/edit.rb' | ||
require 'esda/scaffolding/new.rb' | ||
require 'esda/scaffolding/show.rb' | ||
require 'esda/scaffolding/destroy.rb' | ||
require 'scaffolding_esda' |