beautiful_scaffold 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.4
2
+
3
+ * Bugfix
4
+ * Massinserting with 'admin' namespace
5
+
1
6
  == 0.2.3
2
7
 
3
8
  * enhancement
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.1'
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
@@ -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.3"
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,4 @@
1
-
1
+ # encoding : utf-8
2
2
  en:
3
3
  edit: "Edit"
4
4
  editing: "Editing"
@@ -1,4 +1,4 @@
1
-
1
+ # encoding : utf-8
2
2
  fr:
3
3
  edit: "Editer"
4
4
  editing: "Edition"
@@ -1,4 +1,9 @@
1
- <%= form_for [namespace, model_name.classify.constantize.new], :method => :post, :html => { :class => "well well-small form-horizontal mass-inserting" } do |f| %>
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 => 'admin', :model_name => '<%= model %>', :model_columns => [<%= attributes.map{ |e| "'#{e.name}'" }.join(',') %>] } %>
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.3
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-06 00:00:00.000000000Z
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