flms 0.0.2 → 0.0.3

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.
Files changed (89) hide show
  1. data/app/assets/stylesheets/flms/admin.css +1 -0
  2. data/app/controllers/flms/blocks_controller.rb +1 -1
  3. data/app/controllers/flms/image_layers_controller.rb +74 -0
  4. data/app/controllers/flms/layers_controller.rb +2 -43
  5. data/app/models/flms/image_layer.rb +8 -0
  6. data/app/uploaders/image_uploader.rb +62 -0
  7. data/app/views/flms/blocks/show.html.haml +5 -5
  8. data/app/views/flms/{layers → image_layers}/_form.html.haml +5 -0
  9. data/app/views/flms/{layers → image_layers}/edit.html.haml +0 -0
  10. data/app/views/flms/{layers → image_layers}/new.html.haml +0 -0
  11. data/config/initializers/carrierwave.rb +12 -0
  12. data/config/routes.rb +2 -1
  13. data/db/migrate/20130312220011_create_flms_layers.rb +1 -0
  14. data/db/migrate/20130313002421_add_image_to_layers.rb +5 -0
  15. data/lib/flms/version.rb +1 -1
  16. data/spec/controllers/layers_controller_spec.rb +26 -0
  17. data/spec/dummy/db/schema.rb +3 -1
  18. data/spec/dummy/db/test.sqlite3 +0 -0
  19. data/spec/dummy/log/development.log +393 -0
  20. data/spec/dummy/log/test.log +9923 -0
  21. data/spec/dummy/tmp/cache/assets/C4C/010/sprockets%2F74558ebf3d0666286090250c04b945a1 +0 -0
  22. data/spec/dummy/tmp/cache/assets/C84/200/sprockets%2F6d5671bc22b630f45761e90488b3a909 +0 -0
  23. data/spec/dummy/tmp/cache/assets/CA9/AC0/sprockets%2F2f3e0ad16e81532007e094c081594f7e +0 -0
  24. data/spec/dummy/tmp/cache/assets/CAB/C80/sprockets%2Fc4e739111d82c7189113aeb228816ba8 +0 -0
  25. data/spec/dummy/tmp/cache/assets/CB3/E00/sprockets%2F97a8391a80361fb1870669c06a27ae5c +0 -0
  26. data/spec/dummy/tmp/cache/assets/CD1/8F0/sprockets%2F4032f7a5b2133a8b8f963e12fd6120c5 +0 -0
  27. data/spec/dummy/tmp/cache/assets/CD9/AA0/sprockets%2F80c500e462b3e91b00f48609b56ff91b +0 -0
  28. data/spec/dummy/tmp/cache/assets/CDB/510/sprockets%2Fd61745a24c4636f8813fa14038bac69a +0 -0
  29. data/spec/dummy/tmp/cache/assets/D06/AF0/sprockets%2F02a9a4f214368781ba86ed42d5bef203 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D09/5C0/sprockets%2F7cd3521c63623eb6f02dbb514991a6f6 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D0B/0C0/sprockets%2Fb2722b54d89845b9619cadda1a04158c +0 -0
  32. data/spec/dummy/tmp/cache/assets/D0C/570/sprockets%2F7e3d63e1412ae56b44b23d95547f0cc7 +0 -0
  33. data/spec/dummy/tmp/cache/assets/D18/9C0/sprockets%2Ff92d239ff629c160ee015e3845a6c9c3 +0 -0
  34. data/spec/dummy/tmp/cache/assets/D19/060/sprockets%2F4be3ef7d038e55cffc27166271638f60 +0 -0
  35. data/spec/dummy/tmp/cache/assets/D1A/3F0/sprockets%2F84181c4b293f3a1c4efe9226652f9e6e +0 -0
  36. data/spec/dummy/tmp/cache/assets/D2E/130/sprockets%2F5ebb788f274dd034257c0bc0400fae50 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D3B/440/sprockets%2Fabe31f236167ba051f6ff849d0a7282f +0 -0
  38. data/spec/dummy/tmp/cache/assets/D3B/550/sprockets%2Fb61caf9834ac8c31691851ac024f26ef +0 -0
  39. data/spec/dummy/tmp/cache/assets/D44/A50/sprockets%2F7602cd388554ba54eb914c1b2d7ff68c +0 -0
  40. data/spec/dummy/tmp/cache/assets/D46/210/sprockets%2F45a8d49c8edbaf91f38ab1495430384c +0 -0
  41. data/spec/dummy/tmp/cache/assets/D4C/DB0/sprockets%2F18810d4978693cfac8703a96dccbcf80 +0 -0
  42. data/spec/dummy/tmp/cache/assets/D50/0B0/sprockets%2F6c3a019b7442761786cc7bef8e8e7c6c +0 -0
  43. data/spec/dummy/tmp/cache/assets/D53/F80/sprockets%2F11d791b713f9b9cf2bb85bd7f6589b84 +0 -0
  44. data/spec/dummy/tmp/cache/assets/D54/DE0/sprockets%2F77af3e306bb966f71f83e90e2a8868db +0 -0
  45. data/spec/dummy/tmp/cache/assets/D5B/1F0/sprockets%2F4d98e747aa4bb9fc8859f49a45159e1c +0 -0
  46. data/spec/dummy/tmp/cache/assets/D64/D10/sprockets%2F9857068018fbac51ecd0a7510bcca55e +0 -0
  47. data/spec/dummy/tmp/cache/assets/D66/8E0/sprockets%2F0cbda18dbb9e414ed0bf1199358e1742 +0 -0
  48. data/spec/dummy/tmp/cache/assets/D6E/870/sprockets%2F3f77e0b5396013fd145a6fdd21bc9b7f +0 -0
  49. data/spec/dummy/tmp/cache/assets/D71/2D0/sprockets%2F958685af3478f12a33ffaa5cfa26e0d1 +0 -0
  50. data/spec/dummy/tmp/cache/assets/D77/D80/sprockets%2F7ad794c63274a9812dfbabc1dae69692 +0 -0
  51. data/spec/dummy/tmp/cache/assets/D79/DE0/sprockets%2F9e7131d002f39be972e9918bdfbbcc66 +0 -0
  52. data/spec/dummy/tmp/cache/assets/D7C/3A0/sprockets%2Fec63717067efd6b2daf3423edf70f689 +0 -0
  53. data/spec/dummy/tmp/cache/assets/D81/400/sprockets%2F566656e2cc9e698b1dbbd56d6e2e6b36 +0 -0
  54. data/spec/dummy/tmp/cache/assets/D91/320/sprockets%2F322e2344c1fc1234ffd9b3142eecaf6f +0 -0
  55. data/spec/dummy/tmp/cache/assets/D93/0C0/sprockets%2Fab900c084c9c51c312ee3457cee8cdc2 +0 -0
  56. data/spec/dummy/tmp/cache/assets/D93/3F0/sprockets%2Fb6aecc2fe36010208fc8c4cc9e04672c +0 -0
  57. data/spec/dummy/tmp/cache/assets/D97/1B0/sprockets%2Fe0ae6a22a963d0e0819ce6436eb57cae +0 -0
  58. data/spec/dummy/tmp/cache/assets/D98/FD0/sprockets%2F6f253bd2bf824ac38c69bfe1418a04be +0 -0
  59. data/spec/dummy/tmp/cache/assets/D99/CF0/sprockets%2F015b5a48fa7906d045fc23db8a60feef +0 -0
  60. data/spec/dummy/tmp/cache/assets/DA2/330/sprockets%2F27697dddd23a0913339ccb95dabd7ae7 +0 -0
  61. data/spec/dummy/tmp/cache/assets/DA3/920/sprockets%2F6c45b9f8e0152c78b3c9be1c2e8be53c +0 -0
  62. data/spec/dummy/tmp/cache/assets/DA5/BC0/sprockets%2F5b86068a872e5bd841750d6cbd2dfdbf +0 -0
  63. data/spec/dummy/tmp/cache/assets/DA8/4A0/sprockets%2Ff8ba39d58ace11df624bf7e24c7b5882 +0 -0
  64. data/spec/dummy/tmp/cache/assets/DA8/C30/sprockets%2Fb7d14d588a70a56d7ddac542eef557d6 +0 -0
  65. data/spec/dummy/tmp/cache/assets/DAC/D80/sprockets%2Fb8ca14c15e0301b935aaaef327bdc40a +0 -0
  66. data/spec/dummy/tmp/cache/assets/DB8/C30/sprockets%2Fca860af2d10e0c745b6e38b12dabe05f +0 -0
  67. data/spec/dummy/tmp/cache/assets/DBF/630/sprockets%2F8423ad7ae72b0bc6baeac10405389fdf +0 -0
  68. data/spec/dummy/tmp/cache/assets/DC1/530/sprockets%2F4db0b289eee7dad03453a5924c20dcfa +0 -0
  69. data/spec/dummy/tmp/cache/assets/DCC/B80/sprockets%2Fb7ae6e7bfa8984c54a4dfaf0011617cd +0 -0
  70. data/spec/dummy/tmp/cache/assets/DCF/0B0/sprockets%2F23db7ab96a5549546bbdd0bc2e6ea86f +0 -0
  71. data/spec/dummy/tmp/cache/assets/DD4/990/sprockets%2F8dc6b77dc74dfdf830aa8f19b92c130d +0 -0
  72. data/spec/dummy/tmp/cache/assets/DDE/5C0/sprockets%2Ffc38a19244e2fceafe166b8b498fef18 +0 -0
  73. data/spec/dummy/tmp/cache/assets/DF1/A10/sprockets%2Fa925a815ca0bff4d6f42fbdf0d323a4f +0 -0
  74. data/spec/dummy/tmp/cache/assets/DF3/820/sprockets%2Fede955e751bbec440cbbfc00473c34ec +0 -0
  75. data/spec/dummy/tmp/cache/assets/E2D/E20/sprockets%2Fec8c39aa4e1ce3059eeab8f265ead07d +0 -0
  76. data/spec/dummy/tmp/cache/assets/E4B/EE0/sprockets%2F06c4dea4fc3cb561b87bd078aab0facc +0 -0
  77. data/spec/dummy/tmp/cache/assets/E5E/A60/sprockets%2Ff83d84dceff86c25a7bab27cbff33ac0 +0 -0
  78. data/spec/dummy/tmp/cache/assets/E6D/8B0/sprockets%2F9edfdf7e85cdd1a69b0eb14c6ce8ed19 +0 -0
  79. data/spec/dummy/tmp/pids/server.pid +1 -0
  80. data/spec/factories/image_layer.rb +6 -0
  81. data/spec/features/layers/{create_spec.rb → image_layers/create_spec.rb} +5 -4
  82. data/spec/features/layers/image_layers/delete_spec.rb +23 -0
  83. data/spec/features/layers/{update_spec.rb → image_layers/edit_spec.rb} +9 -7
  84. data/spec/support/lets.rb +2 -1
  85. data/{app/assets/images/img → vendor/assets/images}/glyphicons-halflings-white.png +0 -0
  86. data/{app/assets/images/img → vendor/assets/images}/glyphicons-halflings.png +0 -0
  87. data/{app/assets/stylesheets/flms → vendor/assets/stylesheets}/bootstrap.css +2 -2
  88. metadata +52 -13
  89. data/spec/features/layers/index_spec.rb +0 -13
@@ -3,5 +3,6 @@
3
3
  *
4
4
  *= require_tree .
5
5
  *= require jquery-ui
6
+ *= require bootstrap
6
7
  *= require bootstrapSwitch
7
8
  */
@@ -5,7 +5,7 @@ module Flms
5
5
  layout 'flms/admin'
6
6
  before_filter :authenticate_user!
7
7
  before_filter :load_page
8
- before_filter :load_block, only: [:show, :edit, :update, :delete]
8
+ before_filter :load_block, only: [:show, :edit, :update, :destroy]
9
9
 
10
10
  def index
11
11
  end
@@ -0,0 +1,74 @@
1
+ require_dependency "flms/application_controller"
2
+
3
+ module Flms
4
+ class ImageLayersController < ApplicationController
5
+ layout 'flms/admin'
6
+ before_filter :authenticate_user!
7
+ before_filter :load_page
8
+ before_filter :load_block
9
+ before_filter :load_layer, only: [:show, :edit, :update, :delete]
10
+
11
+ def index
12
+ end
13
+
14
+ def show
15
+ end
16
+
17
+ def new
18
+ @layer = ImageLayer.new
19
+ end
20
+
21
+ def edit
22
+ end
23
+
24
+ def create
25
+ @layer = ImageLayer.new params[:image_layer]
26
+ @layer.image = params[:image_layer][:image]
27
+ @layer.block = @block
28
+ if @layer.save
29
+ redirect_to page_block_path(@page, @block), notice: 'Layer created'
30
+ else
31
+ render action: "new"
32
+ end
33
+ end
34
+
35
+ def update
36
+ if @layer.update_attributes(params[:image_layer])
37
+ redirect_to [@page, @block], notice: 'Layer updated'
38
+ else
39
+ render action: "edit"
40
+ end
41
+ end
42
+
43
+ def update_all
44
+ params[:layer_data].each_with_index do |layer_data, pos|
45
+ position = @page.position_for_layer layer_data[:id].to_i
46
+ position.active = layer_data[:active]
47
+ position.ordering = pos
48
+ position.save!
49
+ end
50
+ render text: ''
51
+ end
52
+
53
+ def destroy
54
+ @layer.destroy
55
+ redirect_to page_blocks_path(@page), notice: 'Layer deleted'
56
+ end
57
+
58
+
59
+ private
60
+
61
+ def load_page
62
+ @page = Page.find_by_url params[:page_id]
63
+ end
64
+
65
+ def load_block
66
+ @block = Block.find params[:block_id]
67
+ end
68
+
69
+ def load_layer
70
+ @layer = ImageLayer.find params[:id]
71
+ end
72
+ end
73
+ end
74
+
@@ -6,52 +6,11 @@ module Flms
6
6
  before_filter :authenticate_user!
7
7
  before_filter :load_page
8
8
  before_filter :load_block
9
- before_filter :load_layer, only: [:show, :edit, :update, :delete]
10
-
11
- def index
12
- end
13
-
14
- def show
15
- end
16
-
17
- def new
18
- @layer = Layer.new
19
- end
20
-
21
- def edit
22
- end
23
-
24
- def create
25
- @layer = Layer.new params[:layer]
26
- @layer.block = @block
27
- if @layer.save
28
- redirect_to page_block_path(@page, @block), notice: 'Layer created'
29
- else
30
- render action: "new"
31
- end
32
- end
33
-
34
- def update
35
- if @layer.update_attributes(params[:layer])
36
- redirect_to [@page, @block], notice: 'Layer updated'
37
- else
38
- render action: "edit"
39
- end
40
- end
41
-
42
- def update_all
43
- params[:layer_data].each_with_index do |layer_data, pos|
44
- position = @page.position_for_layer layer_data[:id].to_i
45
- position.active = layer_data[:active]
46
- position.ordering = pos
47
- position.save!
48
- end
49
- render text: ''
50
- end
9
+ before_filter :load_layer, only: [:show, :edit, :update, :destroy]
51
10
 
52
11
  def destroy
53
12
  @layer.destroy
54
- redirect_to page_layers_path(@page), notice: 'Layer deleted'
13
+ redirect_to page_block_path(@page, @block), notice: 'Layer deleted'
55
14
  end
56
15
 
57
16
 
@@ -0,0 +1,8 @@
1
+ module Flms
2
+ class ImageLayer < Layer
3
+ attr_accessible :image
4
+
5
+ mount_uploader :image, ImageUploader
6
+ end
7
+ end
8
+
@@ -0,0 +1,62 @@
1
+ # encoding: utf-8
2
+ require 'carrierwave'
3
+ require 'carrierwave/processing/mime_types'
4
+ require 'carrierwave/orm/activerecord'
5
+
6
+ class ImageUploader < CarrierWave::Uploader::Base
7
+
8
+ # Process MIME types.
9
+ include CarrierWave::MimeTypes
10
+ process :set_content_type
11
+
12
+ # Include RMagick or MiniMagick support:
13
+ # include CarrierWave::RMagick
14
+ # include CarrierWave::MiniMagick
15
+
16
+ # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility:
17
+ include Sprockets::Helpers::RailsHelper
18
+ include Sprockets::Helpers::IsolatedHelper
19
+
20
+ # Choose what kind of storage to use for this uploader:
21
+ storage :file
22
+ # storage :fog
23
+
24
+ # Override the directory where uploaded files will be stored.
25
+ # This is a sensible default for uploaders that are meant to be mounted:
26
+ def store_dir
27
+ "public/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
28
+ end
29
+
30
+ # Provide a default URL as a default if there hasn't been a file uploaded:
31
+ def default_url
32
+ # # For Rails 3.1+ asset pipeline compatibility:
33
+ asset_path("fallback/" + [version_name, "default.png"].compact.join('_'))
34
+ #
35
+ # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
36
+ end
37
+
38
+ # Process files as they are uploaded:
39
+ # process :scale => [200, 300]
40
+ #
41
+ # def scale(width, height)
42
+ # # do something
43
+ # end
44
+
45
+ # Create different versions of your uploaded files:
46
+ # version :thumb do
47
+ # process :scale => [50, 50]
48
+ # end
49
+
50
+ # Add a white list of extensions which are allowed to be uploaded.
51
+ # For images you might use something like this:
52
+ def extension_white_list
53
+ %w(jpg jpeg gif png)
54
+ end
55
+
56
+ # Override the filename of the uploaded files:
57
+ # Avoid using model.id or version_name here, see uploader/store.rb for details.
58
+ # def filename
59
+ # "something.jpg" if original_filename
60
+ # end
61
+
62
+ end
@@ -15,20 +15,20 @@
15
15
 
16
16
  %td.name
17
17
  = layer.name
18
+ -# = image_tag layer.image_url if layer.image?
18
19
 
19
20
  %td.action
20
- = link_to edit_page_block_layer_path(@page, @block, layer), class: 'btn', title: 'edit' do
21
+ = link_to edit_page_block_image_layer_path(@page, @block, layer), class: 'btn edit', title: 'edit' do
21
22
  %i.icon-pencil
22
23
 
23
- %td.action
24
- = link_to page_block_layer_path(@page, @block, layer), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn', title: 'delete' do
24
+ = link_to page_block_layer_path(@page, @block, layer), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn delete', title: 'delete' do
25
25
  %i.icon-trash
26
26
 
27
27
  %br
28
28
 
29
- = link_to new_page_block_layer_path(@page, @block), class: 'btn btn-success' do
29
+ = link_to new_page_block_image_layer_path(@page, @block), class: 'btn btn-success' do
30
30
  %i.icon-plus.icon-white
31
- New Layer
31
+ Add Image Layer
32
32
 
33
33
  %button#save.btn.btn-primary
34
34
  %i.icon-hdd.icon-white
@@ -15,6 +15,11 @@
15
15
  = f.text_field :name, autofocus: true
16
16
  %span.help-inline The internal name of this layer.
17
17
 
18
+ .control-group
19
+ = f.label :image, class: 'control-label'
20
+ .controls
21
+ = f.file_field :image
22
+
18
23
  .control-group
19
24
  .controls
20
25
  .actions
@@ -0,0 +1,12 @@
1
+ require 'carrierwave'
2
+
3
+ CarrierWave.configure do |config|
4
+ config.cache_dir = "#{Rails.root}/tmp/uploads"
5
+ config.root = Rails.root
6
+ end
7
+ # if Rails.env.test? or Rails.env.cucumber?
8
+ # CarrierWave.configure do |config|
9
+ # config.storage = :file
10
+ # config.enable_processing = false
11
+ # end
12
+ # end
@@ -3,7 +3,8 @@ Flms::Engine.routes.draw do
3
3
  resources :pages do
4
4
  put 'blocks', to: 'blocks#update_all'
5
5
  resources :blocks do
6
- resources :layers, except: [:index]
6
+ resources :layers, only: [:destroy]
7
+ resources :image_layers, except: [:index]
7
8
  end
8
9
  end
9
10
 
@@ -4,6 +4,7 @@ class CreateFlmsLayers < ActiveRecord::Migration
4
4
  t.string :name
5
5
  t.integer :block_id
6
6
  t.integer :ordering
7
+ t.string :type
7
8
 
8
9
  t.timestamps
9
10
  end
@@ -0,0 +1,5 @@
1
+ class AddImageToLayers < ActiveRecord::Migration
2
+ def change
3
+ add_column :flms_layers, :image, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Flms
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ describe Flms::LayersController do
4
+ include NamedFactories
5
+
6
+ describe 'delete' do
7
+ describe 'access control' do
8
+ let(:request) { delete :destroy, id: image_layer_1a1.id, block_id: block_1a.id, page_id: page_1.url, use_route: :flms }
9
+ let(:access_granted_check) { response.status == 302 && response.location == "http://test.host/flms/pages/#{page_1.url}/blocks/#{block_1a.id}" }
10
+ let(:database_performed_check) { Flms::Layer.count == 0 }
11
+ it_should_behave_like 'an action accessible only to logged-in users'
12
+ end
13
+
14
+ describe 'functionality' do
15
+
16
+ it 'deletes the given image layer' do
17
+ sign_in user
18
+ delete :destroy, id: image_layer_1a1.id, block_id: block_1a.id, page_id: page_1.url, use_route: :flms
19
+
20
+ expect(response).to redirect_to [page_1, block_1a]
21
+ expect(Flms::Layer).to have(0).instances
22
+ end
23
+ end
24
+ end
25
+ end
26
+
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130312220011) do
14
+ ActiveRecord::Schema.define(:version => 20130313002421) do
15
15
 
16
16
  create_table "flms_blocks", :force => true do |t|
17
17
  t.string "name"
@@ -35,8 +35,10 @@ ActiveRecord::Schema.define(:version => 20130312220011) do
35
35
  t.string "name"
36
36
  t.integer "block_id"
37
37
  t.integer "ordering"
38
+ t.string "type"
38
39
  t.datetime "created_at", :null => false
39
40
  t.datetime "updated_at", :null => false
41
+ t.string "image"
40
42
  end
41
43
 
42
44
  add_index "flms_layers", ["block_id"], :name => "index_flms_layers_on_block_id"
Binary file
@@ -83214,3 +83214,396 @@ Served asset /img/glyphicons-halflings.png - 304 Not Modified (4ms)
83214
83214
 
83215
83215
  Started GET "/assets/img/glyphicons-halflings-white.png" for 127.0.0.1 at 2013-03-15 17:00:35 -0700
83216
83216
  Served asset /img/glyphicons-halflings-white.png - 304 Not Modified (7ms)
83217
+ Connecting to database specified by database.yml
83218
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
83219
+ Migrating to FlmsDeviseCreateUsers (20130208224914)
83220
+ Migrating to FlmsCreatePages (20130216032241)
83221
+ Migrating to CreateFlmsBlocks (20130302011705)
83222
+ Migrating to CreateFlmsBlocksPages (20130302015459)
83223
+ Migrating to CreateFlmsLayers (20130312220011)
83224
+ Migrating to AddImageToLayers (20130313002421)
83225
+  (0.1ms) select sqlite_version(*)
83226
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
83227
+ Connecting to database specified by database.yml
83228
+  (0.1ms) select sqlite_version(*)
83229
+  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
83230
+ Connecting to database specified by database.yml
83231
+
83232
+
83233
+ Started GET "/flms/" for 127.0.0.1 at 2013-03-15 17:33:15 -0700
83234
+ Processing by Flms::DashboardController#index as HTML
83235
+ Flms::User Load (0.1ms) SELECT "flms_users".* FROM "flms_users" WHERE "flms_users"."id" = 1 LIMIT 1
83236
+ Flms::Page Load (0.1ms) SELECT "flms_pages".* FROM "flms_pages"
83237
+ Rendered /Users/kevin/flms/app/views/flms/dashboard/index.html.haml within layouts/flms/admin (1.7ms)
83238
+ Compiled flms/blocks/index.css (176ms) (pid 29252)
83239
+ Compiled flms/blocks/show.css (0ms) (pid 29252)
83240
+ Compiled flms/home.css (1ms) (pid 29252)
83241
+ Compiled flms/layout.css (1ms) (pid 29252)
83242
+ Compiled flms/login.css (3ms) (pid 29252)
83243
+ Compiled jquery-ui.css (0ms) (pid 29252)
83244
+ Compiled bootstrap.css (0ms) (pid 29252)
83245
+ Compiled bootstrapSwitch.css (0ms) (pid 29252)
83246
+ Compiled flms/admin.css (209ms) (pid 29252)
83247
+ Compiled jquery.js (1ms) (pid 29252)
83248
+ Compiled jquery_ujs.js (0ms) (pid 29252)
83249
+ Compiled jquery-ui.js (33ms) (pid 29252)
83250
+ Compiled modularity/tools/string_tools.js (112ms) (pid 29252)
83251
+ Compiled modularity/modularity.js (303ms) (pid 29252)
83252
+ Compiled flms/blocks/index/block.js (116ms) (pid 29252)
83253
+ Compiled flms/blocks/index/block_list.js (151ms) (pid 29252)
83254
+ Compiled flms/blocks/index/index.js (130ms) (pid 29252)
83255
+ Compiled flms/bootstrap.js (0ms) (pid 29252)
83256
+ Compiled flms/layout.js (112ms) (pid 29252)
83257
+ Compiled bootstrapSwitch.js (0ms) (pid 29252)
83258
+ Compiled flms/admin.js (926ms) (pid 29252)
83259
+ Completed 200 OK in 1316ms (Views: 1241.5ms | ActiveRecord: 1.6ms)
83260
+
83261
+
83262
+ Started GET "/assets/flms/blocks/index.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83263
+ Served asset /flms/blocks/index.css - 304 Not Modified (2ms)
83264
+
83265
+
83266
+ Started GET "/assets/flms/blocks/show.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83267
+ Served asset /flms/blocks/show.css - 304 Not Modified (2ms)
83268
+
83269
+
83270
+ Started GET "/assets/flms/home.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83271
+ Served asset /flms/home.css - 304 Not Modified (1ms)
83272
+
83273
+
83274
+ Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83275
+ Served asset /jquery-ui.css - 304 Not Modified (2ms)
83276
+
83277
+
83278
+ Started GET "/assets/flms/login.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83279
+ Served asset /flms/login.css - 304 Not Modified (2ms)
83280
+
83281
+
83282
+ Started GET "/assets/flms/layout.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83283
+ Served asset /flms/layout.css - 304 Not Modified (4ms)
83284
+
83285
+
83286
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83287
+ Served asset /bootstrap.css - 304 Not Modified (2ms)
83288
+
83289
+
83290
+ Started GET "/assets/bootstrapSwitch.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83291
+ Served asset /bootstrapSwitch.css - 304 Not Modified (2ms)
83292
+
83293
+
83294
+ Started GET "/assets/flms/admin.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83295
+ Served asset /flms/admin.css - 200 OK (11ms)
83296
+
83297
+
83298
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83299
+ Served asset /jquery.js - 304 Not Modified (2ms)
83300
+
83301
+
83302
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83303
+ Served asset /jquery_ujs.js - 304 Not Modified (3ms)
83304
+
83305
+
83306
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83307
+ Served asset /jquery-ui.js - 304 Not Modified (3ms)
83308
+
83309
+
83310
+ Started GET "/assets/modularity/modularity.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83311
+ Served asset /modularity/modularity.js - 200 OK (9ms)
83312
+
83313
+
83314
+ Started GET "/assets/modularity/tools/string_tools.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83315
+ Served asset /modularity/tools/string_tools.js - 304 Not Modified (1ms)
83316
+
83317
+
83318
+ Started GET "/assets/flms/blocks/index/block.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83319
+ Served asset /flms/blocks/index/block.js - 304 Not Modified (2ms)
83320
+
83321
+
83322
+ Started GET "/assets/flms/blocks/index/block_list.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83323
+ Served asset /flms/blocks/index/block_list.js - 304 Not Modified (37ms)
83324
+
83325
+
83326
+ Started GET "/assets/flms/blocks/index/index.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83327
+ Served asset /flms/blocks/index/index.js - 304 Not Modified (3ms)
83328
+
83329
+
83330
+ Started GET "/assets/flms/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83331
+ Served asset /flms/bootstrap.js - 304 Not Modified (2ms)
83332
+
83333
+
83334
+ Started GET "/assets/flms/layout.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83335
+ Served asset /flms/layout.js - 304 Not Modified (1ms)
83336
+
83337
+
83338
+ Started GET "/assets/bootstrapSwitch.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83339
+ Served asset /bootstrapSwitch.js - 304 Not Modified (1ms)
83340
+
83341
+
83342
+ Started GET "/assets/flms/admin.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83343
+ Served asset /flms/admin.js - 304 Not Modified (13ms)
83344
+
83345
+
83346
+ Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83347
+ Served asset /glyphicons-halflings-white.png - 304 Not Modified (3ms)
83348
+
83349
+
83350
+ Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2013-03-15 17:33:16 -0700
83351
+ Served asset /glyphicons-halflings.png - 304 Not Modified (4ms)
83352
+
83353
+
83354
+ Started GET "/flms/pages" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83355
+ Processing by Flms::PagesController#index as HTML
83356
+ Flms::User Load (0.2ms) SELECT "flms_users".* FROM "flms_users" WHERE "flms_users"."id" = 1 LIMIT 1
83357
+ Flms::Page Load (0.1ms) SELECT "flms_pages".* FROM "flms_pages"
83358
+ Rendered /Users/kevin/flms/app/views/flms/pages/index.html.haml within layouts/flms/admin (3.2ms)
83359
+ Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.2ms)
83360
+
83361
+
83362
+ Started GET "/assets/flms/blocks/index.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83363
+ Served asset /flms/blocks/index.css - 304 Not Modified (0ms)
83364
+
83365
+
83366
+ Started GET "/assets/flms/blocks/show.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83367
+ Served asset /flms/blocks/show.css - 304 Not Modified (0ms)
83368
+
83369
+
83370
+ Started GET "/assets/flms/home.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83371
+ Served asset /flms/home.css - 304 Not Modified (0ms)
83372
+
83373
+
83374
+ Started GET "/assets/flms/layout.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83375
+ Served asset /flms/layout.css - 304 Not Modified (0ms)
83376
+
83377
+
83378
+ Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83379
+ Served asset /jquery-ui.css - 304 Not Modified (0ms)
83380
+
83381
+
83382
+ Started GET "/assets/flms/login.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83383
+ Served asset /flms/login.css - 304 Not Modified (0ms)
83384
+
83385
+
83386
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83387
+ Served asset /bootstrap.css - 304 Not Modified (0ms)
83388
+
83389
+
83390
+ Started GET "/assets/bootstrapSwitch.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83391
+ Served asset /bootstrapSwitch.css - 304 Not Modified (0ms)
83392
+
83393
+
83394
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83395
+ Served asset /jquery.js - 304 Not Modified (0ms)
83396
+
83397
+
83398
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83399
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
83400
+
83401
+
83402
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83403
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
83404
+
83405
+
83406
+ Started GET "/assets/modularity/tools/string_tools.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83407
+ Served asset /modularity/tools/string_tools.js - 304 Not Modified (0ms)
83408
+
83409
+
83410
+ Started GET "/assets/flms/blocks/index/block.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83411
+ Served asset /flms/blocks/index/block.js - 304 Not Modified (0ms)
83412
+
83413
+
83414
+ Started GET "/assets/flms/blocks/index/index.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83415
+ Served asset /flms/blocks/index/index.js - 304 Not Modified (0ms)
83416
+
83417
+
83418
+ Started GET "/assets/flms/blocks/index/block_list.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83419
+ Served asset /flms/blocks/index/block_list.js - 304 Not Modified (0ms)
83420
+
83421
+
83422
+ Started GET "/assets/flms/layout.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83423
+ Served asset /flms/layout.js - 304 Not Modified (0ms)
83424
+
83425
+
83426
+ Started GET "/assets/flms/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83427
+ Served asset /flms/bootstrap.js - 304 Not Modified (0ms)
83428
+
83429
+
83430
+ Started GET "/assets/bootstrapSwitch.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83431
+ Served asset /bootstrapSwitch.js - 304 Not Modified (0ms)
83432
+
83433
+
83434
+ Started GET "/assets/flms/admin.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:23 -0700
83435
+ Served asset /flms/admin.js - 304 Not Modified (0ms)
83436
+
83437
+
83438
+ Started GET "/flms/pages/home/blocks" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83439
+ Processing by Flms::BlocksController#index as HTML
83440
+ Parameters: {"page_id"=>"home"}
83441
+ Flms::User Load (0.1ms) SELECT "flms_users".* FROM "flms_users" WHERE "flms_users"."id" = 1 LIMIT 1
83442
+ Flms::Page Load (0.1ms) SELECT "flms_pages".* FROM "flms_pages" WHERE "flms_pages"."url" = 'home' LIMIT 1
83443
+ Flms::BlocksPage Load (0.1ms) SELECT "flms_blocks_pages".* FROM "flms_blocks_pages" WHERE "flms_blocks_pages"."page_id" = 2 ORDER BY ordering
83444
+ Flms::Block Load (0.1ms) SELECT "flms_blocks".* FROM "flms_blocks" WHERE "flms_blocks"."id" IN (1, 2, 3)
83445
+ Rendered /Users/kevin/flms/app/views/flms/blocks/index.html.haml within layouts/flms/admin (35.1ms)
83446
+ Completed 200 OK in 45ms (Views: 43.0ms | ActiveRecord: 0.9ms)
83447
+
83448
+
83449
+ Started GET "/assets/flms/blocks/index.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83450
+ Served asset /flms/blocks/index.css - 304 Not Modified (0ms)
83451
+
83452
+
83453
+ Started GET "/assets/flms/home.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83454
+ Served asset /flms/home.css - 304 Not Modified (0ms)
83455
+
83456
+
83457
+ Started GET "/assets/flms/login.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83458
+ Served asset /flms/login.css - 304 Not Modified (0ms)
83459
+
83460
+
83461
+ Started GET "/assets/flms/blocks/show.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83462
+ Served asset /flms/blocks/show.css - 304 Not Modified (0ms)
83463
+
83464
+
83465
+ Started GET "/assets/flms/layout.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83466
+ Served asset /flms/layout.css - 304 Not Modified (0ms)
83467
+
83468
+
83469
+ Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83470
+ Served asset /jquery-ui.css - 304 Not Modified (0ms)
83471
+
83472
+
83473
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83474
+ Served asset /bootstrap.css - 304 Not Modified (0ms)
83475
+
83476
+
83477
+ Started GET "/assets/bootstrapSwitch.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83478
+ Served asset /bootstrapSwitch.css - 304 Not Modified (0ms)
83479
+
83480
+
83481
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83482
+ Served asset /jquery.js - 304 Not Modified (0ms)
83483
+
83484
+
83485
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83486
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
83487
+
83488
+
83489
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83490
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
83491
+
83492
+
83493
+ Started GET "/assets/modularity/tools/string_tools.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83494
+ Served asset /modularity/tools/string_tools.js - 304 Not Modified (0ms)
83495
+
83496
+
83497
+ Started GET "/assets/flms/blocks/index/block.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83498
+ Served asset /flms/blocks/index/block.js - 304 Not Modified (0ms)
83499
+
83500
+
83501
+ Started GET "/assets/flms/blocks/index/block_list.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83502
+ Served asset /flms/blocks/index/block_list.js - 304 Not Modified (0ms)
83503
+
83504
+
83505
+ Started GET "/assets/flms/blocks/index/index.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83506
+ Served asset /flms/blocks/index/index.js - 304 Not Modified (0ms)
83507
+
83508
+
83509
+ Started GET "/assets/flms/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83510
+ Served asset /flms/bootstrap.js - 304 Not Modified (0ms)
83511
+
83512
+
83513
+ Started GET "/assets/flms/layout.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83514
+ Served asset /flms/layout.js - 304 Not Modified (0ms)
83515
+
83516
+
83517
+ Started GET "/assets/flms/admin.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83518
+ Served asset /flms/admin.js - 304 Not Modified (0ms)
83519
+
83520
+
83521
+ Started GET "/assets/bootstrapSwitch.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:25 -0700
83522
+ Served asset /bootstrapSwitch.js - 304 Not Modified (0ms)
83523
+
83524
+
83525
+ Started GET "/flms/pages/home/blocks/1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83526
+ Processing by Flms::BlocksController#show as HTML
83527
+ Parameters: {"page_id"=>"home", "id"=>"1"}
83528
+ Flms::User Load (0.1ms) SELECT "flms_users".* FROM "flms_users" WHERE "flms_users"."id" = 1 LIMIT 1
83529
+ Flms::Page Load (0.1ms) SELECT "flms_pages".* FROM "flms_pages" WHERE "flms_pages"."url" = 'home' LIMIT 1
83530
+ Flms::Block Load (0.2ms) SELECT "flms_blocks".* FROM "flms_blocks" WHERE "flms_blocks"."id" = ? LIMIT 1 [["id", "1"]]
83531
+ Flms::Layer Load (0.1ms) SELECT "flms_layers".* FROM "flms_layers" WHERE "flms_layers"."block_id" = 1
83532
+ Rendered /Users/kevin/flms/app/views/flms/blocks/show.html.haml within layouts/flms/admin (82.3ms)
83533
+ Completed 200 OK in 93ms (Views: 90.4ms | ActiveRecord: 0.7ms)
83534
+
83535
+
83536
+ Started GET "/assets/flms/blocks/index.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83537
+ Served asset /flms/blocks/index.css - 304 Not Modified (0ms)
83538
+
83539
+
83540
+ Started GET "/assets/flms/blocks/show.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83541
+ Served asset /flms/blocks/show.css - 304 Not Modified (0ms)
83542
+
83543
+
83544
+ Started GET "/assets/flms/home.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83545
+ Served asset /flms/home.css - 304 Not Modified (0ms)
83546
+
83547
+
83548
+ Started GET "/assets/flms/layout.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83549
+ Served asset /flms/layout.css - 304 Not Modified (0ms)
83550
+
83551
+
83552
+ Started GET "/assets/flms/login.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83553
+ Served asset /flms/login.css - 304 Not Modified (0ms)
83554
+
83555
+
83556
+ Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83557
+ Served asset /jquery-ui.css - 304 Not Modified (0ms)
83558
+
83559
+
83560
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83561
+ Served asset /bootstrap.css - 304 Not Modified (0ms)
83562
+
83563
+
83564
+ Started GET "/assets/bootstrapSwitch.css?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83565
+ Served asset /bootstrapSwitch.css - 304 Not Modified (0ms)
83566
+
83567
+
83568
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83569
+ Served asset /jquery.js - 304 Not Modified (0ms)
83570
+
83571
+
83572
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83573
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
83574
+
83575
+
83576
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83577
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
83578
+
83579
+
83580
+ Started GET "/assets/modularity/tools/string_tools.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83581
+ Served asset /modularity/tools/string_tools.js - 304 Not Modified (0ms)
83582
+
83583
+
83584
+ Started GET "/assets/flms/blocks/index/block.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83585
+ Served asset /flms/blocks/index/block.js - 304 Not Modified (0ms)
83586
+
83587
+
83588
+ Started GET "/assets/flms/blocks/index/block_list.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83589
+ Served asset /flms/blocks/index/block_list.js - 304 Not Modified (0ms)
83590
+
83591
+
83592
+ Started GET "/assets/flms/blocks/index/index.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83593
+ Served asset /flms/blocks/index/index.js - 304 Not Modified (0ms)
83594
+
83595
+
83596
+ Started GET "/assets/flms/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83597
+ Served asset /flms/bootstrap.js - 304 Not Modified (0ms)
83598
+
83599
+
83600
+ Started GET "/assets/flms/layout.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83601
+ Served asset /flms/layout.js - 304 Not Modified (0ms)
83602
+
83603
+
83604
+ Started GET "/assets/bootstrapSwitch.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83605
+ Served asset /bootstrapSwitch.js - 304 Not Modified (0ms)
83606
+
83607
+
83608
+ Started GET "/assets/flms/admin.js?body=1" for 127.0.0.1 at 2013-03-15 17:33:27 -0700
83609
+ Served asset /flms/admin.js - 304 Not Modified (0ms)