openskies 0.0.5.2 → 0.0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +0 -87
- data/bin/openskies +31 -5
- metadata +4 -593
- data/guides/assets/images/belongs_to.png +0 -0
- data/guides/assets/images/book_icon.gif +0 -0
- data/guides/assets/images/bullet.gif +0 -0
- data/guides/assets/images/challenge.png +0 -0
- data/guides/assets/images/chapters_icon.gif +0 -0
- data/guides/assets/images/check_bullet.gif +0 -0
- data/guides/assets/images/credits_pic_blank.gif +0 -0
- data/guides/assets/images/csrf.png +0 -0
- data/guides/assets/images/customized_error_messages.png +0 -0
- data/guides/assets/images/edge_badge.png +0 -0
- data/guides/assets/images/error_messages.png +0 -0
- data/guides/assets/images/feature_tile.gif +0 -0
- data/guides/assets/images/footer_tile.gif +0 -0
- data/guides/assets/images/fxn.png +0 -0
- data/guides/assets/images/grey_bullet.gif +0 -0
- data/guides/assets/images/habtm.png +0 -0
- data/guides/assets/images/has_many.png +0 -0
- data/guides/assets/images/has_many_through.png +0 -0
- data/guides/assets/images/has_one.png +0 -0
- data/guides/assets/images/has_one_through.png +0 -0
- data/guides/assets/images/header_backdrop.png +0 -0
- data/guides/assets/images/header_tile.gif +0 -0
- data/guides/assets/images/i18n/demo_html_safe.png +0 -0
- data/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
- data/guides/assets/images/i18n/demo_translated_en.png +0 -0
- data/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
- data/guides/assets/images/i18n/demo_translation_missing.png +0 -0
- data/guides/assets/images/i18n/demo_untranslated.png +0 -0
- data/guides/assets/images/icons/README +0 -5
- data/guides/assets/images/icons/callouts/1.png +0 -0
- data/guides/assets/images/icons/callouts/10.png +0 -0
- data/guides/assets/images/icons/callouts/11.png +0 -0
- data/guides/assets/images/icons/callouts/12.png +0 -0
- data/guides/assets/images/icons/callouts/13.png +0 -0
- data/guides/assets/images/icons/callouts/14.png +0 -0
- data/guides/assets/images/icons/callouts/15.png +0 -0
- data/guides/assets/images/icons/callouts/2.png +0 -0
- data/guides/assets/images/icons/callouts/3.png +0 -0
- data/guides/assets/images/icons/callouts/4.png +0 -0
- data/guides/assets/images/icons/callouts/5.png +0 -0
- data/guides/assets/images/icons/callouts/6.png +0 -0
- data/guides/assets/images/icons/callouts/7.png +0 -0
- data/guides/assets/images/icons/callouts/8.png +0 -0
- data/guides/assets/images/icons/callouts/9.png +0 -0
- data/guides/assets/images/icons/caution.png +0 -0
- data/guides/assets/images/icons/example.png +0 -0
- data/guides/assets/images/icons/home.png +0 -0
- data/guides/assets/images/icons/important.png +0 -0
- data/guides/assets/images/icons/next.png +0 -0
- data/guides/assets/images/icons/note.png +0 -0
- data/guides/assets/images/icons/prev.png +0 -0
- data/guides/assets/images/icons/tip.png +0 -0
- data/guides/assets/images/icons/up.png +0 -0
- data/guides/assets/images/icons/warning.png +0 -0
- data/guides/assets/images/jaimeiniesta.jpg +0 -0
- data/guides/assets/images/nav_arrow.gif +0 -0
- data/guides/assets/images/polymorphic.png +0 -0
- data/guides/assets/images/posts_index.png +0 -0
- data/guides/assets/images/radar.png +0 -0
- data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
- data/guides/assets/images/rails_guides_logo.gif +0 -0
- data/guides/assets/images/rails_logo_remix.gif +0 -0
- data/guides/assets/images/rails_welcome.png +0 -0
- data/guides/assets/images/session_fixation.png +0 -0
- data/guides/assets/images/tab_grey.gif +0 -0
- data/guides/assets/images/tab_info.gif +0 -0
- data/guides/assets/images/tab_note.gif +0 -0
- data/guides/assets/images/tab_red.gif +0 -0
- data/guides/assets/images/tab_yellow.gif +0 -0
- data/guides/assets/images/tab_yellow.png +0 -0
- data/guides/assets/images/validation_error_messages.png +0 -0
- data/guides/assets/images/vijaydev.jpg +0 -0
- data/guides/assets/javascripts/guides.js +0 -7
- data/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +0 -59
- data/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +0 -75
- data/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +0 -59
- data/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +0 -65
- data/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +0 -100
- data/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +0 -97
- data/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +0 -91
- data/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +0 -55
- data/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +0 -41
- data/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +0 -52
- data/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +0 -67
- data/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +0 -52
- data/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +0 -57
- data/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +0 -58
- data/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +0 -72
- data/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +0 -88
- data/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +0 -33
- data/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +0 -74
- data/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +0 -64
- data/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +0 -55
- data/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +0 -94
- data/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +0 -51
- data/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +0 -66
- data/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +0 -56
- data/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +0 -69
- data/guides/assets/javascripts/syntaxhighlighter/shCore.js +0 -17
- data/guides/assets/stylesheets/fixes.css +0 -16
- data/guides/assets/stylesheets/kindle.css +0 -11
- data/guides/assets/stylesheets/main.css +0 -453
- data/guides/assets/stylesheets/print.css +0 -52
- data/guides/assets/stylesheets/reset.css +0 -43
- data/guides/assets/stylesheets/style.css +0 -13
- data/guides/assets/stylesheets/syntaxhighlighter/shCore.css +0 -226
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +0 -328
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +0 -331
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +0 -339
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +0 -324
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +0 -324
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +0 -324
- data/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +0 -324
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +0 -117
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +0 -120
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +0 -128
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +0 -113
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +0 -113
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +0 -113
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +0 -113
- data/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +0 -116
- data/guides/code/getting_started/Gemfile +0 -38
- data/guides/code/getting_started/README.rdoc +0 -261
- data/guides/code/getting_started/Rakefile +0 -7
- data/guides/code/getting_started/app/assets/images/rails.png +0 -0
- data/guides/code/getting_started/app/assets/javascripts/application.js +0 -15
- data/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/javascripts/home.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/application.css +0 -13
- data/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/home.css.scss +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +0 -56
- data/guides/code/getting_started/app/controllers/application_controller.rb +0 -3
- data/guides/code/getting_started/app/controllers/comments_controller.rb +0 -16
- data/guides/code/getting_started/app/controllers/home_controller.rb +0 -5
- data/guides/code/getting_started/app/controllers/posts_controller.rb +0 -84
- data/guides/code/getting_started/app/helpers/application_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/comments_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/home_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/posts_helper.rb +0 -5
- data/guides/code/getting_started/app/models/comment.rb +0 -3
- data/guides/code/getting_started/app/models/post.rb +0 -11
- data/guides/code/getting_started/app/models/tag.rb +0 -3
- data/guides/code/getting_started/app/views/comments/_comment.html.erb +0 -15
- data/guides/code/getting_started/app/views/comments/_form.html.erb +0 -13
- data/guides/code/getting_started/app/views/home/index.html.erb +0 -2
- data/guides/code/getting_started/app/views/layouts/application.html.erb +0 -14
- data/guides/code/getting_started/app/views/posts/_form.html.erb +0 -32
- data/guides/code/getting_started/app/views/posts/edit.html.erb +0 -6
- data/guides/code/getting_started/app/views/posts/index.html.erb +0 -27
- data/guides/code/getting_started/app/views/posts/new.html.erb +0 -5
- data/guides/code/getting_started/app/views/posts/show.html.erb +0 -31
- data/guides/code/getting_started/app/views/tags/_form.html.erb +0 -12
- data/guides/code/getting_started/config/application.rb +0 -59
- data/guides/code/getting_started/config/boot.rb +0 -6
- data/guides/code/getting_started/config/database.yml +0 -25
- data/guides/code/getting_started/config/environment.rb +0 -5
- data/guides/code/getting_started/config/environments/development.rb +0 -37
- data/guides/code/getting_started/config/environments/production.rb +0 -67
- data/guides/code/getting_started/config/environments/test.rb +0 -37
- data/guides/code/getting_started/config/initializers/backtrace_silencers.rb +0 -7
- data/guides/code/getting_started/config/initializers/inflections.rb +0 -15
- data/guides/code/getting_started/config/initializers/mime_types.rb +0 -5
- data/guides/code/getting_started/config/initializers/secret_token.rb +0 -7
- data/guides/code/getting_started/config/initializers/session_store.rb +0 -8
- data/guides/code/getting_started/config/initializers/wrap_parameters.rb +0 -14
- data/guides/code/getting_started/config/locales/en.yml +0 -5
- data/guides/code/getting_started/config/routes.rb +0 -64
- data/guides/code/getting_started/config.ru +0 -4
- data/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +0 -11
- data/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +0 -12
- data/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +0 -11
- data/guides/code/getting_started/db/schema.rb +0 -43
- data/guides/code/getting_started/db/seeds.rb +0 -7
- data/guides/code/getting_started/doc/README_FOR_APP +0 -2
- data/guides/code/getting_started/public/404.html +0 -26
- data/guides/code/getting_started/public/422.html +0 -26
- data/guides/code/getting_started/public/500.html +0 -25
- data/guides/code/getting_started/public/favicon.ico +0 -0
- data/guides/code/getting_started/public/robots.txt +0 -5
- data/guides/code/getting_started/script/rails +0 -6
- data/guides/code/getting_started/test/fixtures/comments.yml +0 -11
- data/guides/code/getting_started/test/fixtures/posts.yml +0 -11
- data/guides/code/getting_started/test/fixtures/tags.yml +0 -9
- data/guides/code/getting_started/test/functional/comments_controller_test.rb +0 -7
- data/guides/code/getting_started/test/functional/home_controller_test.rb +0 -9
- data/guides/code/getting_started/test/functional/posts_controller_test.rb +0 -49
- data/guides/code/getting_started/test/performance/browsing_test.rb +0 -12
- data/guides/code/getting_started/test/test_helper.rb +0 -13
- data/guides/code/getting_started/test/unit/comment_test.rb +0 -7
- data/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +0 -4
- data/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +0 -4
- data/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +0 -4
- data/guides/code/getting_started/test/unit/post_test.rb +0 -7
- data/guides/code/getting_started/test/unit/tag_test.rb +0 -7
- data/guides/rails_guides/generator.rb +0 -310
- data/guides/rails_guides/helpers.rb +0 -45
- data/guides/rails_guides/indexer.rb +0 -69
- data/guides/rails_guides/levenshtein.rb +0 -31
- data/guides/rails_guides/textile_extensions.rb +0 -63
- data/guides/rails_guides.rb +0 -50
- data/guides/source/2_2_release_notes.textile +0 -422
- data/guides/source/2_3_release_notes.textile +0 -610
- data/guides/source/3_0_release_notes.textile +0 -595
- data/guides/source/3_1_release_notes.textile +0 -553
- data/guides/source/3_2_release_notes.textile +0 -540
- data/guides/source/_license.html.erb +0 -2
- data/guides/source/_welcome.html.erb +0 -19
- data/guides/source/action_controller_overview.textile +0 -820
- data/guides/source/action_mailer_basics.textile +0 -516
- data/guides/source/action_view_overview.textile +0 -1497
- data/guides/source/active_model_basics.textile +0 -205
- data/guides/source/active_record_basics.textile +0 -218
- data/guides/source/active_record_querying.textile +0 -1433
- data/guides/source/active_record_validations_callbacks.textile +0 -1283
- data/guides/source/active_resource_basics.textile +0 -120
- data/guides/source/active_support_core_extensions.textile +0 -3713
- data/guides/source/ajax_on_rails.textile +0 -267
- data/guides/source/api_documentation_guidelines.textile +0 -185
- data/guides/source/asset_pipeline.textile +0 -707
- data/guides/source/association_basics.textile +0 -1959
- data/guides/source/caching_with_rails.textile +0 -437
- data/guides/source/command_line.textile +0 -574
- data/guides/source/configuring.textile +0 -641
- data/guides/source/contributing_to_ruby_on_rails.textile +0 -448
- data/guides/source/credits.html.erb +0 -72
- data/guides/source/debugging_rails_applications.textile +0 -714
- data/guides/source/documents.yaml +0 -157
- data/guides/source/engines.textile +0 -618
- data/guides/source/form_helpers.textile +0 -798
- data/guides/source/generators.textile +0 -621
- data/guides/source/getting_started.textile +0 -1929
- data/guides/source/i18n.textile +0 -931
- data/guides/source/index.html.erb +0 -30
- data/guides/source/initialization.textile +0 -1116
- data/guides/source/kindle/KINDLE.md +0 -26
- data/guides/source/kindle/copyright.html.erb +0 -1
- data/guides/source/kindle/layout.html.erb +0 -27
- data/guides/source/kindle/rails_guides.opf.erb +0 -52
- data/guides/source/kindle/toc.html.erb +0 -24
- data/guides/source/kindle/toc.ncx.erb +0 -64
- data/guides/source/kindle/welcome.html.erb +0 -5
- data/guides/source/layout.html.erb +0 -124
- data/guides/source/layouts_and_rendering.textile +0 -1237
- data/guides/source/migrations.textile +0 -900
- data/guides/source/nested_model_forms.textile +0 -222
- data/guides/source/performance_testing.textile +0 -597
- data/guides/source/plugins.textile +0 -464
- data/guides/source/rails_application_templates.textile +0 -240
- data/guides/source/rails_on_rack.textile +0 -236
- data/guides/source/routing.textile +0 -885
- data/guides/source/ruby_on_rails_guides_guidelines.textile +0 -79
- data/guides/source/security.textile +0 -1004
- data/guides/source/testing.textile +0 -947
- data/guides/w3c_validator.rb +0 -91
- data/lib/rails/all.rb +0 -15
- data/lib/rails/application/bootstrap.rb +0 -73
- data/lib/rails/application/configuration.rb +0 -151
- data/lib/rails/application/finisher.rb +0 -98
- data/lib/rails/application/railties.rb +0 -13
- data/lib/rails/application/route_inspector.rb +0 -84
- data/lib/rails/application/routes_reloader.rb +0 -56
- data/lib/rails/application.rb +0 -320
- data/lib/rails/backtrace_cleaner.rb +0 -42
- data/lib/rails/cli.rb +0 -16
- data/lib/rails/code_statistics.rb +0 -118
- data/lib/rails/commands/application.rb +0 -36
- data/lib/rails/commands/benchmarker.rb +0 -34
- data/lib/rails/commands/console.rb +0 -55
- data/lib/rails/commands/dbconsole.rb +0 -123
- data/lib/rails/commands/destroy.rb +0 -10
- data/lib/rails/commands/generate.rb +0 -12
- data/lib/rails/commands/plugin.rb +0 -544
- data/lib/rails/commands/plugin_new.rb +0 -11
- data/lib/rails/commands/profiler.rb +0 -32
- data/lib/rails/commands/runner.rb +0 -54
- data/lib/rails/commands/server.rb +0 -100
- data/lib/rails/commands/update.rb +0 -9
- data/lib/rails/commands.rb +0 -104
- data/lib/rails/configuration.rb +0 -89
- data/lib/rails/console/app.rb +0 -36
- data/lib/rails/console/helpers.rb +0 -11
- data/lib/rails/engine/commands.rb +0 -43
- data/lib/rails/engine/configuration.rb +0 -84
- data/lib/rails/engine/railties.rb +0 -33
- data/lib/rails/engine.rb +0 -657
- data/lib/rails/generators/actions.rb +0 -325
- data/lib/rails/generators/active_model.rb +0 -78
- data/lib/rails/generators/app_base.rb +0 -266
- data/lib/rails/generators/base.rb +0 -390
- data/lib/rails/generators/css/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/css/assets/templates/stylesheet.css +0 -4
- data/lib/rails/generators/css/scaffold/scaffold_generator.rb +0 -16
- data/lib/rails/generators/erb/controller/controller_generator.rb +0 -20
- data/lib/rails/generators/erb/controller/templates/view.html.erb +0 -2
- data/lib/rails/generators/erb/mailer/mailer_generator.rb +0 -13
- data/lib/rails/generators/erb/mailer/templates/view.text.erb +0 -3
- data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +0 -29
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +0 -23
- data/lib/rails/generators/erb/scaffold/templates/edit.html.erb +0 -6
- data/lib/rails/generators/erb/scaffold/templates/index.html.erb +0 -27
- data/lib/rails/generators/erb/scaffold/templates/new.html.erb +0 -5
- data/lib/rails/generators/erb/scaffold/templates/show.html.erb +0 -12
- data/lib/rails/generators/erb.rb +0 -21
- data/lib/rails/generators/generated_attribute.rb +0 -107
- data/lib/rails/generators/js/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/js/assets/templates/javascript.js +0 -2
- data/lib/rails/generators/migration.rb +0 -68
- data/lib/rails/generators/named_base.rb +0 -202
- data/lib/rails/generators/rails/app/USAGE +0 -15
- data/lib/rails/generators/rails/app/app_generator.rb +0 -312
- data/lib/rails/generators/rails/app/templates/Gemfile +0 -21
- data/lib/rails/generators/rails/app/templates/README +0 -261
- data/lib/rails/generators/rails/app/templates/Rakefile +0 -7
- data/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +0 -17
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +0 -13
- data/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +0 -3
- data/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +0 -2
- data/lib/rails/generators/rails/app/templates/app/mailers/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/app/models/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +0 -14
- data/lib/rails/generators/rails/app/templates/config/application.rb +0 -68
- data/lib/rails/generators/rails/app/templates/config/boot.rb +0 -6
- data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +0 -31
- data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +0 -86
- data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +0 -62
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +0 -33
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +0 -43
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +0 -20
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +0 -54
- data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +0 -39
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +0 -55
- data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +0 -25
- data/lib/rails/generators/rails/app/templates/config/environment.rb +0 -5
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +0 -41
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +0 -73
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +0 -39
- data/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +0 -7
- data/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +0 -15
- data/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +0 -5
- data/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +0 -7
- data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -8
- data/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +0 -16
- data/lib/rails/generators/rails/app/templates/config/locales/en.yml +0 -5
- data/lib/rails/generators/rails/app/templates/config/routes.rb +0 -58
- data/lib/rails/generators/rails/app/templates/config.ru +0 -4
- data/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +0 -7
- data/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +0 -2
- data/lib/rails/generators/rails/app/templates/gitignore +0 -15
- data/lib/rails/generators/rails/app/templates/public/404.html +0 -26
- data/lib/rails/generators/rails/app/templates/public/422.html +0 -26
- data/lib/rails/generators/rails/app/templates/public/500.html +0 -25
- data/lib/rails/generators/rails/app/templates/public/robots.txt +0 -5
- data/lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/script/openskies +0 -5
- data/lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/test/functional/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/test/integration/.empty_directory +0 -0
- data/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +0 -12
- data/lib/rails/generators/rails/app/templates/test/test_helper.rb +0 -15
- data/lib/rails/generators/rails/app/templates/test/unit/.empty_directory +0 -0
- data/lib/rails/generators/rails/assets/USAGE +0 -20
- data/lib/rails/generators/rails/assets/assets_generator.rb +0 -25
- data/lib/rails/generators/rails/assets/templates/javascript.js +0 -2
- data/lib/rails/generators/rails/assets/templates/stylesheet.css +0 -4
- data/lib/rails/generators/rails/controller/USAGE +0 -18
- data/lib/rails/generators/rails/controller/controller_generator.rb +0 -20
- data/lib/rails/generators/rails/controller/templates/controller.rb +0 -13
- data/lib/rails/generators/rails/generator/USAGE +0 -12
- data/lib/rails/generators/rails/generator/generator_generator.rb +0 -25
- data/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +0 -3
- data/lib/rails/generators/rails/generator/templates/USAGE.tt +0 -8
- data/lib/rails/generators/rails/generator/templates/templates/.empty_directory +0 -0
- data/lib/rails/generators/rails/helper/USAGE +0 -17
- data/lib/rails/generators/rails/helper/helper_generator.rb +0 -13
- data/lib/rails/generators/rails/helper/templates/helper.rb +0 -4
- data/lib/rails/generators/rails/integration_test/USAGE +0 -10
- data/lib/rails/generators/rails/integration_test/integration_test_generator.rb +0 -7
- data/lib/rails/generators/rails/migration/USAGE +0 -29
- data/lib/rails/generators/rails/migration/migration_generator.rb +0 -8
- data/lib/rails/generators/rails/model/USAGE +0 -45
- data/lib/rails/generators/rails/model/model_generator.rb +0 -8
- data/lib/rails/generators/rails/observer/USAGE +0 -12
- data/lib/rails/generators/rails/observer/observer_generator.rb +0 -7
- data/lib/rails/generators/rails/performance_test/USAGE +0 -10
- data/lib/rails/generators/rails/performance_test/performance_test_generator.rb +0 -7
- data/lib/rails/generators/rails/plugin_new/USAGE +0 -10
- data/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +0 -318
- data/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +0 -29
- data/lib/rails/generators/rails/plugin_new/templates/Gemfile +0 -23
- data/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +0 -20
- data/lib/rails/generators/rails/plugin_new/templates/README.rdoc +0 -3
- data/lib/rails/generators/rails/plugin_new/templates/Rakefile +0 -31
- data/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +0 -4
- data/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +0 -4
- data/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory +0 -0
- data/lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory +0 -0
- data/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +0 -14
- data/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +0 -6
- data/lib/rails/generators/rails/plugin_new/templates/gitignore +0 -7
- data/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +0 -7
- data/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +0 -3
- data/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +0 -6
- data/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +0 -4
- data/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +0 -18
- data/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +0 -10
- data/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +0 -4
- data/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +0 -7
- data/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +0 -7
- data/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +0 -12
- data/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +0 -15
- data/lib/rails/generators/rails/resource/USAGE +0 -23
- data/lib/rails/generators/rails/resource/resource_generator.rb +0 -20
- data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +0 -50
- data/lib/rails/generators/rails/scaffold/USAGE +0 -35
- data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +0 -23
- data/lib/rails/generators/rails/scaffold/templates/scaffold.css +0 -56
- data/lib/rails/generators/rails/scaffold_controller/USAGE +0 -19
- data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +0 -25
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +0 -89
- data/lib/rails/generators/rails/session_migration/USAGE +0 -8
- data/lib/rails/generators/rails/session_migration/session_migration_generator.rb +0 -8
- data/lib/rails/generators/rails/task/USAGE +0 -9
- data/lib/rails/generators/rails/task/task_generator.rb +0 -12
- data/lib/rails/generators/rails/task/templates/task.rb +0 -8
- data/lib/rails/generators/resource_helpers.rb +0 -80
- data/lib/rails/generators/test_case.rb +0 -247
- data/lib/rails/generators/test_unit/controller/controller_generator.rb +0 -15
- data/lib/rails/generators/test_unit/controller/templates/functional_test.rb +0 -19
- data/lib/rails/generators/test_unit/helper/helper_generator.rb +0 -13
- data/lib/rails/generators/test_unit/helper/templates/helper_test.rb +0 -6
- data/lib/rails/generators/test_unit/integration/integration_generator.rb +0 -13
- data/lib/rails/generators/test_unit/integration/templates/integration_test.rb +0 -7
- data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +0 -14
- data/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +0 -21
- data/lib/rails/generators/test_unit/model/model_generator.rb +0 -24
- data/lib/rails/generators/test_unit/model/templates/fixtures.yml +0 -23
- data/lib/rails/generators/test_unit/model/templates/unit_test.rb +0 -9
- data/lib/rails/generators/test_unit/observer/observer_generator.rb +0 -13
- data/lib/rails/generators/test_unit/observer/templates/unit_test.rb +0 -9
- data/lib/rails/generators/test_unit/performance/performance_generator.rb +0 -13
- data/lib/rails/generators/test_unit/performance/templates/performance_test.rb +0 -12
- data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +0 -13
- data/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +0 -7
- data/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +0 -3
- data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +0 -38
- data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +0 -51
- data/lib/rails/generators/test_unit.rb +0 -8
- data/lib/rails/generators.rb +0 -339
- data/lib/rails/info.rb +0 -116
- data/lib/rails/info_controller.rb +0 -15
- data/lib/rails/initializable.rb +0 -89
- data/lib/rails/paths.rb +0 -211
- data/lib/rails/performance_test_help.rb +0 -3
- data/lib/rails/plugin.rb +0 -92
- data/lib/rails/rack/debugger.rb +0 -24
- data/lib/rails/rack/log_tailer.rb +0 -34
- data/lib/rails/rack/logger.rb +0 -60
- data/lib/rails/rack.rb +0 -7
- data/lib/rails/railtie/configurable.rb +0 -35
- data/lib/rails/railtie/configuration.rb +0 -90
- data/lib/rails/railtie.rb +0 -202
- data/lib/rails/ruby_version_check.rb +0 -23
- data/lib/rails/rubyprof_ext.rb +0 -35
- data/lib/rails/script_rails_loader.rb +0 -29
- data/lib/rails/source_annotation_extractor.rb +0 -104
- data/lib/rails/tasks/annotations.rake +0 -20
- data/lib/rails/tasks/documentation.rake +0 -155
- data/lib/rails/tasks/engine.rake +0 -72
- data/lib/rails/tasks/framework.rake +0 -76
- data/lib/rails/tasks/log.rake +0 -9
- data/lib/rails/tasks/middleware.rake +0 -7
- data/lib/rails/tasks/misc.rake +0 -67
- data/lib/rails/tasks/routes.rake +0 -9
- data/lib/rails/tasks/statistics.rake +0 -16
- data/lib/rails/tasks/tmp.rake +0 -37
- data/lib/rails/tasks.rb +0 -16
- data/lib/rails/test_help.rb +0 -56
- data/lib/rails/test_unit/railtie.rb +0 -15
- data/lib/rails/test_unit/sub_test_task.rb +0 -8
- data/lib/rails/test_unit/testing.rake +0 -146
- data/lib/rails.rb +0 -121
- data/lib/version.rb +0 -16
@@ -1,27 +0,0 @@
|
|
1
|
-
<h1>Listing posts</h1>
|
2
|
-
|
3
|
-
<table>
|
4
|
-
<tr>
|
5
|
-
<th>Name</th>
|
6
|
-
<th>Title</th>
|
7
|
-
<th>Content</th>
|
8
|
-
<th></th>
|
9
|
-
<th></th>
|
10
|
-
<th></th>
|
11
|
-
</tr>
|
12
|
-
|
13
|
-
<% @posts.each do |post| %>
|
14
|
-
<tr>
|
15
|
-
<td><%= post.name %></td>
|
16
|
-
<td><%= post.title %></td>
|
17
|
-
<td><%= post.content %></td>
|
18
|
-
<td><%= link_to 'Show', post %></td>
|
19
|
-
<td><%= link_to 'Edit', edit_post_path(post) %></td>
|
20
|
-
<td><%= link_to 'Destroy', post, confirm: 'Are you sure?', method: :delete %></td>
|
21
|
-
</tr>
|
22
|
-
<% end %>
|
23
|
-
</table>
|
24
|
-
|
25
|
-
<br />
|
26
|
-
|
27
|
-
<%= link_to 'New Post', new_post_path %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<p class="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<b>Name:</b>
|
5
|
-
<%= @post.name %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<b>Title:</b>
|
10
|
-
<%= @post.title %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<b>Content:</b>
|
15
|
-
<%= @post.content %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<b>Tags:</b>
|
20
|
-
<%= join_tags(@post) %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<h2>Comments</h2>
|
24
|
-
<%= render @post.comments %>
|
25
|
-
|
26
|
-
<h2>Add a comment:</h2>
|
27
|
-
<%= render "comments/form" %>
|
28
|
-
|
29
|
-
|
30
|
-
<%= link_to 'Edit Post', edit_post_path(@post) %> |
|
31
|
-
<%= link_to 'Back to Posts', posts_path %> |
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<%= form.fields_for :tags do |tag_form| %>
|
2
|
-
<div class="field">
|
3
|
-
<%= tag_form.label :name, 'Tag:' %>
|
4
|
-
<%= tag_form.text_field :name %>
|
5
|
-
</div>
|
6
|
-
<% unless tag_form.object.nil? || tag_form.object.new_record? %>
|
7
|
-
<div class="field">
|
8
|
-
<%= tag_form.label :_destroy, 'Remove:' %>
|
9
|
-
<%= tag_form.check_box :_destroy %>
|
10
|
-
</div>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
if defined?(Bundler)
|
6
|
-
# If you precompile assets before deploying to production, use this line
|
7
|
-
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
8
|
-
# If you want your assets lazily compiled in production, use this line
|
9
|
-
# Bundler.require(:default, :assets, Rails.env)
|
10
|
-
end
|
11
|
-
|
12
|
-
module Blog
|
13
|
-
class Application < Rails::Application
|
14
|
-
# Settings in config/environments/* take precedence over those specified here.
|
15
|
-
# Application configuration should go into files in config/initializers
|
16
|
-
# -- all .rb files in that directory are automatically loaded.
|
17
|
-
|
18
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
-
|
21
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
-
|
25
|
-
# Activate observers that should always be running.
|
26
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
-
|
28
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
-
|
32
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
-
# config.i18n.default_locale = :de
|
35
|
-
|
36
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
-
config.encoding = "utf-8"
|
38
|
-
|
39
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
-
config.filter_parameters += [:password]
|
41
|
-
|
42
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
43
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
44
|
-
# like if you have constraints or database-specific column types
|
45
|
-
# config.active_record.schema_format = :sql
|
46
|
-
|
47
|
-
# Enforce whitelist mode for mass assignment.
|
48
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
49
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
50
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
51
|
-
# config.active_record.whitelist_attributes = true
|
52
|
-
|
53
|
-
# Enable the asset pipeline
|
54
|
-
config.assets.enabled = true
|
55
|
-
|
56
|
-
# Version of your assets, change this if you want to expire all your assets
|
57
|
-
config.assets.version = '1.0'
|
58
|
-
end
|
59
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Blog::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Only use best-standards-support built into browsers
|
23
|
-
config.action_dispatch.best_standards_support = :builtin
|
24
|
-
|
25
|
-
# Raise exception on mass assignment protection for ActiveRecord models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
|
-
# Do not compress assets
|
33
|
-
config.assets.compress = false
|
34
|
-
|
35
|
-
# Expands the lines which load the assets
|
36
|
-
config.assets.debug = true
|
37
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
Blog::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# Code is not reloaded between requests
|
5
|
-
config.cache_classes = true
|
6
|
-
|
7
|
-
# Full error reports are disabled and caching is turned on
|
8
|
-
config.consider_all_requests_local = false
|
9
|
-
config.action_controller.perform_caching = true
|
10
|
-
|
11
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
-
config.serve_static_assets = false
|
13
|
-
|
14
|
-
# Compress JavaScripts and CSS
|
15
|
-
config.assets.compress = true
|
16
|
-
|
17
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
-
config.assets.compile = false
|
19
|
-
|
20
|
-
# Generate digests for assets URLs
|
21
|
-
config.assets.digest = true
|
22
|
-
|
23
|
-
# Defaults to Rails.root.join("public/assets")
|
24
|
-
# config.assets.manifest = YOUR_PATH
|
25
|
-
|
26
|
-
# Specifies the header that your server uses for sending files
|
27
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
-
|
30
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
-
# config.force_ssl = true
|
32
|
-
|
33
|
-
# See everything in the log (default is :info)
|
34
|
-
# config.log_level = :debug
|
35
|
-
|
36
|
-
# Prepend all log lines with the following tags
|
37
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
-
|
39
|
-
# Use a different logger for distributed setups
|
40
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
-
|
42
|
-
# Use a different cache store in production
|
43
|
-
# config.cache_store = :mem_cache_store
|
44
|
-
|
45
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
-
|
48
|
-
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
-
# config.assets.precompile += %w( search.js )
|
50
|
-
|
51
|
-
# Disable delivery errors, bad email addresses will be ignored
|
52
|
-
# config.action_mailer.raise_delivery_errors = false
|
53
|
-
|
54
|
-
# Enable threaded mode
|
55
|
-
# config.threadsafe!
|
56
|
-
|
57
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
-
# the I18n.default_locale when a translation can not be found)
|
59
|
-
config.i18n.fallbacks = true
|
60
|
-
|
61
|
-
# Send deprecation notices to registered listeners
|
62
|
-
config.active_support.deprecation = :notify
|
63
|
-
|
64
|
-
# Log the query plan for queries taking more than this (works
|
65
|
-
# with SQLite, MySQL, and PostgreSQL)
|
66
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Blog::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Configure static asset server for tests with Cache-Control for performance
|
11
|
-
config.serve_static_assets = true
|
12
|
-
config.static_cache_control = "public, max-age=3600"
|
13
|
-
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
|
-
# Show full error reports and disable caching
|
18
|
-
config.consider_all_requests_local = true
|
19
|
-
config.action_controller.perform_caching = false
|
20
|
-
|
21
|
-
# Raise exceptions instead of rendering exception templates
|
22
|
-
config.action_dispatch.show_exceptions = false
|
23
|
-
|
24
|
-
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection = false
|
26
|
-
|
27
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
-
# The :test delivery method accumulates sent emails in the
|
29
|
-
# ActionMailer::Base.deliveries array.
|
30
|
-
config.action_mailer.delivery_method = :test
|
31
|
-
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
|
-
# Print deprecation notices to the stderr
|
36
|
-
config.active_support.deprecation = :stderr
|
37
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,15 +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
|
11
|
-
#
|
12
|
-
# These inflection rules are supported but not enabled by default:
|
13
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
-
# inflect.acronym 'RESTful'
|
15
|
-
# end
|
@@ -1,7 +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
|
-
Blog::Application.config.secret_token = '685a9bf865b728c6549a191c90851c1b5ec41ecb60b9e94ad79dd3f824749798aa7b5e94431901960bee57809db0947b481570f7f13376b7ca190fa28099c459'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
Blog::Application.config.session_store :cookie_store, key: '_blog_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
|
-
# Blog::Application.config.session_store :active_record_store
|
@@ -1,14 +0,0 @@
|
|
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
|
@@ -1,64 +0,0 @@
|
|
1
|
-
Blog::Application.routes.draw do
|
2
|
-
resources :posts do
|
3
|
-
resources :comments
|
4
|
-
end
|
5
|
-
|
6
|
-
get "home/index"
|
7
|
-
|
8
|
-
# The priority is based upon order of creation:
|
9
|
-
# first created -> highest priority.
|
10
|
-
|
11
|
-
# Sample of regular route:
|
12
|
-
# match 'products/:id' => 'catalog#view'
|
13
|
-
# Keep in mind you can assign values other than :controller and :action
|
14
|
-
|
15
|
-
# Sample of named route:
|
16
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
17
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
18
|
-
|
19
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
20
|
-
# resources :products
|
21
|
-
|
22
|
-
# Sample resource route with options:
|
23
|
-
# resources :products do
|
24
|
-
# member do
|
25
|
-
# get 'short'
|
26
|
-
# post 'toggle'
|
27
|
-
# end
|
28
|
-
#
|
29
|
-
# collection do
|
30
|
-
# get 'sold'
|
31
|
-
# end
|
32
|
-
# end
|
33
|
-
|
34
|
-
# Sample resource route with sub-resources:
|
35
|
-
# resources :products do
|
36
|
-
# resources :comments, :sales
|
37
|
-
# resource :seller
|
38
|
-
# end
|
39
|
-
|
40
|
-
# Sample resource route with more complex sub-resources
|
41
|
-
# resources :products do
|
42
|
-
# resources :comments
|
43
|
-
# resources :sales do
|
44
|
-
# get 'recent', :on => :collection
|
45
|
-
# end
|
46
|
-
# end
|
47
|
-
|
48
|
-
# Sample resource route within a namespace:
|
49
|
-
# namespace :admin do
|
50
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
51
|
-
# # (app/controllers/admin/products_controller.rb)
|
52
|
-
# resources :products
|
53
|
-
# end
|
54
|
-
|
55
|
-
# You can have the root of your site routed with "root"
|
56
|
-
# just remember to delete public/index.html.
|
57
|
-
root :to => "home#index"
|
58
|
-
|
59
|
-
# See how all your routes lay out with "rake routes"
|
60
|
-
|
61
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
62
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
63
|
-
# match ':controller(/:action(/:id))(.:format)'
|
64
|
-
end
|
@@ -1,43 +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 => 20110901013701) do
|
15
|
-
|
16
|
-
create_table "comments", :force => true do |t|
|
17
|
-
t.string "commenter"
|
18
|
-
t.text "body"
|
19
|
-
t.integer "post_id"
|
20
|
-
t.datetime "created_at"
|
21
|
-
t.datetime "updated_at"
|
22
|
-
end
|
23
|
-
|
24
|
-
add_index "comments", ["post_id"], :name => "index_comments_on_post_id"
|
25
|
-
|
26
|
-
create_table "posts", :force => true do |t|
|
27
|
-
t.string "name"
|
28
|
-
t.string "title"
|
29
|
-
t.text "content"
|
30
|
-
t.datetime "created_at"
|
31
|
-
t.datetime "updated_at"
|
32
|
-
end
|
33
|
-
|
34
|
-
create_table "tags", :force => true do |t|
|
35
|
-
t.string "name"
|
36
|
-
t.integer "post_id"
|
37
|
-
t.datetime "created_at"
|
38
|
-
t.datetime "updated_at"
|
39
|
-
end
|
40
|
-
|
41
|
-
add_index "tags", ["post_id"], :name => "index_tags_on_post_id"
|
42
|
-
|
43
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
-
# Mayor.create(name: 'Emanuel', city: cities.first)
|
@@ -1,26 +0,0 @@
|
|
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>
|
@@ -1,26 +0,0 @@
|
|
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>
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1,6 +0,0 @@
|
|
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'
|