devise-formtastic 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +22 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +96 -0
- data/Rakefile +1 -0
- data/app/views/devise/confirmations/new.html.erb +10 -0
- data/app/views/devise/passwords/edit.html.erb +12 -0
- data/app/views/devise/passwords/new.html.erb +10 -0
- data/app/views/devise/registrations/edit.html.erb +33 -0
- data/app/views/devise/registrations/new.html.erb +12 -0
- data/app/views/devise/sessions/new.html.erb +16 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +10 -0
- data/config/locales/en.yml +38 -0
- data/devise-formtastic.gemspec +24 -0
- data/lib/devise-formtastic.rb +15 -0
- data/lib/devise-formtastic/engine.rb +5 -0
- data/lib/devise-formtastic/version.rb +5 -0
- data/lib/generators/devise-formtastic/views_generator.rb +31 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/public.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +12 -0
- data/spec/dummy/app/assets/stylesheets/public.css +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/public_controller.rb +4 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/public_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/user.rb +12 -0
- data/spec/dummy/app/views/layouts/application.html.erb +24 -0
- data/spec/dummy/app/views/public/index.html.erb +2 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +39 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +240 -0
- data/spec/dummy/config/initializers/formtastic.rb +76 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/devise.en.yml +60 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/db/migrate/20130112221755_devise_create_users.rb +46 -0
- data/spec/dummy/db/schema.rb +41 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +11 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- metadata +224 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Set the default text field size when input is a string. Default is nil.
|
4
|
+
# Formtastic::FormBuilder.default_text_field_size = 50
|
5
|
+
|
6
|
+
# Set the default text area height when input is a text. Default is 20.
|
7
|
+
# Formtastic::FormBuilder.default_text_area_height = 5
|
8
|
+
|
9
|
+
# Set the default text area width when input is a text. Default is nil.
|
10
|
+
# Formtastic::FormBuilder.default_text_area_width = 50
|
11
|
+
|
12
|
+
# Should all fields be considered "required" by default?
|
13
|
+
# Defaults to true.
|
14
|
+
# Formtastic::FormBuilder.all_fields_required_by_default = true
|
15
|
+
|
16
|
+
# Should select fields have a blank option/prompt by default?
|
17
|
+
# Defaults to true.
|
18
|
+
# Formtastic::FormBuilder.include_blank_for_select_by_default = true
|
19
|
+
|
20
|
+
# Set the string that will be appended to the labels/fieldsets which are required
|
21
|
+
# It accepts string or procs and the default is a localized version of
|
22
|
+
# '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
|
23
|
+
# in your locale, it will replace the abbr title properly. But if you don't want to use
|
24
|
+
# abbr tag, you can simply give a string as below
|
25
|
+
# Formtastic::FormBuilder.required_string = "(required)"
|
26
|
+
|
27
|
+
# Set the string that will be appended to the labels/fieldsets which are optional
|
28
|
+
# Defaults to an empty string ("") and also accepts procs (see required_string above)
|
29
|
+
# Formtastic::FormBuilder.optional_string = "(optional)"
|
30
|
+
|
31
|
+
# Set the way inline errors will be displayed.
|
32
|
+
# Defaults to :sentence, valid options are :sentence, :list, :first and :none
|
33
|
+
# Formtastic::FormBuilder.inline_errors = :sentence
|
34
|
+
# Formtastic uses the following classes as default for hints, inline_errors and error list
|
35
|
+
|
36
|
+
# If you override the class here, please ensure to override it in your stylesheets as well
|
37
|
+
# Formtastic::FormBuilder.default_hint_class = "inline-hints"
|
38
|
+
# Formtastic::FormBuilder.default_inline_error_class = "inline-errors"
|
39
|
+
# Formtastic::FormBuilder.default_error_list_class = "errors"
|
40
|
+
|
41
|
+
# Set the method to call on label text to transform or format it for human-friendly
|
42
|
+
# reading when formtastic is used without object. Defaults to :humanize.
|
43
|
+
# Formtastic::FormBuilder.label_str_method = :humanize
|
44
|
+
|
45
|
+
# Set the array of methods to try calling on parent objects in :select and :radio inputs
|
46
|
+
# for the text inside each @<option>@ tag or alongside each radio @<input>@. The first method
|
47
|
+
# that is found on the object will be used.
|
48
|
+
# Defaults to ["to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
|
49
|
+
# Formtastic::FormBuilder.collection_label_methods = [
|
50
|
+
# "to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
|
51
|
+
|
52
|
+
# Specifies if labels/hints for input fields automatically be looked up using I18n.
|
53
|
+
# Default value: true. Overridden for specific fields by setting value to true,
|
54
|
+
# i.e. :label => true, or :hint => true (or opposite depending on initialized value)
|
55
|
+
# Formtastic::FormBuilder.i18n_lookups_by_default = false
|
56
|
+
|
57
|
+
# Specifies if I18n lookups of the default I18n Localizer should be cached to improve performance.
|
58
|
+
# Defaults to true.
|
59
|
+
# Formtastic::FormBuilder.i18n_cache_lookups = false
|
60
|
+
|
61
|
+
# Specifies the class to use for localization lookups. You can create your own
|
62
|
+
# class and use it instead by subclassing Formtastic::Localizer (which is the default).
|
63
|
+
# Formtastic::FormBuilder.i18n_localizer = MyOwnLocalizer
|
64
|
+
|
65
|
+
# You can add custom inputs or override parts of Formtastic by subclassing Formtastic::FormBuilder and
|
66
|
+
# specifying that class here. Defaults to Formtastic::FormBuilder.
|
67
|
+
# Formtastic::Helpers::FormHelper.builder = MyCustomBuilder
|
68
|
+
|
69
|
+
# You can opt-in to Formtastic's use of the HTML5 `required` attribute on `<input>`, `<select>`
|
70
|
+
# and `<textarea>` tags by setting this to false (defaults to true).
|
71
|
+
# Formtastic::FormBuilder.use_required_attribute = true
|
72
|
+
|
73
|
+
# You can opt-in to new HTML5 browser validations (for things like email and url inputs) by setting
|
74
|
+
# this to false. Doing so will add a `novalidate` attribute to the `<form>` tag.
|
75
|
+
# See http://diveintohtml5.org/forms.html#validation for more info.
|
76
|
+
# Formtastic::FormBuilder.perform_browser_validations = true
|
@@ -0,0 +1,15 @@
|
|
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
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
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 = 'b1742181caef085d4525ad0d6b5173cf2329fa8eda404575ac82c2410f4b0242f0d793838bd4bd3e94defa235f139246ca29b9b6249236868bfbac6c6346b211'
|
@@ -0,0 +1,8 @@
|
|
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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
en:
|
4
|
+
errors:
|
5
|
+
messages:
|
6
|
+
expired: "has expired, please request a new one"
|
7
|
+
not_found: "not found"
|
8
|
+
already_confirmed: "was already confirmed, please try signing in"
|
9
|
+
not_locked: "was not locked"
|
10
|
+
not_saved:
|
11
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
12
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
13
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
14
|
+
|
15
|
+
devise:
|
16
|
+
failure:
|
17
|
+
already_authenticated: 'You are already signed in.'
|
18
|
+
unauthenticated: 'You need to sign in or sign up before continuing.'
|
19
|
+
unconfirmed: 'You have to confirm your account before continuing.'
|
20
|
+
locked: 'Your account is locked.'
|
21
|
+
not_found_in_database: 'Invalid email or password.'
|
22
|
+
invalid: 'Invalid email or password.'
|
23
|
+
invalid_token: 'Invalid authentication token.'
|
24
|
+
timeout: 'Your session expired, please sign in again to continue.'
|
25
|
+
inactive: 'Your account was not activated yet.'
|
26
|
+
sessions:
|
27
|
+
signed_in: 'Signed in successfully.'
|
28
|
+
signed_out: 'Signed out successfully.'
|
29
|
+
passwords:
|
30
|
+
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
|
31
|
+
updated: 'Your password was changed successfully. You are now signed in.'
|
32
|
+
updated_not_active: 'Your password was changed successfully.'
|
33
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
34
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
35
|
+
confirmations:
|
36
|
+
send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
|
37
|
+
send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
|
38
|
+
confirmed: 'Your account was successfully confirmed. You are now signed in.'
|
39
|
+
registrations:
|
40
|
+
signed_up: 'Welcome! You have signed up successfully.'
|
41
|
+
signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
|
42
|
+
signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
|
43
|
+
signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
|
44
|
+
updated: 'You updated your account successfully.'
|
45
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
|
46
|
+
destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
|
47
|
+
unlocks:
|
48
|
+
send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
|
49
|
+
unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
|
50
|
+
send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
|
51
|
+
omniauth_callbacks:
|
52
|
+
success: 'Successfully authenticated from %{kind} account.'
|
53
|
+
failure: 'Could not authenticate you from %{kind} because "%{reason}".'
|
54
|
+
mailer:
|
55
|
+
confirmation_instructions:
|
56
|
+
subject: 'Confirmation instructions'
|
57
|
+
reset_password_instructions:
|
58
|
+
subject: 'Reset password instructions'
|
59
|
+
unlock_instructions:
|
60
|
+
subject: 'Unlock Instructions'
|
@@ -0,0 +1,46 @@
|
|
1
|
+
class DeviseCreateUsers < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table(:users) do |t|
|
4
|
+
## Database authenticatable
|
5
|
+
t.string :email, :null => false, :default => ""
|
6
|
+
t.string :encrypted_password, :null => false, :default => ""
|
7
|
+
|
8
|
+
## Recoverable
|
9
|
+
t.string :reset_password_token
|
10
|
+
t.datetime :reset_password_sent_at
|
11
|
+
|
12
|
+
## Rememberable
|
13
|
+
t.datetime :remember_created_at
|
14
|
+
|
15
|
+
## Trackable
|
16
|
+
t.integer :sign_in_count, :default => 0
|
17
|
+
t.datetime :current_sign_in_at
|
18
|
+
t.datetime :last_sign_in_at
|
19
|
+
t.string :current_sign_in_ip
|
20
|
+
t.string :last_sign_in_ip
|
21
|
+
|
22
|
+
## Confirmable
|
23
|
+
t.string :confirmation_token
|
24
|
+
t.datetime :confirmed_at
|
25
|
+
t.datetime :confirmation_sent_at
|
26
|
+
t.string :unconfirmed_email # Only if using reconfirmable
|
27
|
+
|
28
|
+
## Lockable
|
29
|
+
t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
|
30
|
+
t.string :unlock_token # Only if unlock strategy is :email or :both
|
31
|
+
t.datetime :locked_at
|
32
|
+
|
33
|
+
## Token authenticatable
|
34
|
+
# t.string :authentication_token
|
35
|
+
|
36
|
+
|
37
|
+
t.timestamps
|
38
|
+
end
|
39
|
+
|
40
|
+
add_index :users, :email, :unique => true
|
41
|
+
add_index :users, :reset_password_token, :unique => true
|
42
|
+
# add_index :users, :confirmation_token, :unique => true
|
43
|
+
# add_index :users, :unlock_token, :unique => true
|
44
|
+
# add_index :users, :authentication_token, :unique => true
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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 => 20130112221755) do
|
15
|
+
|
16
|
+
create_table "users", :force => true do |t|
|
17
|
+
t.string "email", :default => "", :null => false
|
18
|
+
t.string "encrypted_password", :default => "", :null => false
|
19
|
+
t.string "reset_password_token"
|
20
|
+
t.datetime "reset_password_sent_at"
|
21
|
+
t.datetime "remember_created_at"
|
22
|
+
t.integer "sign_in_count", :default => 0
|
23
|
+
t.datetime "current_sign_in_at"
|
24
|
+
t.datetime "last_sign_in_at"
|
25
|
+
t.string "current_sign_in_ip"
|
26
|
+
t.string "last_sign_in_ip"
|
27
|
+
t.string "confirmation_token"
|
28
|
+
t.datetime "confirmed_at"
|
29
|
+
t.datetime "confirmation_sent_at"
|
30
|
+
t.string "unconfirmed_email"
|
31
|
+
t.integer "failed_attempts", :default => 0
|
32
|
+
t.string "unlock_token"
|
33
|
+
t.datetime "locked_at"
|
34
|
+
t.datetime "created_at", :null => false
|
35
|
+
t.datetime "updated_at", :null => false
|
36
|
+
end
|
37
|
+
|
38
|
+
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
39
|
+
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
40
|
+
|
41
|
+
end
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%%= semantic_form_for @<%= singular_name %> do |f| %>
|
2
|
+
<%%= f.inputs do %>
|
3
|
+
<%- attributes.each do |attribute| -%>
|
4
|
+
<%%= f.input :<%= attribute.name %> %>
|
5
|
+
<%- end -%>
|
6
|
+
<%% end %>
|
7
|
+
|
8
|
+
<%%= f.actions do %>
|
9
|
+
<%%= f.action :submit, :as => :input %>
|
10
|
+
<%% end %>
|
11
|
+
<%% end %>
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
metadata
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: devise-formtastic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jari Jokinen
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.11
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.11
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: devise
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.2.1
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.2.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: formtastic
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.2.1
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.2.1
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sqlite3
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: Formtastic form builder for Devise with some extra features like full
|
79
|
+
I18n support and dynamic page titles.
|
80
|
+
email:
|
81
|
+
- info@jarijokinen.com
|
82
|
+
executables: []
|
83
|
+
extensions: []
|
84
|
+
extra_rdoc_files: []
|
85
|
+
files:
|
86
|
+
- .gitignore
|
87
|
+
- CHANGELOG.md
|
88
|
+
- Gemfile
|
89
|
+
- LICENSE.txt
|
90
|
+
- README.md
|
91
|
+
- Rakefile
|
92
|
+
- app/views/devise/confirmations/new.html.erb
|
93
|
+
- app/views/devise/passwords/edit.html.erb
|
94
|
+
- app/views/devise/passwords/new.html.erb
|
95
|
+
- app/views/devise/registrations/edit.html.erb
|
96
|
+
- app/views/devise/registrations/new.html.erb
|
97
|
+
- app/views/devise/sessions/new.html.erb
|
98
|
+
- app/views/devise/shared/_links.erb
|
99
|
+
- app/views/devise/unlocks/new.html.erb
|
100
|
+
- config/locales/en.yml
|
101
|
+
- devise-formtastic.gemspec
|
102
|
+
- lib/devise-formtastic.rb
|
103
|
+
- lib/devise-formtastic/engine.rb
|
104
|
+
- lib/devise-formtastic/version.rb
|
105
|
+
- lib/generators/devise-formtastic/views_generator.rb
|
106
|
+
- spec/dummy/README.rdoc
|
107
|
+
- spec/dummy/Rakefile
|
108
|
+
- spec/dummy/app/assets/javascripts/application.js
|
109
|
+
- spec/dummy/app/assets/javascripts/public.js
|
110
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
111
|
+
- spec/dummy/app/assets/stylesheets/public.css
|
112
|
+
- spec/dummy/app/controllers/application_controller.rb
|
113
|
+
- spec/dummy/app/controllers/public_controller.rb
|
114
|
+
- spec/dummy/app/helpers/application_helper.rb
|
115
|
+
- spec/dummy/app/helpers/public_helper.rb
|
116
|
+
- spec/dummy/app/mailers/.gitkeep
|
117
|
+
- spec/dummy/app/models/.gitkeep
|
118
|
+
- spec/dummy/app/models/user.rb
|
119
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
120
|
+
- spec/dummy/app/views/public/index.html.erb
|
121
|
+
- spec/dummy/config.ru
|
122
|
+
- spec/dummy/config/application.rb
|
123
|
+
- spec/dummy/config/boot.rb
|
124
|
+
- spec/dummy/config/database.yml
|
125
|
+
- spec/dummy/config/environment.rb
|
126
|
+
- spec/dummy/config/environments/development.rb
|
127
|
+
- spec/dummy/config/environments/production.rb
|
128
|
+
- spec/dummy/config/environments/test.rb
|
129
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
130
|
+
- spec/dummy/config/initializers/devise.rb
|
131
|
+
- spec/dummy/config/initializers/formtastic.rb
|
132
|
+
- spec/dummy/config/initializers/inflections.rb
|
133
|
+
- spec/dummy/config/initializers/mime_types.rb
|
134
|
+
- spec/dummy/config/initializers/secret_token.rb
|
135
|
+
- spec/dummy/config/initializers/session_store.rb
|
136
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
137
|
+
- spec/dummy/config/locales/devise.en.yml
|
138
|
+
- spec/dummy/config/locales/en.yml
|
139
|
+
- spec/dummy/config/routes.rb
|
140
|
+
- spec/dummy/db/migrate/20130112221755_devise_create_users.rb
|
141
|
+
- spec/dummy/db/schema.rb
|
142
|
+
- spec/dummy/lib/assets/.gitkeep
|
143
|
+
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
144
|
+
- spec/dummy/log/.gitkeep
|
145
|
+
- spec/dummy/public/404.html
|
146
|
+
- spec/dummy/public/422.html
|
147
|
+
- spec/dummy/public/500.html
|
148
|
+
- spec/dummy/public/favicon.ico
|
149
|
+
- spec/dummy/script/rails
|
150
|
+
homepage: https://github.com/jarijokinen/devise-formtastic
|
151
|
+
licenses: []
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
hash: 754304488372052929
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
segments:
|
172
|
+
- 0
|
173
|
+
hash: 754304488372052929
|
174
|
+
requirements: []
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 1.8.24
|
177
|
+
signing_key:
|
178
|
+
specification_version: 3
|
179
|
+
summary: Formtastic form builder for Devise.
|
180
|
+
test_files:
|
181
|
+
- spec/dummy/README.rdoc
|
182
|
+
- spec/dummy/Rakefile
|
183
|
+
- spec/dummy/app/assets/javascripts/application.js
|
184
|
+
- spec/dummy/app/assets/javascripts/public.js
|
185
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
186
|
+
- spec/dummy/app/assets/stylesheets/public.css
|
187
|
+
- spec/dummy/app/controllers/application_controller.rb
|
188
|
+
- spec/dummy/app/controllers/public_controller.rb
|
189
|
+
- spec/dummy/app/helpers/application_helper.rb
|
190
|
+
- spec/dummy/app/helpers/public_helper.rb
|
191
|
+
- spec/dummy/app/mailers/.gitkeep
|
192
|
+
- spec/dummy/app/models/.gitkeep
|
193
|
+
- spec/dummy/app/models/user.rb
|
194
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
195
|
+
- spec/dummy/app/views/public/index.html.erb
|
196
|
+
- spec/dummy/config.ru
|
197
|
+
- spec/dummy/config/application.rb
|
198
|
+
- spec/dummy/config/boot.rb
|
199
|
+
- spec/dummy/config/database.yml
|
200
|
+
- spec/dummy/config/environment.rb
|
201
|
+
- spec/dummy/config/environments/development.rb
|
202
|
+
- spec/dummy/config/environments/production.rb
|
203
|
+
- spec/dummy/config/environments/test.rb
|
204
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
205
|
+
- spec/dummy/config/initializers/devise.rb
|
206
|
+
- spec/dummy/config/initializers/formtastic.rb
|
207
|
+
- spec/dummy/config/initializers/inflections.rb
|
208
|
+
- spec/dummy/config/initializers/mime_types.rb
|
209
|
+
- spec/dummy/config/initializers/secret_token.rb
|
210
|
+
- spec/dummy/config/initializers/session_store.rb
|
211
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
212
|
+
- spec/dummy/config/locales/devise.en.yml
|
213
|
+
- spec/dummy/config/locales/en.yml
|
214
|
+
- spec/dummy/config/routes.rb
|
215
|
+
- spec/dummy/db/migrate/20130112221755_devise_create_users.rb
|
216
|
+
- spec/dummy/db/schema.rb
|
217
|
+
- spec/dummy/lib/assets/.gitkeep
|
218
|
+
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
219
|
+
- spec/dummy/log/.gitkeep
|
220
|
+
- spec/dummy/public/404.html
|
221
|
+
- spec/dummy/public/422.html
|
222
|
+
- spec/dummy/public/500.html
|
223
|
+
- spec/dummy/public/favicon.ico
|
224
|
+
- spec/dummy/script/rails
|