inline_forms 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -105,7 +105,7 @@ module InlineForms
105
105
  if attribute.column_type == :belongs_to # :drop_down, :references and :belongs_to all end up with the column_type :belongs_to
106
106
  @belongs_to << ' belongs_to :' + attribute.name + "\n"
107
107
  end
108
- if attribute.column_type == :image_field # upload images via carrierwave
108
+ if attribute.attribute_type == :image_field # upload images via carrierwave
109
109
  @carrierwave_mounters << ' mount_uploader :' + attribute.name + ', ' + "#{attribute.name}_uploader".camelcase + "\n"
110
110
  end
111
111
  if attribute.type == :has_many ||
@@ -1,3 +1,3 @@
1
1
  module InlineForms
2
- VERSION = "1.0.12"
2
+ VERSION = "1.0.13"
3
3
  end
@@ -1,18 +1,27 @@
1
1
  #/bin/bash
2
2
  APPNAME=$1
3
- echo "working directory is now `pwd`"
3
+ echo "Creating Rails app: $1..."
4
+ echo "Working directory: `pwd`."
4
5
  rails new $APPNAME
6
+ echo "Create $APPNAME/config/databse.yml..."
5
7
  cat database.yml | sed "s/APPNAME/$APPNAME/g" > $APPNAME/config/database.yml
8
+ echo "Create Gemfile in $APPNAME..."
6
9
  cp -v Gemfile $APPNAME
7
10
  cd $APPNAME
8
- echo "working directory is now `pwd`"
11
+ echo "Working directory: `pwd`."
12
+ echo "Bundle install..."
9
13
  bundle install
10
- echo devise:install
14
+ echo "Devise install..."
11
15
  rails g devise:install
12
- echo devise User
16
+ echo "Devise User model..."
13
17
  rails g devise User
14
- echo ckeditor:install
18
+ echo "Install ckeditor..."
15
19
  rails g ckeditor:install
20
+ echo "Create config file in app/assets/javascripts/ckeditor/config.js"
16
21
  mkdir app/assets/javascripts/ckeditor
17
22
  cp ../config.js app/assets/javascripts/ckeditor
18
- rails g remotipart:install
23
+ echo "Add remotipart to app/assets/javascripts/application.js..."
24
+ echo >> app/assets/javascripts/application.js
25
+ echo "//= require jquery.remotipart" >> app/assets/javascripts/application.js
26
+ echo >> app/assets/javascripts/application.js
27
+ echo "Done! Now make your tables."
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 12
10
- version: 1.0.12
9
+ - 13
10
+ version: 1.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares