beautiful_scaffold 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/README.rdoc +5 -1
- data/beautiful_scaffold.gemspec +1 -1
- data/lib/generators/templates/app/locales/beautiful_scaffold.en.yml +1 -1
- data/lib/generators/templates/app/locales/beautiful_scaffold.fr.yml +1 -1
- data/lib/generators/templates/app/views/_mass_inserting.html.erb +6 -1
- data/lib/generators/templates/app/views/index.html.erb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -8,7 +8,7 @@ Demo : http://demo.beautiful-scaffold.com/
|
|
8
8
|
== Install
|
9
9
|
|
10
10
|
Add this in your Gemfile :
|
11
|
-
gem 'beautiful_scaffold', '0.2.
|
11
|
+
gem 'beautiful_scaffold', '0.2.3'
|
12
12
|
And run
|
13
13
|
bundle install
|
14
14
|
|
@@ -41,3 +41,7 @@ rails generate beautiful_locale all
|
|
41
41
|
=== Join Table (has_and_belongs_to_many relation)
|
42
42
|
|
43
43
|
rails generate beautiful_jointable model1 model2
|
44
|
+
|
45
|
+
=== Install et Configure Devise (authentification) and Cancan (authorization)
|
46
|
+
|
47
|
+
rails generate beautiful_devisecancan model
|
data/beautiful_scaffold.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "beautiful_scaffold"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.4"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.summary = "Beautiful Scaffold generate fully customizable scaffold"
|
9
9
|
s.email = "claudel.sylvain@gmail.com"
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
<% formparams = [] %>
|
2
|
+
<% if not namespace.blank? then %>
|
3
|
+
<% formparams << namespace %>
|
4
|
+
<% end %>
|
5
|
+
<% formparams << model_name.classify.constantize.new %>
|
6
|
+
<%= form_for formparams, :method => :post, :html => { :class => "well well-small form-horizontal mass-inserting" } do |f| %>
|
2
7
|
<%= hidden_field_tag :mass_inserting, true %>
|
3
8
|
<% for col in model_columns %>
|
4
9
|
<div <%= visible_column(model_name, col, 'inline') %> class="col-<%= col %>">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%% end %>
|
8
8
|
</p>
|
9
9
|
|
10
|
-
<%%= render :partial => "layouts/mass_inserting", :locals => { :namespace => '
|
10
|
+
<%%= render :partial => "layouts/mass_inserting", :locals => { :namespace => '<%= namespace_alone %>', :model_name => '<%= model %>', :model_columns => [<%= attributes.map{ |e| "'#{e.name}'" }.join(',') %>] } %>
|
11
11
|
|
12
12
|
<%%# Set your scopes below (string in array) %>
|
13
13
|
<%% scopes = [] %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beautiful_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-14 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
|
15
15
|
and filter data) http://www.beautiful-scaffold.com
|