dynamic_fields_for_rails 0.6.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +0 -1
  3. data/Rakefile +2 -0
  4. data/app/helpers/dynamic_fields_for_helper.rb +14 -9
  5. data/lib/dynamic_fields_for_rails/version.rb +3 -1
  6. data/lib/dynamic_fields_for_rails.rb +7 -3
  7. metadata +9 -168
  8. data/.gitignore +0 -18
  9. data/.travis.yml +0 -5
  10. data/Gemfile +0 -4
  11. data/dynamic_fields_for_rails.gemspec +0 -27
  12. data/test/config/active_record.rb +0 -10
  13. data/test/dummy/Rakefile +0 -7
  14. data/test/dummy/app/controllers/application_controller.rb +0 -3
  15. data/test/dummy/app/helpers/application_helper.rb +0 -2
  16. data/test/dummy/app/models/child.rb +0 -2
  17. data/test/dummy/app/models/parent.rb +0 -4
  18. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  19. data/test/dummy/app/views/parents/_child_fields.html.erb +0 -0
  20. data/test/dummy/app/views/parents/form.html.erb +0 -1
  21. data/test/dummy/config/application.rb +0 -41
  22. data/test/dummy/config/boot.rb +0 -10
  23. data/test/dummy/config/database.yml +0 -22
  24. data/test/dummy/config/environment.rb +0 -5
  25. data/test/dummy/config/environments/development.rb +0 -24
  26. data/test/dummy/config/environments/production.rb +0 -50
  27. data/test/dummy/config/environments/test.rb +0 -33
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  29. data/test/dummy/config/initializers/inflections.rb +0 -10
  30. data/test/dummy/config/initializers/mime_types.rb +0 -5
  31. data/test/dummy/config/initializers/secret_token.rb +0 -8
  32. data/test/dummy/config/initializers/session_store.rb +0 -8
  33. data/test/dummy/config/locales/en.yml +0 -5
  34. data/test/dummy/config/routes.rb +0 -59
  35. data/test/dummy/config.ru +0 -4
  36. data/test/dummy/db/development.sqlite3 +0 -0
  37. data/test/dummy/db/migrate/20130423140255_create_parents.rb +0 -5
  38. data/test/dummy/db/migrate/20130423140307_create_children.rb +0 -8
  39. data/test/dummy/db/schema.rb +0 -25
  40. data/test/dummy/db/test.sqlite3 +0 -0
  41. data/test/dummy/log/development.log +0 -8
  42. data/test/dummy/log/production.log +0 -0
  43. data/test/dummy/log/server.log +0 -0
  44. data/test/dummy/log/test.log +0 -1353
  45. data/test/dummy/public/404.html +0 -26
  46. data/test/dummy/public/422.html +0 -26
  47. data/test/dummy/public/500.html +0 -26
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/public/javascripts/application.js +0 -2
  50. data/test/dummy/public/javascripts/controls.js +0 -965
  51. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  52. data/test/dummy/public/javascripts/effects.js +0 -1123
  53. data/test/dummy/public/javascripts/prototype.js +0 -6001
  54. data/test/dummy/public/javascripts/rails.js +0 -202
  55. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  56. data/test/dummy/script/rails +0 -6
  57. data/test/dynamic_fields_for_helper_test.rb +0 -7
  58. data/test/link_to_add_fields_test.rb +0 -34
  59. data/test/link_to_delete_fields_test.rb +0 -40
  60. data/test/test_helper.rb +0 -17
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '5d8d9599457d5f2fa50c978d19da955350fa36c215f514e6b572b9d1d843b844d477d70fe02eacec84742e0f252cf4d93339762e5d57fed7146063faad77a030'
8
- Dummy::Application.config.secret_key_base = 'test_secret'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,59 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- resources :parents
3
- # The priority is based upon order of creation:
4
- # first created -> highest priority.
5
-
6
- # Sample of regular route:
7
- # match 'products/:id' => 'catalog#view'
8
- # Keep in mind you can assign values other than :controller and :action
9
-
10
- # Sample of named route:
11
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
12
- # This route can be invoked with purchase_url(:id => product.id)
13
-
14
- # Sample resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Sample resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Sample resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Sample resource route with more complex sub-resources
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', :on => :collection
40
- # end
41
- # end
42
-
43
- # Sample resource route within a namespace:
44
- # namespace :admin do
45
- # # Directs /admin/products/* to Admin::ProductsController
46
- # # (app/controllers/admin/products_controller.rb)
47
- # resources :products
48
- # end
49
-
50
- # You can have the root of your site routed with "root"
51
- # just remember to delete public/index.html.
52
- # root :to => "welcome#index"
53
-
54
- # See how all your routes lay out with "rake routes"
55
-
56
- # This is a legacy wild controller route that's not recommended for RESTful applications.
57
- # Note: This route will make all actions in every controller accessible via GET requests.
58
- # match ':controller(/:action(/:id(.:format)))'
59
- end
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
Binary file
@@ -1,5 +0,0 @@
1
- class CreateParents < ActiveRecord::Migration
2
- def change
3
- create_table :parents, &:timestamps
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- class CreateChildren < ActiveRecord::Migration
2
- def change
3
- create_table :children do |t|
4
- t.integer :parent_id
5
- t.timestamps
6
- end
7
- end
8
- end
@@ -1,25 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20_130_423_140_307) do
15
- create_table "children", force: true do |t|
16
- t.integer "parent_id"
17
- t.datetime "created_at", null: false
18
- t.datetime "updated_at", null: false
19
- end
20
-
21
- create_table "parents", force: true do |t|
22
- t.datetime "created_at", null: false
23
- t.datetime "updated_at", null: false
24
- end
25
- end
Binary file
@@ -1,8 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
3
- Connecting to database specified by database.yml
4
-  (0.1ms) select sqlite_version(*)
5
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
-  (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
File without changes
File without changes