dynamic_fields_for_rails 0.6.1 → 1.0.2
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.
- checksums.yaml +5 -5
- data/README.md +0 -1
- data/Rakefile +2 -0
- data/app/helpers/dynamic_fields_for_helper.rb +14 -9
- data/lib/dynamic_fields_for_rails/version.rb +3 -1
- data/lib/dynamic_fields_for_rails.rb +7 -3
- metadata +9 -168
- data/.gitignore +0 -18
- data/.travis.yml +0 -5
- data/Gemfile +0 -4
- data/dynamic_fields_for_rails.gemspec +0 -27
- data/test/config/active_record.rb +0 -10
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/child.rb +0 -2
- data/test/dummy/app/models/parent.rb +0 -4
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/parents/_child_fields.html.erb +0 -0
- data/test/dummy/app/views/parents/form.html.erb +0 -1
- data/test/dummy/config/application.rb +0 -41
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -24
- data/test/dummy/config/environments/production.rb +0 -50
- data/test/dummy/config/environments/test.rb +0 -33
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -8
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -59
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130423140255_create_parents.rb +0 -5
- data/test/dummy/db/migrate/20130423140307_create_children.rb +0 -8
- data/test/dummy/db/schema.rb +0 -25
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -8
- data/test/dummy/log/production.log +0 -0
- data/test/dummy/log/server.log +0 -0
- data/test/dummy/log/test.log +0 -1353
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/javascripts/application.js +0 -2
- data/test/dummy/public/javascripts/controls.js +0 -965
- data/test/dummy/public/javascripts/dragdrop.js +0 -974
- data/test/dummy/public/javascripts/effects.js +0 -1123
- data/test/dummy/public/javascripts/prototype.js +0 -6001
- data/test/dummy/public/javascripts/rails.js +0 -202
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dynamic_fields_for_helper_test.rb +0 -7
- data/test/link_to_add_fields_test.rb +0 -34
- data/test/link_to_delete_fields_test.rb +0 -40
- 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,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
|
data/test/dummy/config/routes.rb
DELETED
@@ -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
Binary file
|
data/test/dummy/db/schema.rb
DELETED
@@ -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
|
data/test/dummy/db/test.sqlite3
DELETED
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
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7
|
-
[1m[35m (3.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
8
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
File without changes
|
data/test/dummy/log/server.log
DELETED
File without changes
|