sunrise-locales 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. data/Gemfile +36 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +15 -0
  4. data/Rakefile +27 -0
  5. data/app/controllers/manage/locales_controller.rb +43 -0
  6. data/app/views/manage/locales/_locale.html.erb +21 -0
  7. data/app/views/manage/locales/edit.html.erb +101 -0
  8. data/app/views/manage/locales/index.html.erb +24 -0
  9. data/config/locales/ru.yml +20 -0
  10. data/config/locales/uk.yml +20 -0
  11. data/config/routes.rb +5 -0
  12. data/lib/generators/sunrise/locales/USAGE +6 -0
  13. data/lib/generators/sunrise/locales/install_generator.rb +20 -0
  14. data/lib/generators/sunrise/locales/templates/codemirror.css +107 -0
  15. data/lib/generators/sunrise/locales/templates/codemirror.js +2157 -0
  16. data/lib/generators/sunrise/locales/templates/yaml.js +95 -0
  17. data/lib/sunrise-locales.rb +1 -0
  18. data/lib/sunrise/locales.rb +13 -0
  19. data/lib/sunrise/locales/engine.rb +19 -0
  20. data/lib/sunrise/locales/version.rb +5 -0
  21. data/lib/sunrise/locales/yml_locale.rb +43 -0
  22. data/spec/controllers/manage/locales_controller_spec.rb +59 -0
  23. data/spec/dummy/Rakefile +7 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/helpers/manage/assets_helper.rb +2 -0
  27. data/spec/dummy/app/helpers/manage/base_helper.rb +81 -0
  28. data/spec/dummy/app/helpers/manage/pages_helper.rb +2 -0
  29. data/spec/dummy/app/helpers/manage/settings_helper.rb +2 -0
  30. data/spec/dummy/app/helpers/manage/structures_helper.rb +12 -0
  31. data/spec/dummy/app/helpers/manage/users_helper.rb +6 -0
  32. data/spec/dummy/app/models/defaults/ability.rb +39 -0
  33. data/spec/dummy/app/models/defaults/asset.rb +9 -0
  34. data/spec/dummy/app/models/defaults/attachment_file.rb +31 -0
  35. data/spec/dummy/app/models/defaults/avatar.rb +33 -0
  36. data/spec/dummy/app/models/defaults/header.rb +5 -0
  37. data/spec/dummy/app/models/defaults/page.rb +5 -0
  38. data/spec/dummy/app/models/defaults/picture.rb +31 -0
  39. data/spec/dummy/app/models/defaults/position_type.rb +7 -0
  40. data/spec/dummy/app/models/defaults/role.rb +20 -0
  41. data/spec/dummy/app/models/defaults/role_type.rb +8 -0
  42. data/spec/dummy/app/models/defaults/structure.rb +16 -0
  43. data/spec/dummy/app/models/defaults/structure_type.rb +9 -0
  44. data/spec/dummy/app/models/defaults/user.rb +47 -0
  45. data/spec/dummy/app/uploaders/attachment_file_uploader.rb +5 -0
  46. data/spec/dummy/app/uploaders/avatar_uploader.rb +17 -0
  47. data/spec/dummy/app/uploaders/picture_uploader.rb +17 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +37 -0
  49. data/spec/dummy/app/views/pages/show.html.erb +2 -0
  50. data/spec/dummy/app/views/shared/_notice.html.erb +17 -0
  51. data/spec/dummy/config.ru +4 -0
  52. data/spec/dummy/config/application.rb +46 -0
  53. data/spec/dummy/config/application.yml.sample +4 -0
  54. data/spec/dummy/config/boot.rb +10 -0
  55. data/spec/dummy/config/database.yml +22 -0
  56. data/spec/dummy/config/database.yml.sample +34 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +26 -0
  59. data/spec/dummy/config/environments/production.rb +49 -0
  60. data/spec/dummy/config/environments/test.rb +35 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/devise.rb +204 -0
  63. data/spec/dummy/config/initializers/inflections.rb +10 -0
  64. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  65. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  66. data/spec/dummy/config/initializers/session_store.rb +8 -0
  67. data/spec/dummy/config/initializers/simple_form.rb +93 -0
  68. data/spec/dummy/config/initializers/sunrise.rb +9 -0
  69. data/spec/dummy/config/locales/devise.en.yml +53 -0
  70. data/spec/dummy/config/locales/en.yml +3 -0
  71. data/spec/dummy/config/locales/ru.yml +3 -0
  72. data/spec/dummy/config/locales/simple_form.en.yml +24 -0
  73. data/spec/dummy/config/locales/uk.yml +2 -0
  74. data/spec/dummy/config/logrotate-config.sample +9 -0
  75. data/spec/dummy/config/nginx-config-passenger.sample +51 -0
  76. data/spec/dummy/config/routes.rb +64 -0
  77. data/spec/dummy/db/migrate/20110801124809_sunrise_create_users.rb +29 -0
  78. data/spec/dummy/db/migrate/20110801124909_sunrise_create_roles.rb +16 -0
  79. data/spec/dummy/db/migrate/20110801125009_sunrise_create_structures.rb +27 -0
  80. data/spec/dummy/db/migrate/20110801125109_sunrise_create_pages.rb +17 -0
  81. data/spec/dummy/db/migrate/20110801125209_sunrise_create_assets.rb +28 -0
  82. data/spec/dummy/db/migrate/20110801125309_sunrise_create_headers.rb +20 -0
  83. data/spec/dummy/db/seeds.rb +25 -0
  84. data/spec/dummy/db/test.sqlite3 +0 -0
  85. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  86. data/spec/dummy/log/test.log +1678 -0
  87. data/spec/dummy/public/404.html +26 -0
  88. data/spec/dummy/public/422.html +26 -0
  89. data/spec/dummy/public/500.html +26 -0
  90. data/spec/dummy/public/favicon.ico +0 -0
  91. data/spec/dummy/public/images/manage/add_post_bot.gif +0 -0
  92. data/spec/dummy/public/images/manage/add_post_top.gif +0 -0
  93. data/spec/dummy/public/images/manage/add_white_bot.gif +0 -0
  94. data/spec/dummy/public/images/manage/add_white_top.gif +0 -0
  95. data/spec/dummy/public/images/manage/arrow.png +0 -0
  96. data/spec/dummy/public/images/manage/back_but_lc.gif +0 -0
  97. data/spec/dummy/public/images/manage/back_but_rc.gif +0 -0
  98. data/spec/dummy/public/images/manage/bot_corn.gif +0 -0
  99. data/spec/dummy/public/images/manage/bot_duo_corn.gif +0 -0
  100. data/spec/dummy/public/images/manage/but_bg.png +0 -0
  101. data/spec/dummy/public/images/manage/but_block_lc.gif +0 -0
  102. data/spec/dummy/public/images/manage/but_block_rc.gif +0 -0
  103. data/spec/dummy/public/images/manage/but_freze_lc.gif +0 -0
  104. data/spec/dummy/public/images/manage/but_freze_rc.gif +0 -0
  105. data/spec/dummy/public/images/manage/but_gr.gif +0 -0
  106. data/spec/dummy/public/images/manage/but_gr_l.gif +0 -0
  107. data/spec/dummy/public/images/manage/but_gr_r.gif +0 -0
  108. data/spec/dummy/public/images/manage/but_search.gif +0 -0
  109. data/spec/dummy/public/images/manage/but_unfreze_lc.gif +0 -0
  110. data/spec/dummy/public/images/manage/but_unfreze_rc.gif +0 -0
  111. data/spec/dummy/public/images/manage/button_add_foto.gif +0 -0
  112. data/spec/dummy/public/images/manage/button_add_foto_ru.gif +0 -0
  113. data/spec/dummy/public/images/manage/button_add_foto_ua.gif +0 -0
  114. data/spec/dummy/public/images/manage/button_add_foto_uk.gif +0 -0
  115. data/spec/dummy/public/images/manage/cancelbutton.gif +0 -0
  116. data/spec/dummy/public/images/manage/dark_arr.gif +0 -0
  117. data/spec/dummy/public/images/manage/dark_arr_left.gif +0 -0
  118. data/spec/dummy/public/images/manage/dark_cross_ico.gif +0 -0
  119. data/spec/dummy/public/images/manage/dot.gif +0 -0
  120. data/spec/dummy/public/images/manage/duo_bg.gif +0 -0
  121. data/spec/dummy/public/images/manage/duo_bg_small.gif +0 -0
  122. data/spec/dummy/public/images/manage/duo_bg_small_blocked.gif +0 -0
  123. data/spec/dummy/public/images/manage/duo_bg_small_frozed.gif +0 -0
  124. data/spec/dummy/public/images/manage/duo_bg_small_notact.gif +0 -0
  125. data/spec/dummy/public/images/manage/duo_bot_small.gif +0 -0
  126. data/spec/dummy/public/images/manage/duo_bot_small_blocked.gif +0 -0
  127. data/spec/dummy/public/images/manage/duo_bot_small_frozed.gif +0 -0
  128. data/spec/dummy/public/images/manage/duo_bot_small_notact.gif +0 -0
  129. data/spec/dummy/public/images/manage/duo_top_small.gif +0 -0
  130. data/spec/dummy/public/images/manage/duo_top_small_blocked.gif +0 -0
  131. data/spec/dummy/public/images/manage/duo_top_small_frozed.gif +0 -0
  132. data/spec/dummy/public/images/manage/duo_top_small_notact.gif +0 -0
  133. data/spec/dummy/public/images/manage/edit_white_top.gif +0 -0
  134. data/spec/dummy/public/images/manage/empty.gif +0 -0
  135. data/spec/dummy/public/images/manage/filter_bot_bg.gif +0 -0
  136. data/spec/dummy/public/images/manage/filter_top_bg.gif +0 -0
  137. data/spec/dummy/public/images/manage/flag_en.gif +0 -0
  138. data/spec/dummy/public/images/manage/flag_en_nonact.gif +0 -0
  139. data/spec/dummy/public/images/manage/flag_ru.gif +0 -0
  140. data/spec/dummy/public/images/manage/flag_ru_nonact.gif +0 -0
  141. data/spec/dummy/public/images/manage/flag_ua.gif +0 -0
  142. data/spec/dummy/public/images/manage/flag_ua_nonact.gif +0 -0
  143. data/spec/dummy/public/images/manage/foto.jpg +0 -0
  144. data/spec/dummy/public/images/manage/ico_add.gif +0 -0
  145. data/spec/dummy/public/images/manage/ico_del.gif +0 -0
  146. data/spec/dummy/public/images/manage/ico_down.gif +0 -0
  147. data/spec/dummy/public/images/manage/ico_edit.gif +0 -0
  148. data/spec/dummy/public/images/manage/ico_settings.gif +0 -0
  149. data/spec/dummy/public/images/manage/ico_up.gif +0 -0
  150. data/spec/dummy/public/images/manage/input_bg.gif +0 -0
  151. data/spec/dummy/public/images/manage/l_but_corn.gif +0 -0
  152. data/spec/dummy/public/images/manage/minimise_but.gif +0 -0
  153. data/spec/dummy/public/images/manage/mp3.png +0 -0
  154. data/spec/dummy/public/images/manage/page_arr_hover.png +0 -0
  155. data/spec/dummy/public/images/manage/page_next_arr.gif +0 -0
  156. data/spec/dummy/public/images/manage/page_num_hover.gif +0 -0
  157. data/spec/dummy/public/images/manage/page_prev_arr.gif +0 -0
  158. data/spec/dummy/public/images/manage/panel/l_but_corn.gif +0 -0
  159. data/spec/dummy/public/images/manage/panel/maximise_but.gif +0 -0
  160. data/spec/dummy/public/images/manage/panel/r_but_corn.gif +0 -0
  161. data/spec/dummy/public/images/manage/panel/top_menu_arr.gif +0 -0
  162. data/spec/dummy/public/images/manage/panel/user_pic.gif +0 -0
  163. data/spec/dummy/public/images/manage/preloader.gif +0 -0
  164. data/spec/dummy/public/images/manage/r_but_corn.gif +0 -0
  165. data/spec/dummy/public/images/manage/select_bg.gif +0 -0
  166. data/spec/dummy/public/images/manage/select_corn.gif +0 -0
  167. data/spec/dummy/public/images/manage/struct_corn_lg.gif +0 -0
  168. data/spec/dummy/public/images/manage/struct_corn_llg.gif +0 -0
  169. data/spec/dummy/public/images/manage/struct_corn_lw.gif +0 -0
  170. data/spec/dummy/public/images/manage/struct_corn_rg.gif +0 -0
  171. data/spec/dummy/public/images/manage/struct_corn_rlg.gif +0 -0
  172. data/spec/dummy/public/images/manage/struct_corn_rw.gif +0 -0
  173. data/spec/dummy/public/images/manage/tab_gl.gif +0 -0
  174. data/spec/dummy/public/images/manage/tab_gr.gif +0 -0
  175. data/spec/dummy/public/images/manage/tab_wl.gif +0 -0
  176. data/spec/dummy/public/images/manage/tab_wr.gif +0 -0
  177. data/spec/dummy/public/images/manage/top_corn.gif +0 -0
  178. data/spec/dummy/public/images/manage/top_duo_corn.gif +0 -0
  179. data/spec/dummy/public/images/manage/top_menu_arr.gif +0 -0
  180. data/spec/dummy/public/images/manage/transp_cross.png +0 -0
  181. data/spec/dummy/public/images/manage/upload_progress.gif +0 -0
  182. data/spec/dummy/public/images/manage/user_act_lc.gif +0 -0
  183. data/spec/dummy/public/images/manage/user_act_rc.gif +0 -0
  184. data/spec/dummy/public/images/manage/user_ico.gif +0 -0
  185. data/spec/dummy/public/images/manage/user_pic.gif +0 -0
  186. data/spec/dummy/public/images/manage/user_pic_small.gif +0 -0
  187. data/spec/dummy/public/images/manage/user_pic_thumb.gif +0 -0
  188. data/spec/dummy/public/javascripts/application.js +2 -0
  189. data/spec/dummy/public/javascripts/controls.js +965 -0
  190. data/spec/dummy/public/javascripts/datepicker/jquery-ui-i18n.js +1176 -0
  191. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-ru.js +37 -0
  192. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-uk.js +37 -0
  193. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  194. data/spec/dummy/public/javascripts/effects.js +1123 -0
  195. data/spec/dummy/public/javascripts/fileupload/fileuploader-input.js +217 -0
  196. data/spec/dummy/public/javascripts/fileupload/fileuploader.css +31 -0
  197. data/spec/dummy/public/javascripts/fileupload/fileuploader.js +1288 -0
  198. data/spec/dummy/public/javascripts/jquery-ui-timepicker-addon.js +911 -0
  199. data/spec/dummy/public/javascripts/jquery.cookie.js +97 -0
  200. data/spec/dummy/public/javascripts/jquery.fancybox-1.3.4.pack.js +46 -0
  201. data/spec/dummy/public/javascripts/jquery.tmpl.min.js +10 -0
  202. data/spec/dummy/public/javascripts/manage-fileuploader.js +182 -0
  203. data/spec/dummy/public/javascripts/manage.js +294 -0
  204. data/spec/dummy/public/javascripts/preloader.js +47 -0
  205. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  206. data/spec/dummy/public/javascripts/rails.js +331 -0
  207. data/spec/dummy/public/stylesheets/application.css +1 -0
  208. data/spec/dummy/public/stylesheets/fancybox/images/blank.gif +0 -0
  209. data/spec/dummy/public/stylesheets/fancybox/images/fancy_close.png +0 -0
  210. data/spec/dummy/public/stylesheets/fancybox/images/fancy_loading.png +0 -0
  211. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_left.png +0 -0
  212. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_right.png +0 -0
  213. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_e.png +0 -0
  214. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_n.png +0 -0
  215. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_ne.png +0 -0
  216. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_nw.png +0 -0
  217. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_s.png +0 -0
  218. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_se.png +0 -0
  219. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_sw.png +0 -0
  220. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_w.png +0 -0
  221. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_left.png +0 -0
  222. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_main.png +0 -0
  223. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_over.png +0 -0
  224. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_right.png +0 -0
  225. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-x.png +0 -0
  226. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-y.png +0 -0
  227. data/spec/dummy/public/stylesheets/fancybox/images/fancybox.png +0 -0
  228. data/spec/dummy/public/stylesheets/fancybox/jquery.fancybox-1.3.4.css +359 -0
  229. data/spec/dummy/public/stylesheets/manage/buttons.css +42 -0
  230. data/spec/dummy/public/stylesheets/manage/ie.css +16 -0
  231. data/spec/dummy/public/stylesheets/manage/main.css +1108 -0
  232. data/spec/dummy/public/stylesheets/manage/panel.css +126 -0
  233. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  234. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  235. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  236. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  237. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  238. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  239. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  240. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  241. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  242. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  243. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  244. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  245. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  246. data/spec/dummy/public/stylesheets/smoothness/jquery-ui-1.8.13.custom.css +578 -0
  247. data/spec/dummy/script/rails +6 -0
  248. data/spec/factories/structure_factory.rb +22 -0
  249. data/spec/factories/user_factory.rb +48 -0
  250. data/spec/generators/install_generator_spec.rb +18 -0
  251. data/spec/integration/navigation_spec.rb +9 -0
  252. data/spec/spec.opts +2 -0
  253. data/spec/spec_helper.rb +57 -0
  254. data/spec/sunrise_locales_spec.rb +7 -0
  255. data/spec/support/helpers/controller_macros.rb +40 -0
  256. data/spec/tmp/public/javascripts/codemirror.js +2157 -0
  257. data/spec/tmp/public/javascripts/yaml.js +95 -0
  258. data/spec/tmp/public/stylesheets/codemirror.css +107 -0
  259. metadata +575 -0
@@ -0,0 +1,3 @@
1
+ en:
2
+ title: 'Hello World'
3
+ new: 'temp'
@@ -0,0 +1,3 @@
1
+ ru:
2
+ title: 'Hello World'
3
+ new: 'temp'
@@ -0,0 +1,24 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Some errors were found, please take a look:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # password: 'Password'
16
+ # user:
17
+ # new:
18
+ # email: 'E-mail para efetuar o sign in.'
19
+ # edit:
20
+ # email: 'E-mail.'
21
+ # hints:
22
+ # username: 'User name to sign in.'
23
+ # password: 'No special characters, please.'
24
+
@@ -0,0 +1,2 @@
1
+ uk:
2
+ title: 'Hello World'
@@ -0,0 +1,9 @@
1
+ /var/www/gems/sunrise-questions/spec/dummy/log/*.log {
2
+ copytruncate
3
+ daily
4
+ rotate 4
5
+ missingok
6
+ notifempty
7
+ compress
8
+ nodelaycompress
9
+ }
@@ -0,0 +1,51 @@
1
+ # You may add here your
2
+ # server {
3
+ # ...
4
+ # }
5
+ # statements for each of your virtual hosts
6
+
7
+
8
+ server {
9
+ listen 80;
10
+ server_name .dummy.brainberry.com.ua;
11
+
12
+ server_tokens off;
13
+
14
+ gzip on;
15
+ gzip_proxied any;
16
+ gzip_min_length 1100;
17
+ gzip_buffers 12 4k;
18
+ gzip_types text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
19
+
20
+ client_max_body_size 200M;
21
+ client_body_buffer_size 128k;
22
+ client_header_timeout 60;
23
+ client_body_timeout 260;
24
+ send_timeout 260;
25
+ keepalive_timeout 60;
26
+
27
+ large_client_header_buffers 4 4k;
28
+ client_header_buffer_size 1k;
29
+
30
+ connection_pool_size 256;
31
+ ignore_invalid_headers on;
32
+ postpone_output 1460;
33
+ output_buffers 4 32k;
34
+ request_pool_size 4k;
35
+
36
+ passenger_enabled on;
37
+ rails_env production;
38
+ # rack_env production;
39
+
40
+ root /var/www/gems/sunrise-questions/spec/dummy/public;
41
+
42
+ location ~ /\.[^\/]+ {
43
+ return 404;
44
+ }
45
+
46
+ location ~* ^.+\.(jpg|jpeg|gif|png|css|js|swf|ico|mov|flv|fla|pdf|zip|rar|doc|xls)$
47
+ {
48
+ expires 12h;
49
+ add_header Cache-Control private;
50
+ }
51
+ }
@@ -0,0 +1,64 @@
1
+ Dummy::Application.routes.draw do
2
+ root :to => "welcome#index"
3
+
4
+ resources :pages, :only => [:show]
5
+
6
+ devise_for :users
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 => "welcome#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
@@ -0,0 +1,29 @@
1
+ class SunriseCreateUsers < ActiveRecord::Migration
2
+ def self.up
3
+ create_table(:users) do |t|
4
+ t.string :name, :limit => 150
5
+ # t.string :login, :limit => 20, :null => false
6
+
7
+ t.database_authenticatable :null => false
8
+ t.recoverable
9
+ t.rememberable
10
+ t.trackable
11
+ t.confirmable
12
+ t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :time
13
+ t.encryptable
14
+ # t.token_authenticatable
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index :users, :email, :unique => true
20
+ add_index :users, :reset_password_token, :unique => true
21
+ add_index :users, :confirmation_token, :unique => true
22
+ # add_index :users, :login, :unique => true
23
+ # add_index :users, :unlock_token, :unique => true
24
+ end
25
+
26
+ def self.down
27
+ drop_table :users
28
+ end
29
+ end
@@ -0,0 +1,16 @@
1
+ class SunriseCreateRoles < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :roles do |t|
4
+ t.integer :role_type, :limit => 1, :default => 0
5
+ t.integer :user_id, :null => false
6
+
7
+ t.timestamps
8
+ end
9
+
10
+ add_index :roles, :user_id, :name => "fk_user"
11
+ end
12
+
13
+ def self.down
14
+ drop_table :roles
15
+ end
16
+ end
@@ -0,0 +1,27 @@
1
+ class SunriseCreateStructures < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :structures do |t|
4
+ t.string :title, :null => false
5
+ t.string :slug, :null => false, :limit => 25
6
+ t.integer :kind, :limit => 1, :default => 0
7
+ t.integer :position, :limit => 2, :default => 0
8
+ t.boolean :is_visible, :default => true
9
+ t.string :redirect_url
10
+
11
+ t.integer "parent_id"
12
+ t.integer "lft", :default => 0
13
+ t.integer "rgt", :default => 0
14
+ t.integer "depth", :default => 0
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index :structures, [:kind, :slug], :uniq => true
20
+ add_index :structures, :parent_id
21
+ add_index :structures, [:lft, :rgt]
22
+ end
23
+
24
+ def self.down
25
+ drop_table :structures
26
+ end
27
+ end
@@ -0,0 +1,17 @@
1
+ class SunriseCreatePages < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :pages do |t|
4
+ t.string :title, :null => false
5
+ t.text :content
6
+ t.integer :structure_id, :null => false
7
+
8
+ t.timestamps
9
+ end
10
+
11
+ add_index :pages, :structure_id, :name => "fk_pages"
12
+ end
13
+
14
+ def self.down
15
+ drop_table :pages
16
+ end
17
+ end
@@ -0,0 +1,28 @@
1
+ class SunriseCreateAssets < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :assets do |t|
4
+ t.string :data_file_name, :null => false
5
+ t.string :data_content_type
6
+ t.integer :data_file_size
7
+
8
+ t.integer :assetable_id, :null => false
9
+ t.string :assetable_type, :limit => 25, :null => false
10
+ t.string :type, :limit => 25
11
+ t.string :guid, :limit => 10
12
+
13
+ t.integer :locale, :limit => 1, :default => 0
14
+ t.integer :user_id
15
+ t.integer :sort_order, :default => 0
16
+
17
+ t.timestamps
18
+ end
19
+
20
+ add_index "assets", ["assetable_type", "type", "assetable_id"]
21
+ add_index "assets", ["assetable_type", "assetable_id"]
22
+ add_index "assets", ["user_id"]
23
+ end
24
+
25
+ def self.down
26
+ drop_table :assets
27
+ end
28
+ end
@@ -0,0 +1,20 @@
1
+ class SunriseCreateHeaders < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :headers do |t|
4
+ t.string :title
5
+ t.string :keywords
6
+ t.text :description
7
+
8
+ t.string :headerable_type, :limit => 30, :null => false
9
+ t.integer :headerable_id, :null => false
10
+
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :headers, [:headerable_type, :headerable_id], :uniq => true, :name => "fk_headerable"
15
+ end
16
+
17
+ def self.down
18
+ drop_table :headers
19
+ end
20
+ end
@@ -0,0 +1,25 @@
1
+ def insert_user
2
+ User.truncate_table
3
+ Role.truncate_table
4
+ password = Devise.friendly_token
5
+
6
+ admin = User.new(:name=>'Administrator', :email=>'dev@aimbulance.com',
7
+ :password=>password, :password_confirmation=>password)
8
+ admin.login = 'admin' if admin.respond_to?(:login)
9
+ admin.roles.build(:role_type => RoleType.admin)
10
+ admin.skip_confirmation!
11
+ admin.save!
12
+
13
+ puts "Admin: #{admin.email}, #{admin.password}"
14
+ end
15
+
16
+ def insert_structures
17
+ Structure.truncate_table
18
+
19
+ main_page = Structure.create!(:title => "Главная страница", :slug => "main-page", :structure_type => StructureType.main, :parent => nil)
20
+ #Structure.create!(:title => "Трансляции", :slug => "broadcasts", :structure_type => StructureType.broadcasts, :parent => main_page)
21
+ #Structure.create!(:title => "Прямые репортажи", :slug => "posts", :structure_type => StructureType.posts, :parent => main_page)
22
+ end
23
+
24
+ insert_user
25
+ insert_structures
@@ -0,0 +1,13 @@
1
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
2
+ <%%= f.error_notification %>
3
+
4
+ <div class="inputs">
5
+ <%- attributes.each do |attribute| -%>
6
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
+ <%- end -%>
8
+ </div>
9
+
10
+ <div class="actions">
11
+ <%%= f.button :submit %>
12
+ </div>
13
+ <%% end %>
@@ -0,0 +1,1678 @@
1
+ SQL (0.3ms)  SELECT name
2
+ FROM sqlite_master
3
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
+ 
5
+ SQL (0.1ms) SELECT name
6
+ FROM sqlite_master
7
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8
+ SQL (0.1ms)  SELECT name
9
+ FROM sqlite_master
10
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
+ 
12
+ SQL (0.1ms) SELECT name
13
+ FROM sqlite_master
14
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
+ SQL (0.3ms)  SELECT name
16
+ FROM sqlite_master
17
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
18
+ 
19
+ SQL (0.1ms) SELECT name
20
+ FROM sqlite_master
21
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
22
+ SQL (0.1ms)  SELECT name
23
+ FROM sqlite_master
24
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
25
+ 
26
+ SQL (0.1ms) SELECT name
27
+ FROM sqlite_master
28
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
29
+ SQL (0.2ms)  SELECT name
30
+ FROM sqlite_master
31
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
32
+ 
33
+ SQL (0.1ms) SELECT name
34
+ FROM sqlite_master
35
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
36
+ SQL (0.3ms)  SELECT name
37
+ FROM sqlite_master
38
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
39
+ 
40
+ SQL (0.1ms) SELECT name
41
+ FROM sqlite_master
42
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
43
+ SQL (0.1ms)  SELECT name
44
+ FROM sqlite_master
45
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
46
+ 
47
+ SQL (0.1ms) SELECT name
48
+ FROM sqlite_master
49
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
50
+ SQL (0.2ms)  SELECT name
51
+ FROM sqlite_master
52
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
53
+ 
54
+ SQL (0.1ms) SELECT name
55
+ FROM sqlite_master
56
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
57
+ SQL (0.2ms)  SELECT name
58
+ FROM sqlite_master
59
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
60
+ 
61
+ SQL (0.3ms)  SELECT name
62
+ FROM sqlite_master
63
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
64
+ 
65
+ SQL (0.1ms) SELECT name
66
+ FROM sqlite_master
67
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
68
+ SQL (0.1ms)  SELECT name
69
+ FROM sqlite_master
70
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
71
+ 
72
+ SQL (0.1ms) SELECT name
73
+ FROM sqlite_master
74
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
75
+ SQL (0.2ms)  SELECT name
76
+ FROM sqlite_master
77
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
78
+ 
79
+ SQL (0.1ms) SELECT name
80
+ FROM sqlite_master
81
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
82
+ SQL (0.2ms)  SELECT name
83
+ FROM sqlite_master
84
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
85
+ 
86
+ SQL (0.1ms) select sqlite_version(*)
87
+ SQL (194.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
88
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
89
+ SQL (95.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
90
+ SQL (0.3ms) SELECT name
91
+ FROM sqlite_master
92
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
93
+ SQL (0.2ms)  SELECT name
94
+ FROM sqlite_master
95
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
96
+ 
97
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
98
+ Migrating to SunriseCreateUsers (20110801124809)
99
+ SQL (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(150), "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(128) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "failed_attempts" integer DEFAULT 0, "locked_at" datetime, "password_salt" varchar(255), "created_at" datetime, "updated_at" datetime) 
100
+ SQL (0.1ms) PRAGMA index_list("users")
101
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
102
+ SQL (0.1ms) PRAGMA index_list("users")
103
+ SQL (0.1ms) PRAGMA index_info('index_users_on_email')
104
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
105
+ SQL (0.2ms) PRAGMA index_list("users")
106
+ SQL (0.1ms) PRAGMA index_info('index_users_on_reset_password_token')
107
+ SQL (0.1ms) PRAGMA index_info('index_users_on_email')
108
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
109
+ SQL (0.2ms)  SELECT name
110
+ FROM sqlite_master
111
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
112
+ 
113
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801124809')
114
+ Migrating to SunriseCreateRoles (20110801124909)
115
+ SQL (0.6ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "role_type" integer(1) DEFAULT 0, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
116
+ SQL (0.1ms) PRAGMA index_list("roles")
117
+ SQL (0.2ms) CREATE INDEX "fk_user" ON "roles" ("user_id")
118
+ SQL (0.2ms) SELECT name
119
+ FROM sqlite_master
120
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
121
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801124909')
122
+ Migrating to SunriseCreateStructures (20110801125009)
123
+ SQL (0.7ms) CREATE TABLE "structures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "slug" varchar(25) NOT NULL, "kind" integer(1) DEFAULT 0, "position" integer(2) DEFAULT 0, "is_visible" boolean DEFAULT 't', "redirect_url" varchar(255), "parent_id" integer, "lft" integer DEFAULT 0, "rgt" integer DEFAULT 0, "depth" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
124
+ SQL (0.1ms) PRAGMA index_list("structures")
125
+ SQL (0.2ms) CREATE INDEX "index_structures_on_kind_and_slug" ON "structures" ("kind", "slug")
126
+ SQL (0.1ms) PRAGMA index_list("structures")
127
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_kind_and_slug')
128
+ SQL (0.2ms) CREATE INDEX "index_structures_on_parent_id" ON "structures" ("parent_id")
129
+ SQL (0.1ms) PRAGMA index_list("structures")
130
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_parent_id')
131
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_kind_and_slug')
132
+ SQL (0.2ms) CREATE INDEX "index_structures_on_lft_and_rgt" ON "structures" ("lft", "rgt")
133
+ SQL (0.2ms) SELECT name
134
+ FROM sqlite_master
135
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
136
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125009')
137
+ Migrating to SunriseCreatePages (20110801125109)
138
+ SQL (0.5ms) CREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "content" text, "structure_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
139
+ SQL (0.1ms) PRAGMA index_list("pages")
140
+ SQL (0.2ms) CREATE INDEX "fk_pages" ON "pages" ("structure_id")
141
+ SQL (0.2ms)  SELECT name
142
+ FROM sqlite_master
143
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
144
+ 
145
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125109')
146
+ Migrating to SunriseCreateAssets (20110801125209)
147
+ SQL (0.5ms) CREATE TABLE "assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer NOT NULL, "assetable_type" varchar(25) NOT NULL, "type" varchar(25), "guid" varchar(10), "locale" integer(1) DEFAULT 0, "user_id" integer, "sort_order" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
148
+ SQL (0.1ms) PRAGMA index_list("assets")
149
+ SQL (0.3ms) CREATE INDEX "index_assets_on_assetable_type_and_type_and_assetable_id" ON "assets" ("assetable_type", "type", "assetable_id")
150
+ SQL (0.1ms) PRAGMA index_list("assets")
151
+ SQL (0.2ms) PRAGMA index_info('index_assets_on_assetable_type_and_type_and_assetable_id')
152
+ SQL (0.2ms) CREATE INDEX "index_assets_on_assetable_type_and_assetable_id" ON "assets" ("assetable_type", "assetable_id")
153
+ SQL (0.1ms) PRAGMA index_list("assets")
154
+ SQL (0.1ms) PRAGMA index_info('index_assets_on_assetable_type_and_assetable_id')
155
+ SQL (0.2ms) PRAGMA index_info('index_assets_on_assetable_type_and_type_and_assetable_id')
156
+ SQL (0.3ms) CREATE INDEX "index_assets_on_user_id" ON "assets" ("user_id")
157
+ SQL (0.4ms)  SELECT name
158
+ FROM sqlite_master
159
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
160
+ 
161
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125209')
162
+ Migrating to SunriseCreateHeaders (20110801125309)
163
+ SQL (0.5ms) CREATE TABLE "headers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "keywords" varchar(255), "description" text, "headerable_type" varchar(30) NOT NULL, "headerable_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
164
+ SQL (0.0ms) PRAGMA index_list("headers")
165
+ SQL (0.2ms) CREATE INDEX "fk_headerable" ON "headers" ("headerable_type", "headerable_id")
166
+ SQL (0.2ms) SELECT name
167
+ FROM sqlite_master
168
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
169
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125309')
170
+ Migrating to SunriseCreateWidgets (20110801161138)
171
+ SQL (0.6ms) CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "structure_id" integer, "title" varchar(255) NOT NULL, "content" text, "is_visible" boolean DEFAULT 't', "sort_order" integer DEFAULT 0, "widget_type_id" integer(1) DEFAULT 0, "widget_position_id" integer(1) DEFAULT 0, "created_at" datetime, "updated_at" datetime)
172
+ SQL (0.1ms) PRAGMA index_list("widgets")
173
+ SQL (0.2ms) CREATE INDEX "index_widgets_on_structure_id" ON "widgets" ("structure_id")
174
+ SQL (0.1ms) PRAGMA index_list("widgets")
175
+ SQL (0.1ms) PRAGMA index_info('index_widgets_on_structure_id')
176
+ SQL (0.2ms) CREATE INDEX "index_widgets_on_widget_position_id" ON "widgets" ("widget_position_id")
177
+ SQL (0.1ms) PRAGMA index_list("widgets")
178
+ SQL (0.1ms) PRAGMA index_info('index_widgets_on_widget_position_id')
179
+ SQL (0.1ms) PRAGMA index_info('index_widgets_on_structure_id')
180
+ SQL (0.2ms) CREATE INDEX "index_widgets_on_widget_type_id" ON "widgets" ("widget_type_id")
181
+ SQL (0.3ms) SELECT name
182
+ FROM sqlite_master
183
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
184
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801161138')
185
+ SQL (0.3ms) SELECT name
186
+ FROM sqlite_master
187
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
188
+ SQL (80.0ms) DELETE FROM "users";
189
+ SQL (88.0ms) DELETE FROM "roles";
190
+ SQL (99.3ms) DELETE FROM "structures";
191
+ SQL (77.0ms) DELETE FROM "pages";
192
+ SQL (77.2ms) DELETE FROM "assets";
193
+ SQL (77.1ms) DELETE FROM "headers";
194
+ SQL (77.1ms) DELETE FROM "widgets";
195
+ SQL (0.4ms) SELECT name
196
+ FROM sqlite_master
197
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
198
+ SQL (184.5ms) DELETE FROM "users";
199
+ SQL (77.0ms) DELETE FROM "roles";
200
+ SQL (77.3ms) DELETE FROM "structures";
201
+ SQL (88.0ms) DELETE FROM "pages";
202
+ SQL (77.3ms) DELETE FROM "assets";
203
+ SQL (99.1ms) DELETE FROM "headers";
204
+ SQL (77.2ms) DELETE FROM "widgets";
205
+ SQL (0.4ms) SELECT name
206
+ FROM sqlite_master
207
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
208
+ SQL (102.9ms) DELETE FROM "users";
209
+ SQL (76.9ms) DELETE FROM "roles";
210
+ SQL (77.2ms) DELETE FROM "structures";
211
+ SQL (76.9ms) DELETE FROM "pages";
212
+ SQL (66.2ms) DELETE FROM "assets";
213
+ SQL (65.9ms) DELETE FROM "headers";
214
+ SQL (88.2ms) DELETE FROM "widgets";
215
+ SQL (0.7ms)  SELECT name
216
+ FROM sqlite_master
217
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
218
+ 
219
+ SQL (0.3ms) SELECT name
220
+ FROM sqlite_master
221
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
222
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
223
+ Migrating to SunriseCreateUsers (20110801124809)
224
+ Migrating to SunriseCreateRoles (20110801124909)
225
+ Migrating to SunriseCreateStructures (20110801125009)
226
+ Migrating to SunriseCreatePages (20110801125109)
227
+ Migrating to SunriseCreateAssets (20110801125209)
228
+ Migrating to SunriseCreateHeaders (20110801125309)
229
+ SQL (0.3ms) SELECT name
230
+ FROM sqlite_master
231
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
232
+ SQL (186.3ms) DELETE FROM "users";
233
+ SQL (121.1ms) DELETE FROM "roles";
234
+ SQL (110.3ms) DELETE FROM "structures";
235
+ SQL (99.0ms) DELETE FROM "pages";
236
+ SQL (99.4ms) DELETE FROM "assets";
237
+ SQL (99.0ms) DELETE FROM "headers";
238
+ SQL (143.5ms) DELETE FROM "widgets";
239
+ SQL (0.4ms) SELECT name
240
+ FROM sqlite_master
241
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
242
+ SQL (107.1ms) DELETE FROM "users";
243
+ SQL (132.2ms) DELETE FROM "roles";
244
+ SQL (99.3ms) DELETE FROM "structures";
245
+ SQL (99.0ms) DELETE FROM "pages";
246
+ SQL (99.4ms) DELETE FROM "assets";
247
+ SQL (99.0ms) DELETE FROM "headers";
248
+ SQL (110.3ms) DELETE FROM "widgets";
249
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
250
+ AREL (0.3ms) INSERT INTO "users" ("email", "remember_created_at", "reset_password_token", "created_at", "confirmation_sent_at", "reset_password_sent_at", "last_sign_in_ip", "updated_at", "encrypted_password", "locked_at", "password_salt", "failed_attempts", "name", "sign_in_count", "last_sign_in_at", "confirmed_at", "current_sign_in_at", "confirmation_token", "current_sign_in_ip") VALUES ('testing1@example.com', NULL, NULL, '2011-09-13 09:52:45.483061', NULL, NULL, NULL, '2011-09-13 09:52:45.483061', '535af3fd96994ad8970705aa0eb328730ae8fca5e1eefde1b46f8496409e1ea104d80b6454fd35ba9cf47542792407f6f8075d26fd25bbf3d7801bfbd0d3c7c6', NULL, 'Hmp9RSiHsqM58RXx5zFv', 0, 'Admin', 0, NULL, '2011-09-13 09:52:45.458125', NULL, NULL, NULL)
251
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "role_type", "created_at", "user_id") VALUES ('2011-09-13 09:52:45.510371', 4, '2011-09-13 09:52:45.510371', 1)
252
+ Processing by Manage::LocalesController#index as HTML
253
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
254
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
255
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
256
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.5ms)
257
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 1 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
258
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (19.0ms)
259
+ Completed 500 Internal Server Error in 125ms
260
+ Processing by Manage::LocalesController#edit as HTML
261
+ Parameters: {"id"=>:uk}
262
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
263
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
264
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
265
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 1 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
266
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (6.4ms)
267
+ Completed 500 Internal Server Error in 23ms
268
+ Processing by Manage::LocalesController#update as HTML
269
+ Parameters: {"text"=>"uk:\n title: 'Hello World'", "id"=>:uk}
270
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
271
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
272
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 1) LIMIT 1
273
+ Completed 500 Internal Server Error in 9ms
274
+ Processing by Manage::LocalesController#index as HTML
275
+ Completed in 15ms
276
+ Processing by Manage::LocalesController#edit as HTML
277
+ Parameters: {"id"=>:uk}
278
+ Completed in 0ms
279
+ Processing by Manage::LocalesController#update as HTML
280
+ Parameters: {"id"=>:uk}
281
+ Completed in 0ms
282
+ SQL (0.3ms) SELECT name
283
+ FROM sqlite_master
284
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
285
+ SQL (169.8ms) DELETE FROM "users";
286
+ SQL (88.2ms) DELETE FROM "roles";
287
+ SQL (77.0ms) DELETE FROM "structures";
288
+ SQL (88.0ms) DELETE FROM "pages";
289
+ SQL (77.2ms) DELETE FROM "assets";
290
+ SQL (110.2ms) DELETE FROM "headers";
291
+ SQL (88.1ms) DELETE FROM "widgets";
292
+ SQL (0.7ms)  SELECT name
293
+ FROM sqlite_master
294
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
295
+ 
296
+ SQL (0.7ms)  SELECT name
297
+ FROM sqlite_master
298
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
299
+ 
300
+ SQL (0.3ms) SELECT name
301
+ FROM sqlite_master
302
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
303
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
304
+ Migrating to SunriseCreateUsers (20110801124809)
305
+ Migrating to SunriseCreateRoles (20110801124909)
306
+ Migrating to SunriseCreateStructures (20110801125009)
307
+ Migrating to SunriseCreatePages (20110801125109)
308
+ Migrating to SunriseCreateAssets (20110801125209)
309
+ Migrating to SunriseCreateHeaders (20110801125309)
310
+ SQL (0.3ms) SELECT name
311
+ FROM sqlite_master
312
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
313
+ SQL (144.4ms) DELETE FROM "users";
314
+ SQL (121.1ms) DELETE FROM "roles";
315
+ SQL (121.4ms) DELETE FROM "structures";
316
+ SQL (99.1ms) DELETE FROM "pages";
317
+ SQL (88.2ms) DELETE FROM "assets";
318
+ SQL (88.1ms) DELETE FROM "headers";
319
+ SQL (99.2ms) DELETE FROM "widgets";
320
+ SQL (0.4ms) SELECT name
321
+ FROM sqlite_master
322
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
323
+ SQL (96.2ms) DELETE FROM "users";
324
+ SQL (88.0ms) DELETE FROM "roles";
325
+ SQL (88.2ms) DELETE FROM "structures";
326
+ SQL (88.2ms) DELETE FROM "pages";
327
+ SQL (132.4ms) DELETE FROM "assets";
328
+ SQL (88.1ms) DELETE FROM "headers";
329
+ SQL (88.2ms) DELETE FROM "widgets";
330
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
331
+ AREL (0.3ms) INSERT INTO "users" ("remember_created_at", "last_sign_in_ip", "encrypted_password", "current_sign_in_at", "confirmation_token", "sign_in_count", "reset_password_token", "last_sign_in_at", "name", "email", "current_sign_in_ip", "password_salt", "updated_at", "confirmed_at", "reset_password_sent_at", "locked_at", "failed_attempts", "created_at", "confirmation_sent_at") VALUES (NULL, NULL, '1435d7151664b2267133aa601d0e718993cf3374c2005a1e3085f1dd5fa44fc2b3dc4a0cbf3278ba0e6a603a75fe7bd8c25db62f4c0554bd560c376368716bcd', NULL, NULL, 0, NULL, NULL, 'Admin', 'testing1@example.com', NULL, 'Gszhh8nsJrpbWGgt8u6v', '2011-09-13 09:55:18.723770', '2011-09-13 09:55:18.719138', NULL, NULL, 0, '2011-09-13 09:55:18.723770', NULL)
332
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-09-13 09:55:18.727175', '2011-09-13 09:55:18.727175', 4, 2)
333
+ Processing by Manage::LocalesController#index as HTML
334
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
335
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
336
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
337
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (0.0ms)
338
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 2 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
339
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (15.1ms)
340
+ Completed 500 Internal Server Error in 49ms
341
+ Processing by Manage::LocalesController#edit as HTML
342
+ Parameters: {"id"=>:en}
343
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
344
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
345
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
346
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 2 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
347
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (6.3ms)
348
+ Completed 500 Internal Server Error in 21ms
349
+ Processing by Manage::LocalesController#update as HTML
350
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
351
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
352
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
353
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 2) LIMIT 1
354
+ Completed 500 Internal Server Error in 7ms
355
+ Processing by Manage::LocalesController#index as HTML
356
+ Completed in 3ms
357
+ Processing by Manage::LocalesController#edit as HTML
358
+ Parameters: {"id"=>:en}
359
+ Completed in 0ms
360
+ Processing by Manage::LocalesController#update as HTML
361
+ Parameters: {"id"=>:en}
362
+ Completed in 0ms
363
+ SQL (0.3ms) SELECT name
364
+ FROM sqlite_master
365
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
366
+ SQL (99.0ms) DELETE FROM "users";
367
+ SQL (99.0ms) DELETE FROM "roles";
368
+ SQL (88.3ms) DELETE FROM "structures";
369
+ SQL (88.1ms) DELETE FROM "pages";
370
+ SQL (99.4ms) DELETE FROM "assets";
371
+ SQL (87.9ms) DELETE FROM "headers";
372
+ SQL (99.3ms) DELETE FROM "widgets";
373
+ SQL (0.7ms)  SELECT name
374
+ FROM sqlite_master
375
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
376
+ 
377
+ SQL (0.3ms) SELECT name
378
+ FROM sqlite_master
379
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
380
+ SQL (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
381
+ Migrating to SunriseCreateUsers (20110801124809)
382
+ Migrating to SunriseCreateRoles (20110801124909)
383
+ Migrating to SunriseCreateStructures (20110801125009)
384
+ Migrating to SunriseCreatePages (20110801125109)
385
+ Migrating to SunriseCreateAssets (20110801125209)
386
+ Migrating to SunriseCreateHeaders (20110801125309)
387
+ SQL (0.3ms) SELECT name
388
+ FROM sqlite_master
389
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
390
+ SQL (113.5ms) DELETE FROM "users";
391
+ SQL (433.1ms) DELETE FROM "roles";
392
+ SQL (228.8ms) DELETE FROM "structures";
393
+ SQL (165.4ms) DELETE FROM "pages";
394
+ SQL (110.3ms) DELETE FROM "assets";
395
+ SQL (110.1ms) DELETE FROM "headers";
396
+ SQL (110.3ms) DELETE FROM "widgets";
397
+ SQL (0.5ms) SELECT name
398
+ FROM sqlite_master
399
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
400
+ SQL (96.1ms) DELETE FROM "users";
401
+ SQL (110.1ms) DELETE FROM "roles";
402
+ SQL (99.3ms) DELETE FROM "structures";
403
+ SQL (110.1ms) DELETE FROM "pages";
404
+ SQL (121.4ms) DELETE FROM "assets";
405
+ SQL (110.1ms) DELETE FROM "headers";
406
+ SQL (187.6ms) DELETE FROM "widgets";
407
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
408
+ AREL (0.3ms) INSERT INTO "users" ("confirmation_sent_at", "confirmed_at", "current_sign_in_at", "locked_at", "current_sign_in_ip", "remember_created_at", "reset_password_token", "updated_at", "email", "sign_in_count", "name", "last_sign_in_at", "password_salt", "reset_password_sent_at", "failed_attempts", "created_at", "confirmation_token", "last_sign_in_ip", "encrypted_password") VALUES (NULL, '2011-09-13 11:00:34.575846', NULL, NULL, NULL, NULL, NULL, '2011-09-13 11:00:34.580611', 'testing1@example.com', 0, 'Admin', NULL, 'jvkaZEe9q1VjiFoDxqyW', NULL, 0, '2011-09-13 11:00:34.580611', NULL, NULL, 'dd54004a6526575f2df788755ec9ca93cfbba3c27c98d002731a20d2127e7ce1804173e681c7688f89940a1963cf432bed3773fe09f296175e3b9eb09f25c714')
409
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-09-13 11:00:34.584028', '2011-09-13 11:00:34.584028', 4, 3)
410
+ Processing by Manage::LocalesController#index as HTML
411
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
412
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
413
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
414
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.5ms)
415
+ Avatar Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 3 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
416
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (18.1ms)
417
+ Completed 500 Internal Server Error in 59ms
418
+ Processing by Manage::LocalesController#edit as HTML
419
+ Parameters: {"id"=>:ru}
420
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
421
+ Role Load (0.3ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
422
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
423
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 3 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
424
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (6.6ms)
425
+ Completed 500 Internal Server Error in 30ms
426
+ Processing by Manage::LocalesController#update as HTML
427
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
428
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
429
+ Role Load (0.4ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
430
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 3) LIMIT 1
431
+ Completed 500 Internal Server Error in 12ms
432
+ Processing by Manage::LocalesController#index as HTML
433
+ Completed in 3ms
434
+ Processing by Manage::LocalesController#edit as HTML
435
+ Parameters: {"id"=>:ru}
436
+ Completed in 0ms
437
+ Processing by Manage::LocalesController#update as HTML
438
+ Parameters: {"id"=>:ru}
439
+ Completed in 0ms
440
+ SQL (0.4ms) SELECT name
441
+ FROM sqlite_master
442
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
443
+ SQL (113.6ms) DELETE FROM "users";
444
+ SQL (121.2ms) DELETE FROM "roles";
445
+ SQL (132.3ms) DELETE FROM "structures";
446
+ SQL (99.2ms) DELETE FROM "pages";
447
+ SQL (121.4ms) DELETE FROM "assets";
448
+ SQL (99.2ms) DELETE FROM "headers";
449
+ SQL (276.0ms) DELETE FROM "widgets";
450
+ SQL (0.7ms)  SELECT name
451
+ FROM sqlite_master
452
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
453
+ 
454
+ SQL (0.3ms) SELECT name
455
+ FROM sqlite_master
456
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
457
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
458
+ Migrating to SunriseCreateUsers (20110801124809)
459
+ Migrating to SunriseCreateRoles (20110801124909)
460
+ Migrating to SunriseCreateStructures (20110801125009)
461
+ Migrating to SunriseCreatePages (20110801125109)
462
+ Migrating to SunriseCreateAssets (20110801125209)
463
+ Migrating to SunriseCreateHeaders (20110801125309)
464
+ SQL (0.3ms) SELECT name
465
+ FROM sqlite_master
466
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
467
+ SQL (161.8ms) DELETE FROM "users";
468
+ SQL (132.2ms) DELETE FROM "roles";
469
+ SQL (121.4ms) DELETE FROM "structures";
470
+ SQL (176.4ms) DELETE FROM "pages";
471
+ SQL (121.3ms) DELETE FROM "assets";
472
+ SQL (165.4ms) DELETE FROM "headers";
473
+ SQL (132.3ms) DELETE FROM "widgets";
474
+ SQL (0.4ms) SELECT name
475
+ FROM sqlite_master
476
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
477
+ SQL (118.2ms) DELETE FROM "users";
478
+ SQL (110.1ms) DELETE FROM "roles";
479
+ SQL (209.8ms) DELETE FROM "structures";
480
+ SQL (110.3ms) DELETE FROM "pages";
481
+ SQL (121.4ms) DELETE FROM "assets";
482
+ SQL (99.1ms) DELETE FROM "headers";
483
+ SQL (110.3ms) DELETE FROM "widgets";
484
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
485
+ AREL (0.2ms) INSERT INTO "users" ("failed_attempts", "confirmed_at", "confirmation_token", "current_sign_in_ip", "password_salt", "created_at", "locked_at", "last_sign_in_at", "last_sign_in_ip", "encrypted_password", "name", "remember_created_at", "current_sign_in_at", "reset_password_token", "sign_in_count", "confirmation_sent_at", "updated_at", "email", "reset_password_sent_at") VALUES (0, '2011-09-13 11:01:05.911712', NULL, NULL, 'juUr6W5RShnonzLpawG7', '2011-09-13 11:01:05.916459', NULL, NULL, NULL, 'ab2078626b39a3d0046d30815eff41d77e4f800be8fee7feac45d5b524fb64bf5cdb844981a9ee7138daad252c83459c36c8bed6af319385aa386c1a46314b86', 'Admin', NULL, NULL, NULL, 0, NULL, '2011-09-13 11:01:05.916459', 'testing1@example.com', NULL)
486
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "user_id", "role_type", "created_at") VALUES ('2011-09-13 11:01:05.919783', 4, 4, '2011-09-13 11:01:05.919783')
487
+ Processing by Manage::LocalesController#index as HTML
488
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
489
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
490
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
491
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.3ms)
492
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 4 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
493
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (15.5ms)
494
+ Completed 500 Internal Server Error in 55ms
495
+ Processing by Manage::LocalesController#edit as HTML
496
+ Parameters: {"id"=>:en}
497
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
498
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
499
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
500
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 4 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
501
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (7.6ms)
502
+ Completed 500 Internal Server Error in 26ms
503
+ Processing by Manage::LocalesController#update as HTML
504
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
505
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
506
+ Role Load (0.3ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
507
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
508
+ Completed 500 Internal Server Error in 9ms
509
+ Processing by Manage::LocalesController#index as HTML
510
+ Completed in 2ms
511
+ Processing by Manage::LocalesController#edit as HTML
512
+ Parameters: {"id"=>:en}
513
+ Completed in 0ms
514
+ Processing by Manage::LocalesController#update as HTML
515
+ Parameters: {"id"=>:en}
516
+ Completed in 0ms
517
+ SQL (0.4ms) SELECT name
518
+ FROM sqlite_master
519
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
520
+ SQL (102.1ms) DELETE FROM "users";
521
+ SQL (121.2ms) DELETE FROM "roles";
522
+ SQL (99.3ms) DELETE FROM "structures";
523
+ SQL (110.1ms) DELETE FROM "pages";
524
+ SQL (99.3ms) DELETE FROM "assets";
525
+ SQL (110.2ms) DELETE FROM "headers";
526
+ SQL (110.2ms) DELETE FROM "widgets";
527
+ SQL (0.7ms)  SELECT name
528
+ FROM sqlite_master
529
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
530
+ 
531
+ SQL (0.3ms) SELECT name
532
+ FROM sqlite_master
533
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
534
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
535
+ Migrating to SunriseCreateUsers (20110801124809)
536
+ Migrating to SunriseCreateRoles (20110801124909)
537
+ Migrating to SunriseCreateStructures (20110801125009)
538
+ Migrating to SunriseCreatePages (20110801125109)
539
+ Migrating to SunriseCreateAssets (20110801125209)
540
+ Migrating to SunriseCreateHeaders (20110801125309)
541
+ SQL (0.3ms) SELECT name
542
+ FROM sqlite_master
543
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
544
+ SQL (94.5ms) DELETE FROM "users";
545
+ SQL (110.1ms) DELETE FROM "roles";
546
+ SQL (110.4ms) DELETE FROM "structures";
547
+ SQL (121.1ms) DELETE FROM "pages";
548
+ SQL (154.5ms) DELETE FROM "assets";
549
+ SQL (154.2ms) DELETE FROM "headers";
550
+ SQL (143.4ms) DELETE FROM "widgets";
551
+ SQL (0.6ms) SELECT name
552
+ FROM sqlite_master
553
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
554
+ SQL (107.0ms) DELETE FROM "users";
555
+ SQL (110.1ms) DELETE FROM "roles";
556
+ SQL (132.4ms) DELETE FROM "structures";
557
+ SQL (132.2ms) DELETE FROM "pages";
558
+ SQL (121.4ms) DELETE FROM "assets";
559
+ SQL (121.2ms) DELETE FROM "headers";
560
+ SQL (154.5ms) DELETE FROM "widgets";
561
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
562
+ AREL (0.3ms) INSERT INTO "users" ("reset_password_sent_at", "email", "confirmation_token", "current_sign_in_ip", "name", "encrypted_password", "sign_in_count", "created_at", "reset_password_token", "locked_at", "last_sign_in_at", "current_sign_in_at", "password_salt", "confirmation_sent_at", "failed_attempts", "confirmed_at", "remember_created_at", "last_sign_in_ip", "updated_at") VALUES (NULL, 'testing1@example.com', NULL, NULL, 'Admin', 'b38cac85e566cb1c78b76945c33940dd555e646adcc80433ffff55cdf19dbf2943dd5b5b2861b529d8770dc89cfcb555f7d3f0cb7ae7e4b97fa987cef3e70aa9', 0, '2011-09-13 11:03:18.465482', NULL, NULL, NULL, NULL, 'P2eNBtupsJVpNsvdvtQ1', NULL, 0, '2011-09-13 11:03:18.460601', NULL, NULL, '2011-09-13 11:03:18.465482')
563
+ AREL (0.1ms) INSERT INTO "roles" ("created_at", "updated_at", "user_id", "role_type") VALUES ('2011-09-13 11:03:18.468880', '2011-09-13 11:03:18.468880', 5, 4)
564
+ Processing by Manage::LocalesController#index as HTML
565
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
566
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
567
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
568
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (2.9ms)
569
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 5 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
570
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (13.7ms)
571
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.5ms)
572
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
573
+ Completed 200 OK in 57ms (Views: 49.9ms | ActiveRecord: 1770.5ms)
574
+ Processing by Manage::LocalesController#edit as HTML
575
+ Parameters: {"id"=>:ru}
576
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
577
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
578
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
579
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 5 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
580
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.4ms)
581
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
582
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.5ms)
583
+ Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 0.9ms)
584
+ Processing by Manage::LocalesController#update as HTML
585
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
586
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
587
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
588
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
589
+ Completed 500 Internal Server Error in 8ms
590
+ Processing by Manage::LocalesController#index as HTML
591
+ Completed in 2ms
592
+ Processing by Manage::LocalesController#edit as HTML
593
+ Parameters: {"id"=>:ru}
594
+ Completed in 0ms
595
+ Processing by Manage::LocalesController#update as HTML
596
+ Parameters: {"id"=>:ru}
597
+ Completed in 0ms
598
+ SQL (0.3ms) SELECT name
599
+ FROM sqlite_master
600
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
601
+ SQL (168.4ms) DELETE FROM "users";
602
+ SQL (132.2ms) DELETE FROM "roles";
603
+ SQL (88.3ms) DELETE FROM "structures";
604
+ SQL (143.1ms) DELETE FROM "pages";
605
+ SQL (132.4ms) DELETE FROM "assets";
606
+ SQL (132.3ms) DELETE FROM "headers";
607
+ SQL (187.7ms) DELETE FROM "widgets";
608
+ SQL (0.7ms)  SELECT name
609
+ FROM sqlite_master
610
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
611
+ 
612
+ SQL (0.3ms) SELECT name
613
+ FROM sqlite_master
614
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
615
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
616
+ Migrating to SunriseCreateUsers (20110801124809)
617
+ Migrating to SunriseCreateRoles (20110801124909)
618
+ Migrating to SunriseCreateStructures (20110801125009)
619
+ Migrating to SunriseCreatePages (20110801125109)
620
+ Migrating to SunriseCreateAssets (20110801125209)
621
+ Migrating to SunriseCreateHeaders (20110801125309)
622
+ SQL (0.3ms) SELECT name
623
+ FROM sqlite_master
624
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
625
+ SQL (126.3ms) DELETE FROM "users";
626
+ SQL (99.1ms) DELETE FROM "roles";
627
+ SQL (99.3ms) DELETE FROM "structures";
628
+ SQL (99.0ms) DELETE FROM "pages";
629
+ SQL (111.1ms) DELETE FROM "assets";
630
+ SQL (109.1ms) DELETE FROM "headers";
631
+ SQL (176.6ms) DELETE FROM "widgets";
632
+ SQL (0.3ms) SELECT name
633
+ FROM sqlite_master
634
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
635
+ SQL (163.0ms) DELETE FROM "users";
636
+ SQL (99.0ms) DELETE FROM "roles";
637
+ SQL (110.2ms) DELETE FROM "structures";
638
+ SQL (110.1ms) DELETE FROM "pages";
639
+ SQL (99.3ms) DELETE FROM "assets";
640
+ SQL (110.1ms) DELETE FROM "headers";
641
+ SQL (99.2ms) DELETE FROM "widgets";
642
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
643
+ AREL (0.4ms) INSERT INTO "users" ("last_sign_in_ip", "email", "current_sign_in_ip", "failed_attempts", "confirmation_sent_at", "created_at", "confirmed_at", "reset_password_token", "name", "current_sign_in_at", "confirmation_token", "reset_password_sent_at", "locked_at", "password_salt", "encrypted_password", "remember_created_at", "sign_in_count", "last_sign_in_at", "updated_at") VALUES (NULL, 'testing1@example.com', NULL, 0, NULL, '2011-09-13 11:05:11.808821', '2011-09-13 11:05:11.804041', NULL, 'Admin', NULL, NULL, NULL, NULL, 'wttsPmAgg9DGqbyPXpxx', '4756a44c760629a5eaaeb918114658a3b67d1798243327f7891dc9a0735ae8dd8ede47b7bfa47cc60ccbd8fc5ca066dba131eb3a40b5bfc75a0ff9f3d4831e84', NULL, 0, NULL, '2011-09-13 11:05:11.808821')
644
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "user_id", "created_at", "role_type") VALUES ('2011-09-13 11:05:11.813181', 6, '2011-09-13 11:05:11.813181', 4)
645
+ Processing by Manage::LocalesController#index as HTML
646
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
647
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
648
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
649
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (2.9ms)
650
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 6 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
651
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (13.2ms)
652
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.6ms)
653
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.9ms)
654
+ Completed 200 OK in 60ms (Views: 52.2ms | ActiveRecord: 1614.8ms)
655
+ Processing by Manage::LocalesController#edit as HTML
656
+ Parameters: {"id"=>:en}
657
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
658
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
659
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
660
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 6 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
661
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.4ms)
662
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
663
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.5ms)
664
+ Completed 200 OK in 21ms (Views: 13.9ms | ActiveRecord: 0.9ms)
665
+ Processing by Manage::LocalesController#update as HTML
666
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
667
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
668
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
669
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
670
+ Redirected to http://test.host/manage/locales
671
+ Completed 302 Found in 119ms
672
+ Processing by Manage::LocalesController#index as HTML
673
+ Completed in 2ms
674
+ Processing by Manage::LocalesController#edit as HTML
675
+ Parameters: {"id"=>:en}
676
+ Completed in 0ms
677
+ Processing by Manage::LocalesController#update as HTML
678
+ Parameters: {"id"=>:en}
679
+ Completed in 0ms
680
+ SQL (0.3ms) SELECT name
681
+ FROM sqlite_master
682
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
683
+ SQL (105.9ms) DELETE FROM "users";
684
+ SQL (99.1ms) DELETE FROM "roles";
685
+ SQL (132.2ms) DELETE FROM "structures";
686
+ SQL (88.1ms) DELETE FROM "pages";
687
+ SQL (187.7ms) DELETE FROM "assets";
688
+ SQL (99.1ms) DELETE FROM "headers";
689
+ SQL (88.2ms) DELETE FROM "widgets";
690
+ SQL (0.7ms)  SELECT name
691
+ FROM sqlite_master
692
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
693
+ 
694
+ SQL (0.3ms) SELECT name
695
+ FROM sqlite_master
696
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
697
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
698
+ Migrating to SunriseCreateUsers (20110801124809)
699
+ Migrating to SunriseCreateRoles (20110801124909)
700
+ Migrating to SunriseCreateStructures (20110801125009)
701
+ Migrating to SunriseCreatePages (20110801125109)
702
+ Migrating to SunriseCreateAssets (20110801125209)
703
+ Migrating to SunriseCreateHeaders (20110801125309)
704
+ SQL (0.3ms) SELECT name
705
+ FROM sqlite_master
706
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
707
+ SQL (110.3ms) DELETE FROM "users";
708
+ SQL (121.1ms) DELETE FROM "roles";
709
+ SQL (99.3ms) DELETE FROM "structures";
710
+ SQL (99.1ms) DELETE FROM "pages";
711
+ SQL (110.4ms) DELETE FROM "assets";
712
+ SQL (132.2ms) DELETE FROM "headers";
713
+ SQL (99.1ms) DELETE FROM "widgets";
714
+ SQL (0.4ms) SELECT name
715
+ FROM sqlite_master
716
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
717
+ SQL (96.2ms) DELETE FROM "users";
718
+ SQL (88.0ms) DELETE FROM "roles";
719
+ SQL (88.3ms) DELETE FROM "structures";
720
+ SQL (88.1ms) DELETE FROM "pages";
721
+ SQL (88.2ms) DELETE FROM "assets";
722
+ SQL (88.1ms) DELETE FROM "headers";
723
+ SQL (88.2ms) DELETE FROM "widgets";
724
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
725
+ AREL (0.3ms) INSERT INTO "users" ("sign_in_count", "last_sign_in_ip", "encrypted_password", "locked_at", "current_sign_in_ip", "password_salt", "email", "reset_password_sent_at", "reset_password_token", "last_sign_in_at", "failed_attempts", "created_at", "remember_created_at", "current_sign_in_at", "updated_at", "confirmation_token", "name", "confirmed_at", "confirmation_sent_at") VALUES (0, NULL, '078e5b2c70848dbd938e1ba883ea51df09e47836562238da6b3e45944e7ce6a2773340140aae12761ecc4fb72b72c7a0aa18c1d41fdc57bfb080955dff93e5dc', NULL, NULL, 'xXEU6Lz2WeQH6jQPhinr', 'testing1@example.com', NULL, NULL, NULL, 0, '2011-09-13 11:06:50.287134', NULL, NULL, '2011-09-13 11:06:50.287134', NULL, 'Admin', '2011-09-13 11:06:50.282276', NULL)
726
+ AREL (0.1ms) INSERT INTO "roles" ("created_at", "role_type", "updated_at", "user_id") VALUES ('2011-09-13 11:06:50.290649', 4, '2011-09-13 11:06:50.290649', 7)
727
+ Processing by Manage::LocalesController#index as HTML
728
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
729
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
730
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
731
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.2ms)
732
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 7 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
733
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.5ms)
734
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
735
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
736
+ Completed 200 OK in 55ms (Views: 47.8ms | ActiveRecord: 1399.9ms)
737
+ Processing by Manage::LocalesController#edit as HTML
738
+ Parameters: {"id"=>:en}
739
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
740
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
741
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
742
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 7 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
743
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.3ms)
744
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
745
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
746
+ Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.9ms)
747
+ Processing by Manage::LocalesController#update as HTML
748
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
749
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
750
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
751
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
752
+ Redirected to http://test.host/manage/locales
753
+ Completed 302 Found in 113ms
754
+ Processing by Manage::LocalesController#index as HTML
755
+ Completed in 2ms
756
+ Processing by Manage::LocalesController#edit as HTML
757
+ Parameters: {"id"=>:en}
758
+ Completed in 0ms
759
+ Processing by Manage::LocalesController#update as HTML
760
+ Parameters: {"id"=>:en}
761
+ Completed in 0ms
762
+ SQL (0.3ms) SELECT name
763
+ FROM sqlite_master
764
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
765
+ SQL (74.6ms) DELETE FROM "users";
766
+ SQL (88.4ms) DELETE FROM "roles";
767
+ SQL (87.8ms) DELETE FROM "structures";
768
+ SQL (88.1ms) DELETE FROM "pages";
769
+ SQL (88.2ms) DELETE FROM "assets";
770
+ SQL (88.1ms) DELETE FROM "headers";
771
+ SQL (88.2ms) DELETE FROM "widgets";
772
+ SQL (0.7ms)  SELECT name
773
+ FROM sqlite_master
774
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
775
+ 
776
+ SQL (0.3ms) SELECT name
777
+ FROM sqlite_master
778
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
779
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
780
+ Migrating to SunriseCreateUsers (20110801124809)
781
+ Migrating to SunriseCreateRoles (20110801124909)
782
+ Migrating to SunriseCreateStructures (20110801125009)
783
+ Migrating to SunriseCreatePages (20110801125109)
784
+ Migrating to SunriseCreateAssets (20110801125209)
785
+ Migrating to SunriseCreateHeaders (20110801125309)
786
+ SQL (0.3ms) SELECT name
787
+ FROM sqlite_master
788
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
789
+ SQL (148.1ms) DELETE FROM "users";
790
+ SQL (154.3ms) DELETE FROM "roles";
791
+ SQL (121.4ms) DELETE FROM "structures";
792
+ SQL (110.2ms) DELETE FROM "pages";
793
+ SQL (99.1ms) DELETE FROM "assets";
794
+ SQL (98.7ms) DELETE FROM "headers";
795
+ SQL (121.3ms) DELETE FROM "widgets";
796
+ SQL (0.6ms) SELECT name
797
+ FROM sqlite_master
798
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
799
+ SQL (106.9ms) DELETE FROM "users";
800
+ SQL (99.1ms) DELETE FROM "roles";
801
+ SQL (99.2ms) DELETE FROM "structures";
802
+ SQL (99.1ms) DELETE FROM "pages";
803
+ SQL (132.4ms) DELETE FROM "assets";
804
+ SQL (110.1ms) DELETE FROM "headers";
805
+ SQL (110.4ms) DELETE FROM "widgets";
806
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
807
+ AREL (0.4ms) INSERT INTO "users" ("reset_password_token", "encrypted_password", "confirmation_token", "reset_password_sent_at", "locked_at", "confirmation_sent_at", "current_sign_in_at", "created_at", "email", "remember_created_at", "name", "password_salt", "last_sign_in_at", "last_sign_in_ip", "failed_attempts", "confirmed_at", "current_sign_in_ip", "sign_in_count", "updated_at") VALUES (NULL, '76e83001435ffcdf74c1fd01ca7df299d73e4be328461d3d201d495941bb74e0a2f88d4e4ce784393cf61deaf158c3a2e9d0f44ded75c5a2332acc381134a8c5', NULL, NULL, NULL, NULL, NULL, '2011-09-13 11:09:04.281955', 'testing1@example.com', NULL, 'Admin', 'pJzX5M5j98pX3QMZXhMa', NULL, NULL, 0, '2011-09-13 11:09:04.276681', NULL, 0, '2011-09-13 11:09:04.281955')
808
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "role_type", "user_id", "created_at") VALUES ('2011-09-13 11:09:04.285680', 4, 8, '2011-09-13 11:09:04.285680')
809
+ Processing by Manage::LocalesController#index as HTML
810
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
811
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
812
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
813
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (2.9ms)
814
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 8 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
815
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.4ms)
816
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
817
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
818
+ Completed 200 OK in 56ms (Views: 47.0ms | ActiveRecord: 1614.1ms)
819
+ Processing by Manage::LocalesController#edit as HTML
820
+ Parameters: {"id"=>:ru}
821
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
822
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
823
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
824
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 8 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
825
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.3ms)
826
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
827
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
828
+ Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 0.8ms)
829
+ Processing by Manage::LocalesController#update as HTML
830
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
831
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
832
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
833
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 8) LIMIT 1
834
+ Redirected to http://test.host/manage/locales
835
+ Completed 302 Found in 116ms
836
+ Processing by Manage::LocalesController#index as HTML
837
+ Completed in 2ms
838
+ Processing by Manage::LocalesController#edit as HTML
839
+ Parameters: {"id"=>:ru}
840
+ Completed in 0ms
841
+ Processing by Manage::LocalesController#update as HTML
842
+ Parameters: {"id"=>:ru}
843
+ Completed in 0ms
844
+ SQL (0.3ms) SELECT name
845
+ FROM sqlite_master
846
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
847
+ SQL (91.5ms) DELETE FROM "users";
848
+ SQL (88.0ms) DELETE FROM "roles";
849
+ SQL (99.3ms) DELETE FROM "structures";
850
+ SQL (121.2ms) DELETE FROM "pages";
851
+ SQL (110.4ms) DELETE FROM "assets";
852
+ SQL (110.1ms) DELETE FROM "headers";
853
+ SQL (99.2ms) DELETE FROM "widgets";
854
+ SQL (0.7ms)  SELECT name
855
+ FROM sqlite_master
856
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
857
+ 
858
+ SQL (0.3ms) SELECT name
859
+ FROM sqlite_master
860
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
861
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
862
+ Migrating to SunriseCreateUsers (20110801124809)
863
+ Migrating to SunriseCreateRoles (20110801124909)
864
+ Migrating to SunriseCreateStructures (20110801125009)
865
+ Migrating to SunriseCreatePages (20110801125109)
866
+ Migrating to SunriseCreateAssets (20110801125209)
867
+ Migrating to SunriseCreateHeaders (20110801125309)
868
+ SQL (0.3ms) SELECT name
869
+ FROM sqlite_master
870
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
871
+ SQL (95.5ms) DELETE FROM "users";
872
+ SQL (99.1ms) DELETE FROM "roles";
873
+ SQL (88.3ms) DELETE FROM "structures";
874
+ SQL (121.2ms) DELETE FROM "pages";
875
+ SQL (99.4ms) DELETE FROM "assets";
876
+ SQL (99.1ms) DELETE FROM "headers";
877
+ SQL (99.2ms) DELETE FROM "widgets";
878
+ SQL (0.4ms) SELECT name
879
+ FROM sqlite_master
880
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
881
+ SQL (96.3ms) DELETE FROM "users";
882
+ SQL (121.1ms) DELETE FROM "roles";
883
+ SQL (143.4ms) DELETE FROM "structures";
884
+ SQL (110.1ms) DELETE FROM "pages";
885
+ SQL (121.4ms) DELETE FROM "assets";
886
+ SQL (88.0ms) DELETE FROM "headers";
887
+ SQL (110.2ms) DELETE FROM "widgets";
888
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
889
+ AREL (0.2ms) INSERT INTO "users" ("email", "confirmation_token", "name", "sign_in_count", "failed_attempts", "updated_at", "confirmed_at", "password_salt", "last_sign_in_ip", "reset_password_sent_at", "locked_at", "confirmation_sent_at", "current_sign_in_at", "encrypted_password", "remember_created_at", "current_sign_in_ip", "created_at", "reset_password_token", "last_sign_in_at") VALUES ('testing1@example.com', NULL, 'Admin', 0, 0, '2011-09-13 11:09:15.126805', '2011-09-13 11:09:15.121839', 'NjxBs23q3WXcxAtp7qz9', NULL, NULL, NULL, NULL, NULL, '9a4753041af33414d75109b4dee9c557b99c1cc3a0231282776a27699be0738f0a0b120f7e3cdd8063a3efddea247bb166db18c5ee5b624e26fb03a56e349944', NULL, NULL, '2011-09-13 11:09:15.126805', NULL, NULL)
890
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-09-13 11:09:15.130223', '2011-09-13 11:09:15.130223', 4, 9)
891
+ Processing by Manage::LocalesController#index as HTML
892
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
893
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
894
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
895
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.0ms)
896
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 9 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
897
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.3ms)
898
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
899
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
900
+ Completed 200 OK in 56ms (Views: 46.9ms | ActiveRecord: 1495.7ms)
901
+ Processing by Manage::LocalesController#edit as HTML
902
+ Parameters: {"id"=>:uk}
903
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
904
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
905
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
906
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 9 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
907
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.3ms)
908
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
909
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.5ms)
910
+ Completed 200 OK in 19ms (Views: 12.8ms | ActiveRecord: 0.8ms)
911
+ Processing by Manage::LocalesController#update as HTML
912
+ Parameters: {"text"=>"uk:\n title: 'Hello World'", "id"=>:uk}
913
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
914
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
915
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 9) LIMIT 1
916
+ Redirected to http://test.host/manage/locales
917
+ Completed 302 Found in 113ms
918
+ Processing by Manage::LocalesController#index as HTML
919
+ Completed in 2ms
920
+ Processing by Manage::LocalesController#edit as HTML
921
+ Parameters: {"id"=>:uk}
922
+ Completed in 0ms
923
+ Processing by Manage::LocalesController#update as HTML
924
+ Parameters: {"id"=>:uk}
925
+ Completed in 0ms
926
+ SQL (0.5ms) SELECT name
927
+ FROM sqlite_master
928
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
929
+ SQL (82.5ms) DELETE FROM "users";
930
+ SQL (121.2ms) DELETE FROM "roles";
931
+ SQL (110.3ms) DELETE FROM "structures";
932
+ SQL (99.2ms) DELETE FROM "pages";
933
+ SQL (99.3ms) DELETE FROM "assets";
934
+ SQL (143.3ms) DELETE FROM "headers";
935
+ SQL (154.4ms) DELETE FROM "widgets";
936
+ SQL (0.8ms)  SELECT name
937
+ FROM sqlite_master
938
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
939
+ 
940
+ SQL (0.3ms) SELECT name
941
+ FROM sqlite_master
942
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
943
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
944
+ Migrating to SunriseCreateUsers (20110801124809)
945
+ Migrating to SunriseCreateRoles (20110801124909)
946
+ Migrating to SunriseCreateStructures (20110801125009)
947
+ Migrating to SunriseCreatePages (20110801125109)
948
+ Migrating to SunriseCreateAssets (20110801125209)
949
+ Migrating to SunriseCreateHeaders (20110801125309)
950
+ SQL (0.3ms) SELECT name
951
+ FROM sqlite_master
952
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
953
+ SQL (118.9ms) DELETE FROM "users";
954
+ SQL (110.2ms) DELETE FROM "roles";
955
+ SQL (99.3ms) DELETE FROM "structures";
956
+ SQL (99.1ms) DELETE FROM "pages";
957
+ SQL (132.4ms) DELETE FROM "assets";
958
+ SQL (110.2ms) DELETE FROM "headers";
959
+ SQL (110.2ms) DELETE FROM "widgets";
960
+ SQL (0.5ms) SELECT name
961
+ FROM sqlite_master
962
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
963
+ SQL (107.1ms) DELETE FROM "users";
964
+ SQL (88.0ms) DELETE FROM "roles";
965
+ SQL (88.2ms) DELETE FROM "structures";
966
+ SQL (88.1ms) DELETE FROM "pages";
967
+ SQL (99.4ms) DELETE FROM "assets";
968
+ SQL (99.0ms) DELETE FROM "headers";
969
+ SQL (121.4ms) DELETE FROM "widgets";
970
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
971
+ AREL (0.3ms) INSERT INTO "users" ("confirmation_token", "updated_at", "confirmed_at", "last_sign_in_at", "confirmation_sent_at", "encrypted_password", "sign_in_count", "failed_attempts", "locked_at", "password_salt", "last_sign_in_ip", "name", "remember_created_at", "reset_password_token", "created_at", "email", "current_sign_in_ip", "reset_password_sent_at", "current_sign_in_at") VALUES (NULL, '2011-09-13 11:09:32.753163', '2011-09-13 11:09:32.748048', NULL, NULL, 'e7541cf1fd80443ff564fdd034d0788ce86362e2649cfd8a41c2a363a196e1c565a88b4870d20289831c9520fa4fb501fa66dac57e7f0ce33c4799f794287506', 0, 0, NULL, 'LgZp1TKyiGVQa8XwwdXE', NULL, 'Admin', NULL, NULL, '2011-09-13 11:09:32.753163', 'testing1@example.com', NULL, NULL, NULL)
972
+ AREL (0.1ms) INSERT INTO "roles" ("user_id", "role_type", "created_at", "updated_at") VALUES (10, 4, '2011-09-13 11:09:32.756620', '2011-09-13 11:09:32.756620')
973
+ Processing by Manage::LocalesController#index as HTML
974
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
975
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
976
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
977
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.0ms)
978
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 10 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
979
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.4ms)
980
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
981
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
982
+ Completed 200 OK in 55ms (Views: 48.0ms | ActiveRecord: 1474.8ms)
983
+ Processing by Manage::LocalesController#edit as HTML
984
+ Parameters: {"id"=>:ru}
985
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
986
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
987
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
988
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 10 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
989
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.5ms)
990
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
991
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
992
+ Completed 200 OK in 20ms (Views: 13.6ms | ActiveRecord: 0.8ms)
993
+ Processing by Manage::LocalesController#update as HTML
994
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
995
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
996
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
997
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 10) LIMIT 1
998
+ Redirected to http://test.host/manage/locales
999
+ Completed 302 Found in 113ms
1000
+ Processing by Manage::LocalesController#index as HTML
1001
+ Completed in 2ms
1002
+ Processing by Manage::LocalesController#edit as HTML
1003
+ Parameters: {"id"=>:ru}
1004
+ Completed in 0ms
1005
+ Processing by Manage::LocalesController#update as HTML
1006
+ Parameters: {"id"=>:ru}
1007
+ Completed in 0ms
1008
+ SQL (0.3ms) SELECT name
1009
+ FROM sqlite_master
1010
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1011
+ SQL (107.6ms) DELETE FROM "users";
1012
+ SQL (99.0ms) DELETE FROM "roles";
1013
+ SQL (121.4ms) DELETE FROM "structures";
1014
+ SQL (99.1ms) DELETE FROM "pages";
1015
+ SQL (88.3ms) DELETE FROM "assets";
1016
+ SQL (110.2ms) DELETE FROM "headers";
1017
+ SQL (88.2ms) DELETE FROM "widgets";
1018
+ SQL (0.7ms)  SELECT name
1019
+ FROM sqlite_master
1020
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1021
+ 
1022
+ SQL (0.3ms) SELECT name
1023
+ FROM sqlite_master
1024
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1025
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1026
+ Migrating to SunriseCreateUsers (20110801124809)
1027
+ Migrating to SunriseCreateRoles (20110801124909)
1028
+ Migrating to SunriseCreateStructures (20110801125009)
1029
+ Migrating to SunriseCreatePages (20110801125109)
1030
+ Migrating to SunriseCreateAssets (20110801125209)
1031
+ Migrating to SunriseCreateHeaders (20110801125309)
1032
+ SQL (0.3ms) SELECT name
1033
+ FROM sqlite_master
1034
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1035
+ SQL (84.3ms) DELETE FROM "users";
1036
+ SQL (88.0ms) DELETE FROM "roles";
1037
+ SQL (88.3ms) DELETE FROM "structures";
1038
+ SQL (77.0ms) DELETE FROM "pages";
1039
+ SQL (99.3ms) DELETE FROM "assets";
1040
+ SQL (88.1ms) DELETE FROM "headers";
1041
+ SQL (88.2ms) DELETE FROM "widgets";
1042
+ SQL (0.4ms) SELECT name
1043
+ FROM sqlite_master
1044
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1045
+ SQL (107.1ms) DELETE FROM "users";
1046
+ SQL (87.9ms) DELETE FROM "roles";
1047
+ SQL (99.2ms) DELETE FROM "structures";
1048
+ SQL (88.2ms) DELETE FROM "pages";
1049
+ SQL (99.3ms) DELETE FROM "assets";
1050
+ SQL (88.0ms) DELETE FROM "headers";
1051
+ SQL (154.5ms) DELETE FROM "widgets";
1052
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1053
+ AREL (0.3ms) INSERT INTO "users" ("current_sign_in_at", "confirmation_token", "last_sign_in_ip", "last_sign_in_at", "remember_created_at", "name", "reset_password_sent_at", "email", "password_salt", "updated_at", "encrypted_password", "reset_password_token", "current_sign_in_ip", "sign_in_count", "created_at", "confirmed_at", "locked_at", "confirmation_sent_at", "failed_attempts") VALUES (NULL, NULL, NULL, NULL, NULL, 'Admin', NULL, 'testing1@example.com', '9sMPBhqAe1fpGbsQGaWJ', '2011-09-13 11:09:42.339934', '27bfc545f7d2f727538f418472f005fabdf910aec39741c6e66e2e90760eb76c03ccb6f4cbf93c5d7dfb4300fc29cdf34c1dc16c458fa608b747c4715d449ee5', NULL, NULL, 0, '2011-09-13 11:09:42.339934', '2011-09-13 11:09:42.334979', NULL, NULL, 0)
1054
+ AREL (0.1ms) INSERT INTO "roles" ("role_type", "created_at", "updated_at", "user_id") VALUES (4, '2011-09-13 11:09:42.343394', '2011-09-13 11:09:42.343394', 11)
1055
+ Processing by Manage::LocalesController#index as HTML
1056
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
1057
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1058
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1059
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (2.9ms)
1060
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 11 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1061
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.5ms)
1062
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
1063
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1064
+ Completed 200 OK in 54ms (Views: 46.8ms | ActiveRecord: 1340.6ms)
1065
+ Processing by Manage::LocalesController#edit as HTML
1066
+ Parameters: {"id"=>:uk}
1067
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
1068
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1069
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1070
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 11 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1071
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.4ms)
1072
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1073
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1074
+ Completed 200 OK in 19ms (Views: 12.8ms | ActiveRecord: 0.9ms)
1075
+ Processing by Manage::LocalesController#update as HTML
1076
+ Parameters: {"text"=>"uk:\n title: 'Hello World'", "id"=>:uk}
1077
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
1078
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1079
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 11) LIMIT 1
1080
+ Redirected to http://test.host/manage/locales
1081
+ Completed 302 Found in 116ms
1082
+ Processing by Manage::LocalesController#index as HTML
1083
+ Completed in 2ms
1084
+ Processing by Manage::LocalesController#edit as HTML
1085
+ Parameters: {"id"=>:uk}
1086
+ Completed in 0ms
1087
+ Processing by Manage::LocalesController#update as HTML
1088
+ Parameters: {"id"=>:uk}
1089
+ Completed in 0ms
1090
+ SQL (0.3ms) SELECT name
1091
+ FROM sqlite_master
1092
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1093
+ SQL (105.3ms) DELETE FROM "users";
1094
+ SQL (88.0ms) DELETE FROM "roles";
1095
+ SQL (132.4ms) DELETE FROM "structures";
1096
+ SQL (88.1ms) DELETE FROM "pages";
1097
+ SQL (88.2ms) DELETE FROM "assets";
1098
+ SQL (77.0ms) DELETE FROM "headers";
1099
+ SQL (110.2ms) DELETE FROM "widgets";
1100
+ SQL (0.7ms)  SELECT name
1101
+ FROM sqlite_master
1102
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1103
+ 
1104
+ SQL (0.3ms) SELECT name
1105
+ FROM sqlite_master
1106
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1107
+ SQL (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1108
+ Migrating to SunriseCreateUsers (20110801124809)
1109
+ Migrating to SunriseCreateRoles (20110801124909)
1110
+ Migrating to SunriseCreateStructures (20110801125009)
1111
+ Migrating to SunriseCreatePages (20110801125109)
1112
+ Migrating to SunriseCreateAssets (20110801125209)
1113
+ Migrating to SunriseCreateHeaders (20110801125309)
1114
+ SQL (0.3ms) SELECT name
1115
+ FROM sqlite_master
1116
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1117
+ SQL (157.4ms) DELETE FROM "users";
1118
+ SQL (99.1ms) DELETE FROM "roles";
1119
+ SQL (143.5ms) DELETE FROM "structures";
1120
+ SQL (99.8ms) DELETE FROM "pages";
1121
+ SQL (98.7ms) DELETE FROM "assets";
1122
+ SQL (88.1ms) DELETE FROM "headers";
1123
+ SQL (121.4ms) DELETE FROM "widgets";
1124
+ SQL (0.4ms) SELECT name
1125
+ FROM sqlite_master
1126
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1127
+ SQL (85.1ms) DELETE FROM "users";
1128
+ SQL (176.4ms) DELETE FROM "roles";
1129
+ SQL (88.2ms) DELETE FROM "structures";
1130
+ SQL (121.2ms) DELETE FROM "pages";
1131
+ SQL (99.4ms) DELETE FROM "assets";
1132
+ SQL (99.1ms) DELETE FROM "headers";
1133
+ SQL (99.2ms) DELETE FROM "widgets";
1134
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1135
+ AREL (0.3ms) INSERT INTO "users" ("last_sign_in_ip", "created_at", "reset_password_token", "confirmation_sent_at", "locked_at", "remember_created_at", "confirmed_at", "current_sign_in_at", "sign_in_count", "updated_at", "name", "reset_password_sent_at", "confirmation_token", "password_salt", "last_sign_in_at", "failed_attempts", "email", "current_sign_in_ip", "encrypted_password") VALUES (NULL, '2011-09-13 11:12:02.494348', NULL, NULL, NULL, NULL, '2011-09-13 11:12:02.488874', NULL, 0, '2011-09-13 11:12:02.494348', 'Admin', NULL, NULL, 'PyJ1QQLErxZ5sJVL26Tr', NULL, 0, 'testing1@example.com', NULL, '8023eef814b48c87f519d3a5e5294da20dc778f7ed1b96c65c23fcd76ff8fec35e10df0ce4b807fba106b7684e82c556c86f22afc101499878171e0bd35c3413')
1136
+ AREL (0.1ms) INSERT INTO "roles" ("role_type", "created_at", "user_id", "updated_at") VALUES (4, '2011-09-13 11:12:02.497770', 12, '2011-09-13 11:12:02.497770')
1137
+ Processing by Manage::LocalesController#index as HTML
1138
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
1139
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1140
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1141
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.0ms)
1142
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 12 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1143
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (11.9ms)
1144
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
1145
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
1146
+ Completed 200 OK in 56ms (Views: 48.5ms | ActiveRecord: 1579.7ms)
1147
+ Processing by Manage::LocalesController#edit as HTML
1148
+ Parameters: {"id"=>:en}
1149
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
1150
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1151
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1152
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 12 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1153
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.8ms)
1154
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1155
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.5ms)
1156
+ Completed 200 OK in 21ms (Views: 14.2ms | ActiveRecord: 0.9ms)
1157
+ Processing by Manage::LocalesController#update as HTML
1158
+ Parameters: {"text"=>"en:\n title: 'Hello World'\nnew: 'temp'", "id"=>:en}
1159
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
1160
+ Role Load (0.3ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1161
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 12) LIMIT 1
1162
+ Completed 500 Internal Server Error in 12ms
1163
+ Processing by Manage::LocalesController#index as HTML
1164
+ Completed in 2ms
1165
+ Processing by Manage::LocalesController#edit as HTML
1166
+ Parameters: {"id"=>:en}
1167
+ Completed in 0ms
1168
+ Processing by Manage::LocalesController#update as HTML
1169
+ Parameters: {"id"=>:en}
1170
+ Completed in 0ms
1171
+ SQL (0.3ms) SELECT name
1172
+ FROM sqlite_master
1173
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1174
+ SQL (189.3ms) DELETE FROM "users";
1175
+ SQL (88.0ms) DELETE FROM "roles";
1176
+ SQL (121.4ms) DELETE FROM "structures";
1177
+ SQL (76.9ms) DELETE FROM "pages";
1178
+ SQL (88.4ms) DELETE FROM "assets";
1179
+ SQL (99.0ms) DELETE FROM "headers";
1180
+ SQL (88.2ms) DELETE FROM "widgets";
1181
+ SQL (1.0ms)  SELECT name
1182
+ FROM sqlite_master
1183
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1184
+ 
1185
+ SQL (0.3ms) SELECT name
1186
+ FROM sqlite_master
1187
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1188
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1189
+ Migrating to SunriseCreateUsers (20110801124809)
1190
+ Migrating to SunriseCreateRoles (20110801124909)
1191
+ Migrating to SunriseCreateStructures (20110801125009)
1192
+ Migrating to SunriseCreatePages (20110801125109)
1193
+ Migrating to SunriseCreateAssets (20110801125209)
1194
+ Migrating to SunriseCreateHeaders (20110801125309)
1195
+ SQL (0.3ms) SELECT name
1196
+ FROM sqlite_master
1197
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1198
+ SQL (128.8ms) DELETE FROM "users";
1199
+ SQL (110.1ms) DELETE FROM "roles";
1200
+ SQL (88.2ms) DELETE FROM "structures";
1201
+ SQL (165.4ms) DELETE FROM "pages";
1202
+ SQL (110.4ms) DELETE FROM "assets";
1203
+ SQL (99.1ms) DELETE FROM "headers";
1204
+ SQL (99.2ms) DELETE FROM "widgets";
1205
+ SQL (0.5ms) SELECT name
1206
+ FROM sqlite_master
1207
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1208
+ SQL (107.0ms) DELETE FROM "users";
1209
+ SQL (88.0ms) DELETE FROM "roles";
1210
+ SQL (99.4ms) DELETE FROM "structures";
1211
+ SQL (88.0ms) DELETE FROM "pages";
1212
+ SQL (88.3ms) DELETE FROM "assets";
1213
+ SQL (121.1ms) DELETE FROM "headers";
1214
+ SQL (110.3ms) DELETE FROM "widgets";
1215
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1216
+ AREL (0.3ms) INSERT INTO "users" ("remember_created_at", "current_sign_in_at", "last_sign_in_ip", "encrypted_password", "locked_at", "password_salt", "failed_attempts", "confirmation_token", "sign_in_count", "last_sign_in_at", "email", "name", "reset_password_token", "reset_password_sent_at", "updated_at", "created_at", "confirmed_at", "confirmation_sent_at", "current_sign_in_ip") VALUES (NULL, NULL, NULL, 'd3d7e34d7beee145c2cfbf46dd4f4f8b2a6fa2b7b3d9068b3c881b1647b034d93d22643fe154636016025f303d3ccdf3b2b8561356decd6a9ff108b966381cee', NULL, 'LW46aizVBuEFh5sWp6Yk', 0, NULL, 0, NULL, 'testing1@example.com', 'Admin', NULL, NULL, '2011-09-13 11:15:07.162438', '2011-09-13 11:15:07.162438', '2011-09-13 11:15:07.157755', NULL, NULL)
1217
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-09-13 11:15:07.165773', '2011-09-13 11:15:07.165773', 4, 13)
1218
+ Processing by Manage::LocalesController#index as HTML
1219
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
1220
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1221
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1222
+ Completed 500 Internal Server Error in 22ms
1223
+ Processing by Manage::LocalesController#edit as HTML
1224
+ Parameters: {"id"=>:uk}
1225
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
1226
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1227
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1228
+ Completed 500 Internal Server Error in 18ms
1229
+ Processing by Manage::LocalesController#update as HTML
1230
+ Parameters: {"text"=>"uk:\n title: 'Hello World'", "id"=>:uk}
1231
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
1232
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1233
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 13) LIMIT 1
1234
+ Completed 500 Internal Server Error in 15ms
1235
+ Processing by Manage::LocalesController#index as HTML
1236
+ Completed in 2ms
1237
+ Processing by Manage::LocalesController#edit as HTML
1238
+ Parameters: {"id"=>:uk}
1239
+ Completed in 0ms
1240
+ Processing by Manage::LocalesController#update as HTML
1241
+ Parameters: {"id"=>:uk}
1242
+ Completed in 0ms
1243
+ SQL (0.3ms) SELECT name
1244
+ FROM sqlite_master
1245
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1246
+ SQL (148.3ms) DELETE FROM "users";
1247
+ SQL (132.2ms) DELETE FROM "roles";
1248
+ SQL (99.2ms) DELETE FROM "structures";
1249
+ SQL (99.1ms) DELETE FROM "pages";
1250
+ SQL (88.2ms) DELETE FROM "assets";
1251
+ SQL (110.1ms) DELETE FROM "headers";
1252
+ SQL (88.2ms) DELETE FROM "widgets";
1253
+ SQL (0.7ms)  SELECT name
1254
+ FROM sqlite_master
1255
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1256
+ 
1257
+ SQL (0.3ms) SELECT name
1258
+ FROM sqlite_master
1259
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1260
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1261
+ Migrating to SunriseCreateUsers (20110801124809)
1262
+ Migrating to SunriseCreateRoles (20110801124909)
1263
+ Migrating to SunriseCreateStructures (20110801125009)
1264
+ Migrating to SunriseCreatePages (20110801125109)
1265
+ Migrating to SunriseCreateAssets (20110801125209)
1266
+ Migrating to SunriseCreateHeaders (20110801125309)
1267
+ SQL (0.3ms) SELECT name
1268
+ FROM sqlite_master
1269
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1270
+ SQL (167.4ms) DELETE FROM "users";
1271
+ SQL (99.1ms) DELETE FROM "roles";
1272
+ SQL (99.3ms) DELETE FROM "structures";
1273
+ SQL (99.1ms) DELETE FROM "pages";
1274
+ SQL (88.4ms) DELETE FROM "assets";
1275
+ SQL (110.0ms) DELETE FROM "headers";
1276
+ SQL (88.1ms) DELETE FROM "widgets";
1277
+ SQL (0.4ms) SELECT name
1278
+ FROM sqlite_master
1279
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1280
+ SQL (85.3ms) DELETE FROM "users";
1281
+ SQL (159.0ms) DELETE FROM "roles";
1282
+ SQL (94.5ms) DELETE FROM "structures";
1283
+ SQL (99.2ms) DELETE FROM "pages";
1284
+ SQL (121.4ms) DELETE FROM "assets";
1285
+ SQL (99.1ms) DELETE FROM "headers";
1286
+ SQL (99.4ms) DELETE FROM "widgets";
1287
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1288
+ AREL (0.3ms) INSERT INTO "users" ("current_sign_in_at", "encrypted_password", "confirmation_token", "locked_at", "failed_attempts", "last_sign_in_ip", "email", "reset_password_sent_at", "reset_password_token", "name", "remember_created_at", "last_sign_in_at", "password_salt", "confirmation_sent_at", "created_at", "confirmed_at", "current_sign_in_ip", "sign_in_count", "updated_at") VALUES (NULL, '225d61f9b80f0e9b50f437cedcfc8f7d7d0c9e93b2925f6e64bad7b6f66140b584da9262f30a7bd5f58659bfeecd6ba80742524a82563bb06e08a7aa1ecfa02f', NULL, NULL, 0, NULL, 'testing1@example.com', NULL, NULL, 'Admin', NULL, NULL, '5W3i2Ywp2NRMuambtSgu', NULL, '2011-09-13 11:15:48.262828', '2011-09-13 11:15:48.255382', NULL, 0, '2011-09-13 11:15:48.262828')
1289
+ AREL (0.1ms) INSERT INTO "roles" ("role_type", "created_at", "updated_at", "user_id") VALUES (4, '2011-09-13 11:15:48.266486', '2011-09-13 11:15:48.266486', 14)
1290
+ Processing by Manage::LocalesController#index as HTML
1291
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
1292
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1293
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1294
+ Completed 500 Internal Server Error in 23ms
1295
+ Processing by Manage::LocalesController#edit as HTML
1296
+ Parameters: {"id"=>:ru}
1297
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
1298
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1299
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1300
+ Completed 500 Internal Server Error in 18ms
1301
+ Processing by Manage::LocalesController#update as HTML
1302
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
1303
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
1304
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1305
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 14) LIMIT 1
1306
+ Completed 500 Internal Server Error in 14ms
1307
+ Processing by Manage::LocalesController#index as HTML
1308
+ Completed in 2ms
1309
+ Processing by Manage::LocalesController#edit as HTML
1310
+ Parameters: {"id"=>:ru}
1311
+ Completed in 0ms
1312
+ Processing by Manage::LocalesController#update as HTML
1313
+ Parameters: {"id"=>:ru}
1314
+ Completed in 0ms
1315
+ SQL (0.3ms) SELECT name
1316
+ FROM sqlite_master
1317
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1318
+ SQL (141.4ms) DELETE FROM "users";
1319
+ SQL (88.0ms) DELETE FROM "roles";
1320
+ SQL (88.3ms) DELETE FROM "structures";
1321
+ SQL (88.0ms) DELETE FROM "pages";
1322
+ SQL (77.3ms) DELETE FROM "assets";
1323
+ SQL (77.0ms) DELETE FROM "headers";
1324
+ SQL (99.3ms) DELETE FROM "widgets";
1325
+ SQL (0.7ms)  SELECT name
1326
+ FROM sqlite_master
1327
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1328
+ 
1329
+ SQL (0.3ms) SELECT name
1330
+ FROM sqlite_master
1331
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1332
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1333
+ Migrating to SunriseCreateUsers (20110801124809)
1334
+ Migrating to SunriseCreateRoles (20110801124909)
1335
+ Migrating to SunriseCreateStructures (20110801125009)
1336
+ Migrating to SunriseCreatePages (20110801125109)
1337
+ Migrating to SunriseCreateAssets (20110801125209)
1338
+ Migrating to SunriseCreateHeaders (20110801125309)
1339
+ SQL (0.3ms) SELECT name
1340
+ FROM sqlite_master
1341
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1342
+ SQL (160.8ms) DELETE FROM "users";
1343
+ SQL (132.2ms) DELETE FROM "roles";
1344
+ SQL (147.7ms) DELETE FROM "structures";
1345
+ SQL (503.4ms) DELETE FROM "pages";
1346
+ SQL (99.3ms) DELETE FROM "assets";
1347
+ SQL (110.2ms) DELETE FROM "headers";
1348
+ SQL (99.2ms) DELETE FROM "widgets";
1349
+ SQL (0.4ms) SELECT name
1350
+ FROM sqlite_master
1351
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1352
+ SQL (118.3ms) DELETE FROM "users";
1353
+ SQL (121.1ms) DELETE FROM "roles";
1354
+ SQL (154.5ms) DELETE FROM "structures";
1355
+ SQL (143.3ms) DELETE FROM "pages";
1356
+ SQL (110.3ms) DELETE FROM "assets";
1357
+ SQL (110.2ms) DELETE FROM "headers";
1358
+ SQL (99.3ms) DELETE FROM "widgets";
1359
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1360
+ AREL (0.3ms) INSERT INTO "users" ("confirmed_at", "current_sign_in_at", "confirmation_token", "updated_at", "reset_password_sent_at", "last_sign_in_ip", "created_at", "encrypted_password", "sign_in_count", "failed_attempts", "password_salt", "last_sign_in_at", "email", "remember_created_at", "reset_password_token", "name", "locked_at", "current_sign_in_ip", "confirmation_sent_at") VALUES ('2011-09-13 11:16:49.382084', NULL, NULL, '2011-09-13 11:16:49.386927', NULL, NULL, '2011-09-13 11:16:49.386927', '2147e66e3e0dd166dfb6856fbd65fc912736cdd414fd41816885b4a15c7935b3019ecaaaaf6a5509ea633cb49ce2739b352f6d5b0e4c7dd5d9cd3ca2ca327d99', 0, 0, 'cQjfkY2LQWVsNkxz7VMB', NULL, 'testing1@example.com', NULL, NULL, 'Admin', NULL, NULL, NULL)
1361
+ AREL (0.2ms) INSERT INTO "roles" ("user_id", "role_type", "created_at", "updated_at") VALUES (15, 4, '2011-09-13 11:16:49.390430', '2011-09-13 11:16:49.390430')
1362
+ Processing by Manage::LocalesController#index as HTML
1363
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
1364
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1365
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1366
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (2.9ms)
1367
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 15 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1368
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (12.3ms)
1369
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
1370
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
1371
+ Completed 200 OK in 55ms (Views: 47.8ms | ActiveRecord: 2113.3ms)
1372
+ Processing by Manage::LocalesController#edit as HTML
1373
+ Parameters: {"id"=>:ru}
1374
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
1375
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1376
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1377
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 15 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1378
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.4ms)
1379
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1380
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1381
+ Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 0.9ms)
1382
+ Processing by Manage::LocalesController#update as HTML
1383
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
1384
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
1385
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1386
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 15) LIMIT 1
1387
+ Redirected to http://test.host/manage/locales
1388
+ Completed 302 Found in 111ms
1389
+ Processing by Manage::LocalesController#update as HTML
1390
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
1391
+ Redirected to http://test.host/manage/locales
1392
+ Completed 302 Found in 17ms
1393
+ Processing by Manage::LocalesController#index as HTML
1394
+ Completed in 2ms
1395
+ Processing by Manage::LocalesController#edit as HTML
1396
+ Parameters: {"id"=>:ru}
1397
+ Completed in 0ms
1398
+ Processing by Manage::LocalesController#update as HTML
1399
+ Parameters: {"id"=>:ru}
1400
+ Completed in 0ms
1401
+ SQL (0.4ms) SELECT name
1402
+ FROM sqlite_master
1403
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1404
+ SQL (81.0ms) DELETE FROM "users";
1405
+ SQL (132.1ms) DELETE FROM "roles";
1406
+ SQL (121.4ms) DELETE FROM "structures";
1407
+ SQL (88.2ms) DELETE FROM "pages";
1408
+ SQL (88.1ms) DELETE FROM "assets";
1409
+ SQL (77.0ms) DELETE FROM "headers";
1410
+ SQL (132.4ms) DELETE FROM "widgets";
1411
+ SQL (0.7ms)  SELECT name
1412
+ FROM sqlite_master
1413
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1414
+ 
1415
+ SQL (0.3ms) SELECT name
1416
+ FROM sqlite_master
1417
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1418
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1419
+ Migrating to SunriseCreateUsers (20110801124809)
1420
+ Migrating to SunriseCreateRoles (20110801124909)
1421
+ Migrating to SunriseCreateStructures (20110801125009)
1422
+ Migrating to SunriseCreatePages (20110801125109)
1423
+ Migrating to SunriseCreateAssets (20110801125209)
1424
+ Migrating to SunriseCreateHeaders (20110801125309)
1425
+ SQL (0.3ms) SELECT name
1426
+ FROM sqlite_master
1427
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1428
+ SQL (145.9ms) DELETE FROM "users";
1429
+ SQL (88.1ms) DELETE FROM "roles";
1430
+ SQL (110.4ms) DELETE FROM "structures";
1431
+ SQL (87.9ms) DELETE FROM "pages";
1432
+ SQL (99.4ms) DELETE FROM "assets";
1433
+ SQL (88.0ms) DELETE FROM "headers";
1434
+ SQL (99.2ms) DELETE FROM "widgets";
1435
+ SQL (0.6ms) SELECT name
1436
+ FROM sqlite_master
1437
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1438
+ SQL (95.8ms) DELETE FROM "users";
1439
+ SQL (88.0ms) DELETE FROM "roles";
1440
+ SQL (319.9ms) DELETE FROM "structures";
1441
+ SQL (121.2ms) DELETE FROM "pages";
1442
+ SQL (185.2ms) DELETE FROM "assets";
1443
+ SQL (379.8ms) DELETE FROM "headers";
1444
+ SQL (152.2ms) DELETE FROM "widgets";
1445
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1446
+ AREL (0.3ms) INSERT INTO "users" ("name", "failed_attempts", "confirmed_at", "confirmation_token", "reset_password_token", "current_sign_in_ip", "reset_password_sent_at", "password_salt", "created_at", "encrypted_password", "email", "current_sign_in_at", "locked_at", "sign_in_count", "confirmation_sent_at", "updated_at", "remember_created_at", "last_sign_in_at", "last_sign_in_ip") VALUES ('Admin', 0, '2011-09-13 11:16:59.043353', NULL, NULL, NULL, NULL, 'pMYF4mxApaDvLtLcSxxW', '2011-09-13 11:16:59.048242', 'a19397b15eb2a058df7d7881871a614163a0ea0c4da4119ee30d9cf1a20cdba009597842910a4d48331973a8e40257a9566b805052ced86e90532c0656257f3e', 'testing1@example.com', NULL, NULL, 0, NULL, '2011-09-13 11:16:59.048242', NULL, NULL, NULL)
1447
+ AREL (0.1ms) INSERT INTO "roles" ("created_at", "role_type", "user_id", "updated_at") VALUES ('2011-09-13 11:16:59.051741', 4, 16, '2011-09-13 11:16:59.051741')
1448
+ Processing by Manage::LocalesController#index as HTML
1449
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
1450
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1451
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1452
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.0ms)
1453
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 16 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1454
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (16.0ms)
1455
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.7ms)
1456
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (1.1ms)
1457
+ Completed 200 OK in 63ms (Views: 54.8ms | ActiveRecord: 2064.7ms)
1458
+ Processing by Manage::LocalesController#edit as HTML
1459
+ Parameters: {"id"=>:en}
1460
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
1461
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1462
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1463
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 16 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1464
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.7ms)
1465
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1466
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1467
+ Completed 200 OK in 24ms (Views: 13.8ms | ActiveRecord: 1.0ms)
1468
+ Processing by Manage::LocalesController#update as HTML
1469
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
1470
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
1471
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1472
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 16) LIMIT 1
1473
+ Redirected to http://test.host/manage/locales
1474
+ Completed 302 Found in 114ms
1475
+ Processing by Manage::LocalesController#update as HTML
1476
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
1477
+ Redirected to http://test.host/manage/locales
1478
+ Completed 302 Found in 21ms
1479
+ Processing by Manage::LocalesController#index as HTML
1480
+ Completed in 3ms
1481
+ Processing by Manage::LocalesController#edit as HTML
1482
+ Parameters: {"id"=>:en}
1483
+ Completed in 0ms
1484
+ Processing by Manage::LocalesController#update as HTML
1485
+ Parameters: {"id"=>:en}
1486
+ Completed in 0ms
1487
+ SQL (0.4ms) SELECT name
1488
+ FROM sqlite_master
1489
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1490
+ SQL (134.6ms) DELETE FROM "users";
1491
+ SQL (88.1ms) DELETE FROM "roles";
1492
+ SQL (99.3ms) DELETE FROM "structures";
1493
+ SQL (99.1ms) DELETE FROM "pages";
1494
+ SQL (77.6ms) DELETE FROM "assets";
1495
+ SQL (87.7ms) DELETE FROM "headers";
1496
+ SQL (110.4ms) DELETE FROM "widgets";
1497
+ SQL (0.7ms)  SELECT name
1498
+ FROM sqlite_master
1499
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1500
+ 
1501
+ SQL (0.3ms) SELECT name
1502
+ FROM sqlite_master
1503
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1504
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1505
+ Migrating to SunriseCreateUsers (20110801124809)
1506
+ Migrating to SunriseCreateRoles (20110801124909)
1507
+ Migrating to SunriseCreateStructures (20110801125009)
1508
+ Migrating to SunriseCreatePages (20110801125109)
1509
+ Migrating to SunriseCreateAssets (20110801125209)
1510
+ Migrating to SunriseCreateHeaders (20110801125309)
1511
+ SQL (0.3ms) SELECT name
1512
+ FROM sqlite_master
1513
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1514
+ SQL (107.3ms) DELETE FROM "users";
1515
+ SQL (110.2ms) DELETE FROM "roles";
1516
+ SQL (110.3ms) DELETE FROM "structures";
1517
+ SQL (99.0ms) DELETE FROM "pages";
1518
+ SQL (110.5ms) DELETE FROM "assets";
1519
+ SQL (98.8ms) DELETE FROM "headers";
1520
+ SQL (99.3ms) DELETE FROM "widgets";
1521
+ SQL (0.4ms) SELECT name
1522
+ FROM sqlite_master
1523
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1524
+ SQL (96.2ms) DELETE FROM "users";
1525
+ SQL (99.1ms) DELETE FROM "roles";
1526
+ SQL (99.2ms) DELETE FROM "structures";
1527
+ SQL (231.6ms) DELETE FROM "pages";
1528
+ SQL (110.3ms) DELETE FROM "assets";
1529
+ SQL (110.1ms) DELETE FROM "headers";
1530
+ SQL (110.3ms) DELETE FROM "widgets";
1531
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1532
+ AREL (0.3ms) INSERT INTO "users" ("confirmed_at", "confirmation_token", "confirmation_sent_at", "updated_at", "encrypted_password", "remember_created_at", "reset_password_token", "failed_attempts", "locked_at", "created_at", "current_sign_in_at", "password_salt", "last_sign_in_at", "name", "email", "sign_in_count", "reset_password_sent_at", "current_sign_in_ip", "last_sign_in_ip") VALUES ('2011-09-13 11:17:13.168234', NULL, NULL, '2011-09-13 11:17:13.172972', 'cf7d12579756afaeb0f665ec42790bd09a04e27ceb18f80d1766b723326487cc1f1243d567ae2d9e5bf0a8966ff92ae1a3102395d2b46b23c44bb7a5fef8bf29', NULL, NULL, 0, NULL, '2011-09-13 11:17:13.172972', NULL, 'ESEw7vkPiU6fssxUnc5Q', NULL, 'Admin', 'testing1@example.com', 0, NULL, NULL, NULL)
1533
+ AREL (0.1ms) INSERT INTO "roles" ("role_type", "user_id", "updated_at", "created_at") VALUES (4, 17, '2011-09-13 11:17:13.176422', '2011-09-13 11:17:13.176422')
1534
+ Processing by Manage::LocalesController#index as HTML
1535
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
1536
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1537
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1538
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.3ms)
1539
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 17 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1540
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (15.0ms)
1541
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.4ms)
1542
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
1543
+ Completed 200 OK in 58ms (Views: 51.0ms | ActiveRecord: 1595.4ms)
1544
+ Processing by Manage::LocalesController#edit as HTML
1545
+ Parameters: {"id"=>:en}
1546
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
1547
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1548
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1549
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 17 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1550
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (4.4ms)
1551
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1552
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1553
+ Completed 200 OK in 20ms (Views: 13.1ms | ActiveRecord: 0.9ms)
1554
+ Processing by Manage::LocalesController#update as HTML
1555
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
1556
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
1557
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1558
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 17) LIMIT 1
1559
+ Redirected to http://test.host/manage/locales
1560
+ Completed 302 Found in 115ms
1561
+ Processing by Manage::LocalesController#update as HTML
1562
+ Parameters: {"text"=>"en:\n title: 'Hello World'", "id"=>:en}
1563
+ Redirected to http://test.host/manage/locales
1564
+ Completed 302 Found in 17ms
1565
+ Processing by Manage::LocalesController#index as HTML
1566
+ Completed in 2ms
1567
+ Processing by Manage::LocalesController#edit as HTML
1568
+ Parameters: {"id"=>:en}
1569
+ Completed in 0ms
1570
+ Processing by Manage::LocalesController#update as HTML
1571
+ Parameters: {"id"=>:en}
1572
+ Completed in 0ms
1573
+ SQL (0.3ms) SELECT name
1574
+ FROM sqlite_master
1575
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1576
+ SQL (65.8ms) DELETE FROM "users";
1577
+ SQL (132.2ms) DELETE FROM "roles";
1578
+ SQL (143.4ms) DELETE FROM "structures";
1579
+ SQL (143.3ms) DELETE FROM "pages";
1580
+ SQL (132.4ms) DELETE FROM "assets";
1581
+ SQL (176.4ms) DELETE FROM "headers";
1582
+ SQL (99.1ms) DELETE FROM "widgets";
1583
+ SQL (0.7ms)  SELECT name
1584
+ FROM sqlite_master
1585
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1586
+ 
1587
+ SQL (0.3ms) SELECT name
1588
+ FROM sqlite_master
1589
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1590
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1591
+ Migrating to SunriseCreateUsers (20110801124809)
1592
+ Migrating to SunriseCreateRoles (20110801124909)
1593
+ Migrating to SunriseCreateStructures (20110801125009)
1594
+ Migrating to SunriseCreatePages (20110801125109)
1595
+ Migrating to SunriseCreateAssets (20110801125209)
1596
+ Migrating to SunriseCreateHeaders (20110801125309)
1597
+ SQL (0.3ms) SELECT name
1598
+ FROM sqlite_master
1599
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1600
+ SQL (160.7ms) DELETE FROM "users";
1601
+ SQL (98.9ms) DELETE FROM "roles";
1602
+ SQL (77.2ms) DELETE FROM "structures";
1603
+ SQL (77.0ms) DELETE FROM "pages";
1604
+ SQL (88.2ms) DELETE FROM "assets";
1605
+ SQL (99.1ms) DELETE FROM "headers";
1606
+ SQL (77.1ms) DELETE FROM "widgets";
1607
+ SQL (0.4ms) SELECT name
1608
+ FROM sqlite_master
1609
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1610
+ SQL (84.8ms) DELETE FROM "users";
1611
+ SQL (88.0ms) DELETE FROM "roles";
1612
+ SQL (77.1ms) DELETE FROM "structures";
1613
+ SQL (77.1ms) DELETE FROM "pages";
1614
+ SQL (66.1ms) DELETE FROM "assets";
1615
+ SQL (65.9ms) DELETE FROM "headers";
1616
+ SQL (66.1ms) DELETE FROM "widgets";
1617
+ SQL (0.4ms) SELECT name
1618
+ FROM sqlite_master
1619
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1620
+ SQL (85.2ms) DELETE FROM "users";
1621
+ SQL (77.0ms) DELETE FROM "roles";
1622
+ SQL (88.3ms) DELETE FROM "structures";
1623
+ SQL (76.9ms) DELETE FROM "pages";
1624
+ SQL (99.4ms) DELETE FROM "assets";
1625
+ SQL (77.0ms) DELETE FROM "headers";
1626
+ SQL (77.2ms) DELETE FROM "widgets";
1627
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1628
+ AREL (0.2ms) INSERT INTO "users" ("confirmed_at", "current_sign_in_at", "confirmation_token", "reset_password_token", "password_salt", "reset_password_sent_at", "remember_created_at", "last_sign_in_ip", "last_sign_in_at", "updated_at", "locked_at", "failed_attempts", "current_sign_in_ip", "sign_in_count", "confirmation_sent_at", "name", "created_at", "encrypted_password", "email") VALUES ('2011-09-13 14:26:02.862115', NULL, NULL, NULL, '8hp1qs9abPuk9haUXqmq', NULL, NULL, NULL, NULL, '2011-09-13 14:26:02.866713', NULL, 0, NULL, 0, NULL, 'Admin', '2011-09-13 14:26:02.866713', '1a370f34ebaae575bbf04b6a7a88661e84e0cc3d8606d72e2d8e2733ed0b42cf12b3237bec4860caeab1d9aee507af9b1374a63dd89e78eae0163ce18ccbf12b', 'testing1@example.com')
1629
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-09-13 14:26:02.870152', '2011-09-13 14:26:02.870152', 4, 18)
1630
+ Processing by Manage::LocalesController#index as HTML
1631
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
1632
+ Role Load (0.3ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1633
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1634
+ Rendered /var/www/plugins/cms/sunrise-locales/app/views/manage/locales/_locale.html.erb (3.2ms)
1635
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 18 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1636
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (102.6ms)
1637
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.5ms)
1638
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
1639
+ Completed 200 OK in 145ms (Views: 137.8ms | ActiveRecord: 1788.2ms)
1640
+ Processing by Manage::LocalesController#edit as HTML
1641
+ Parameters: {"id"=>:ru}
1642
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
1643
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1644
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1645
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 18 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1646
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_head.html.erb (5.0ms)
1647
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/shared/_notice.html.erb (0.1ms)
1648
+ Rendered /home/superp/.rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.2.0/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1649
+ Completed 200 OK in 21ms (Views: 14.2ms | ActiveRecord: 0.9ms)
1650
+ Processing by Manage::LocalesController#update as HTML
1651
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
1652
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
1653
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1654
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 18) LIMIT 1
1655
+ Redirected to http://test.host/manage/locales
1656
+ Completed 302 Found in 22ms
1657
+ Processing by Manage::LocalesController#update as HTML
1658
+ Parameters: {"text"=>"ru:\n title: 'Hello World'", "id"=>:ru}
1659
+ Redirected to http://test.host/manage/locales
1660
+ Completed 302 Found in 16ms
1661
+ Processing by Manage::LocalesController#index as HTML
1662
+ Completed in 2ms
1663
+ Processing by Manage::LocalesController#edit as HTML
1664
+ Parameters: {"id"=>:ru}
1665
+ Completed in 0ms
1666
+ Processing by Manage::LocalesController#update as HTML
1667
+ Parameters: {"id"=>:ru}
1668
+ Completed in 0ms
1669
+ SQL (0.3ms) SELECT name
1670
+ FROM sqlite_master
1671
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1672
+ SQL (83.1ms) DELETE FROM "users";
1673
+ SQL (76.9ms) DELETE FROM "roles";
1674
+ SQL (671.3ms) DELETE FROM "structures";
1675
+ SQL (134.4ms) DELETE FROM "pages";
1676
+ SQL (77.2ms) DELETE FROM "assets";
1677
+ SQL (77.1ms) DELETE FROM "headers";
1678
+ SQL (88.2ms) DELETE FROM "widgets";