stackoverfeeds 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +121 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/javascripts/stackoverfeeds/application.js +13 -0
  6. data/app/assets/stylesheets/stackoverfeeds/application.css +13 -0
  7. data/app/controllers/stackoverfeeds/application_controller.rb +4 -0
  8. data/app/controllers/stackoverfeeds/so_feeds_controller.rb +10 -0
  9. data/app/helpers/stackoverfeeds/application_helper.rb +4 -0
  10. data/app/helpers/stackoverfeeds/stackoverfeeds_helper.rb +8 -0
  11. data/app/models/stackoverfeeds/so_feed.rb +9 -0
  12. data/app/views/stackoverfeeds/_stackoverflow_feeds.html.erb +28 -0
  13. data/app/views/stackoverfeeds/application.html.erb +14 -0
  14. data/config/routes.rb +3 -0
  15. data/db/migrate/20140402191249_create_stackoverfeeds_so_feeds.rb +14 -0
  16. data/lib/generators/stackoverfeeds/install/install_generator.rb +74 -0
  17. data/lib/generators/stackoverfeeds/install/templates/application.css +7 -0
  18. data/lib/generators/stackoverfeeds/install/templates/application.js +16 -0
  19. data/lib/generators/stackoverfeeds/install/templates/config.yml +14 -0
  20. data/lib/generators/stackoverfeeds/install/templates/feeds.css +791 -0
  21. data/lib/generators/stackoverfeeds/install/templates/feeds.js +21 -0
  22. data/lib/generators/stackoverfeeds/install/templates/schedule.rb +7 -0
  23. data/lib/generators/stackoverfeeds/install/templates/sprites.png +0 -0
  24. data/lib/stackoverfeeds.rb +4 -0
  25. data/lib/stackoverfeeds/engine.rb +11 -0
  26. data/lib/stackoverfeeds/stackoverfeeds_handler.rb +34 -0
  27. data/lib/stackoverfeeds/version.rb +3 -0
  28. data/lib/tasks/stackoverfeeds_tasks.rake +14 -0
  29. data/spec/dummy/README.rdoc +28 -0
  30. data/spec/dummy/Rakefile +6 -0
  31. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  32. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  33. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/spec/dummy/bin/bundle +3 -0
  37. data/spec/dummy/bin/rails +4 -0
  38. data/spec/dummy/bin/rake +4 -0
  39. data/spec/dummy/config.ru +4 -0
  40. data/spec/dummy/config/application.rb +28 -0
  41. data/spec/dummy/config/boot.rb +5 -0
  42. data/spec/dummy/config/database.yml +25 -0
  43. data/spec/dummy/config/environment.rb +5 -0
  44. data/spec/dummy/config/environments/development.rb +29 -0
  45. data/spec/dummy/config/environments/production.rb +80 -0
  46. data/spec/dummy/config/environments/test.rb +36 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  49. data/spec/dummy/config/initializers/inflections.rb +16 -0
  50. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  51. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  52. data/spec/dummy/config/initializers/session_store.rb +3 -0
  53. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/spec/dummy/config/locales/en.yml +23 -0
  55. data/spec/dummy/config/routes.rb +4 -0
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/20140403144550_create_stackoverfeeds_so_feeds.stackoverfeeds.rb +15 -0
  58. data/spec/dummy/db/schema.rb +27 -0
  59. data/spec/dummy/db/test.sqlite3 +0 -0
  60. data/spec/dummy/log/development.log +19 -0
  61. data/spec/dummy/log/test.log +772 -0
  62. data/spec/dummy/public/404.html +58 -0
  63. data/spec/dummy/public/422.html +58 -0
  64. data/spec/dummy/public/500.html +57 -0
  65. data/spec/dummy/public/favicon.ico +0 -0
  66. data/spec/dummy/spec/helpers/stackoverfeeds_spec.rb +20 -0
  67. data/spec/dummy/spec/lib/stackoverfeeds_handler_spec.rb +17 -0
  68. data/spec/dummy/spec/models/so_feed_spec.rb +32 -0
  69. data/spec/dummy/spec/resources/member.atom +243 -0
  70. data/spec/dummy/spec/spec_helper.rb +18 -0
  71. data/spec/dummy/spec/support/blueprints.rb +10 -0
  72. metadata +256 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '0a28fba499814c3fc6bce931ff469c09b382c13762e7cbe0d0cf4449e329a92410cd08071044766466cf77e2486a0ac2c1e5c2cfeb2a3367aa85172a70b88e4b'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Stackoverfeeds::Engine => "/stackoverfeeds"
4
+ end
Binary file
@@ -0,0 +1,15 @@
1
+ # This migration comes from stackoverfeeds (originally 20140402191249)
2
+ class CreateStackoverfeedsSoFeeds < ActiveRecord::Migration
3
+ def change
4
+ create_table :stackoverfeeds_so_feeds do |t|
5
+ t.string :author
6
+ t.string :entry_id
7
+ t.text :summary
8
+ t.string :title
9
+ t.datetime :updated
10
+ t.datetime :published
11
+
12
+ t.timestamps
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140403144550) do
15
+
16
+ create_table "stackoverfeeds_so_feeds", force: true do |t|
17
+ t.string "author"
18
+ t.string "entry_id"
19
+ t.text "summary"
20
+ t.string "title"
21
+ t.datetime "updated"
22
+ t.datetime "published"
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ end
Binary file
@@ -0,0 +1,19 @@
1
+  (342.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (299.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+  (378.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (355.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.3ms) SELECT version FROM "schema_migrations"
7
+  (390.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
8
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+ Migrating to CreateStackoverfeedsSoFeeds (20140403144550)
10
+  (0.1ms) begin transaction
11
+  (0.5ms) CREATE TABLE "stackoverfeeds_so_feeds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author" varchar(255), "entry_id" varchar(255), "summary" text, "title" varchar(255), "updated" datetime, "published" datetime, "created_at" datetime, "updated_at" datetime) 
12
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140403144550"]]
13
+  (446.6ms) commit transaction
14
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
+  (330.3ms) CREATE TABLE "stackoverfeeds_so_feeds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author" varchar(255), "entry_id" varchar(255), "summary" text, "title" varchar(255), "updated" datetime, "published" datetime, "created_at" datetime, "updated_at" datetime) 
16
+  (353.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
17
+  (367.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.1ms) SELECT version FROM "schema_migrations"
19
+  (366.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140403144550')
@@ -0,0 +1,772 @@
1
+  (0.3ms) begin transaction
2
+  (0.3ms) rollback transaction
3
+  (0.3ms) begin transaction
4
+  (0.5ms) rollback transaction
5
+  (0.4ms) begin transaction
6
+  (0.4ms) rollback transaction
7
+  (0.4ms) begin transaction
8
+  (0.5ms) rollback transaction
9
+  (0.4ms) begin transaction
10
+  (0.4ms) rollback transaction
11
+  (0.4ms) begin transaction
12
+  (0.2ms) rollback transaction
13
+  (0.4ms) begin transaction
14
+  (0.4ms) rollback transaction
15
+  (0.4ms) begin transaction
16
+  (0.4ms) rollback transaction
17
+  (0.4ms) begin transaction
18
+  (0.5ms) rollback transaction
19
+  (0.4ms) begin transaction
20
+  (0.1ms) rollback transaction
21
+  (0.4ms) begin transaction
22
+  (0.1ms) rollback transaction
23
+  (0.4ms) begin transaction
24
+  (0.1ms) rollback transaction
25
+  (0.4ms) begin transaction
26
+  (0.1ms) rollback transaction
27
+  (0.5ms) begin transaction
28
+  (0.2ms) rollback transaction
29
+  (0.4ms) begin transaction
30
+  (0.2ms) rollback transaction
31
+  (0.4ms) begin transaction
32
+  (0.1ms) rollback transaction
33
+  (0.4ms) begin transaction
34
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
35
+ SQLite3::SQLException: no such table: stackoverfeeds_so_feeds: SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
36
+  (0.1ms) rollback transaction
37
+  (0.4ms) begin transaction
38
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
39
+ SQLite3::SQLException: no such table: stackoverfeeds_so_feeds: SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
40
+  (0.1ms) rollback transaction
41
+  (0.4ms) begin transaction
42
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
43
+  (0.1ms) SAVEPOINT active_record_1
44
+ SQL (35.7ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
45
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
47
+  (0.1ms) SAVEPOINT active_record_1
48
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
49
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
51
+  (0.1ms) SAVEPOINT active_record_1
52
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
53
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
55
+  (0.1ms) SAVEPOINT active_record_1
56
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
57
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
59
+  (0.1ms) SAVEPOINT active_record_1
60
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
61
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
63
+  (0.1ms) SAVEPOINT active_record_1
64
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
65
+  (0.1ms) RELEASE SAVEPOINT active_record_1
66
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
67
+  (0.1ms) SAVEPOINT active_record_1
68
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
69
+  (0.1ms) RELEASE SAVEPOINT active_record_1
70
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
71
+  (0.1ms) SAVEPOINT active_record_1
72
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
73
+  (0.1ms) RELEASE SAVEPOINT active_record_1
74
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
75
+  (0.1ms) SAVEPOINT active_record_1
76
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
77
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
79
+  (0.1ms) SAVEPOINT active_record_1
80
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
81
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
83
+  (0.1ms) SAVEPOINT active_record_1
84
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:16 UTC +00:00]]
85
+  (0.1ms) RELEASE SAVEPOINT active_record_1
86
+  (0.2ms) rollback transaction
87
+  (0.4ms) begin transaction
88
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
89
+  (0.1ms) SAVEPOINT active_record_1
90
+ SQL (6.1ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
91
+  (0.1ms) RELEASE SAVEPOINT active_record_1
92
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
93
+  (0.1ms) SAVEPOINT active_record_1
94
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
95
+  (0.1ms) RELEASE SAVEPOINT active_record_1
96
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
97
+  (0.1ms) SAVEPOINT active_record_1
98
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
99
+  (0.1ms) RELEASE SAVEPOINT active_record_1
100
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
101
+  (0.1ms) SAVEPOINT active_record_1
102
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
104
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
105
+  (0.1ms) SAVEPOINT active_record_1
106
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
109
+  (0.1ms) SAVEPOINT active_record_1
110
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
112
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
113
+  (0.1ms) SAVEPOINT active_record_1
114
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
116
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
117
+  (0.1ms) SAVEPOINT active_record_1
118
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
120
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
121
+  (0.1ms) SAVEPOINT active_record_1
122
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
124
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
125
+  (0.1ms) SAVEPOINT active_record_1
126
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
128
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
129
+  (0.1ms) SAVEPOINT active_record_1
130
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:46:59 UTC +00:00]]
131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132
+  (0.3ms) rollback transaction
133
+  (0.4ms) begin transaction
134
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
135
+  (0.1ms) SAVEPOINT active_record_1
136
+ SQL (6.1ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
139
+  (0.1ms) SAVEPOINT active_record_1
140
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
146
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
147
+  (0.1ms) SAVEPOINT active_record_1
148
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
150
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
151
+  (0.1ms) SAVEPOINT active_record_1
152
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
154
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ SQL (0.6ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
158
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
159
+  (0.1ms) SAVEPOINT active_record_1
160
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
162
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
163
+  (0.1ms) SAVEPOINT active_record_1
164
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
166
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
167
+  (0.1ms) SAVEPOINT active_record_1
168
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
170
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
171
+  (0.1ms) SAVEPOINT active_record_1
172
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
174
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
175
+  (0.1ms) SAVEPOINT active_record_1
176
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:48:35 UTC +00:00]]
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (0.3ms) rollback transaction
179
+  (0.4ms) begin transaction
180
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
181
+  (0.1ms) SAVEPOINT active_record_1
182
+ SQL (6.1ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
184
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
185
+  (0.1ms) SAVEPOINT active_record_1
186
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
188
+ Stackoverfeeds::SoFeed Load (0.3ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
189
+  (0.1ms) SAVEPOINT active_record_1
190
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
192
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
193
+  (0.1ms) SAVEPOINT active_record_1
194
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
196
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
197
+  (0.1ms) SAVEPOINT active_record_1
198
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
200
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
201
+  (0.1ms) SAVEPOINT active_record_1
202
+ SQL (0.6ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
204
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
205
+  (0.1ms) SAVEPOINT active_record_1
206
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
209
+  (0.1ms) SAVEPOINT active_record_1
210
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
213
+  (0.1ms) SAVEPOINT active_record_1
214
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
216
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
217
+  (0.1ms) SAVEPOINT active_record_1
218
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
220
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
221
+  (0.1ms) SAVEPOINT active_record_1
222
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:50:01 UTC +00:00]]
223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
224
+ Stackoverfeeds::SoFeed Load (0.5ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 20
225
+ Rendered /home/vairix/projects/stackoverfeeds/app/views/stackoverfeeds/_stackoverflow_feeds.html.erb (7.5ms)
226
+  (0.4ms) rollback transaction
227
+  (0.4ms) begin transaction
228
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
229
+  (0.2ms) SAVEPOINT active_record_1
230
+ SQL (6.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
232
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
233
+  (0.1ms) SAVEPOINT active_record_1
234
+ SQL (0.7ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
236
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
237
+  (0.1ms) SAVEPOINT active_record_1
238
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
241
+  (0.1ms) SAVEPOINT active_record_1
242
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
244
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
245
+  (0.1ms) SAVEPOINT active_record_1
246
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
248
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
249
+  (0.1ms) SAVEPOINT active_record_1
250
+ SQL (0.6ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
253
+  (0.1ms) SAVEPOINT active_record_1
254
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
256
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
257
+  (0.1ms) SAVEPOINT active_record_1
258
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
260
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
261
+  (0.1ms) SAVEPOINT active_record_1
262
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
264
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
265
+  (0.1ms) SAVEPOINT active_record_1
266
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
268
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
269
+  (0.1ms) SAVEPOINT active_record_1
270
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:51:54 UTC +00:00]]
271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
272
+ Stackoverfeeds::SoFeed Load (0.4ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 20
273
+ Rendered /home/vairix/projects/stackoverfeeds/app/views/stackoverfeeds/_stackoverflow_feeds.html.erb (6.6ms)
274
+  (0.2ms) rollback transaction
275
+  (0.4ms) begin transaction
276
+ Stackoverfeeds::SoFeed Load (0.3ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
277
+  (0.1ms) SAVEPOINT active_record_1
278
+ SQL (6.1ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
280
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
281
+  (0.1ms) SAVEPOINT active_record_1
282
+ SQL (0.6ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
284
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
285
+  (0.1ms) SAVEPOINT active_record_1
286
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
288
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
289
+  (0.1ms) SAVEPOINT active_record_1
290
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
292
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
293
+  (0.1ms) SAVEPOINT active_record_1
294
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
296
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
297
+  (0.1ms) SAVEPOINT active_record_1
298
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
301
+  (0.1ms) SAVEPOINT active_record_1
302
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
304
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
305
+  (0.1ms) SAVEPOINT active_record_1
306
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
308
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
309
+  (0.1ms) SAVEPOINT active_record_1
310
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
312
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
313
+  (0.1ms) SAVEPOINT active_record_1
314
+ SQL (0.5ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
316
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
317
+  (0.1ms) SAVEPOINT active_record_1
318
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 14:59:44 UTC +00:00]]
319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
320
+ Stackoverfeeds::SoFeed Load (0.4ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 20
321
+ Rendered /home/vairix/projects/stackoverfeeds/app/views/stackoverfeeds/_stackoverflow_feeds.html.erb (6.5ms)
322
+  (0.3ms) rollback transaction
323
+  (0.4ms) begin transaction
324
+  (0.1ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
325
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
326
+  (0.1ms) SAVEPOINT active_record_1
327
+ SQL (5.9ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
329
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
330
+  (0.0ms) SAVEPOINT active_record_1
331
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
333
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
334
+  (0.0ms) SAVEPOINT active_record_1
335
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
337
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
338
+  (0.0ms) SAVEPOINT active_record_1
339
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
342
+  (0.0ms) SAVEPOINT active_record_1
343
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
345
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
346
+  (0.0ms) SAVEPOINT active_record_1
347
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
349
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
350
+  (0.0ms) SAVEPOINT active_record_1
351
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
353
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
354
+  (0.0ms) SAVEPOINT active_record_1
355
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
357
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
358
+  (0.0ms) SAVEPOINT active_record_1
359
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
361
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
362
+  (0.0ms) SAVEPOINT active_record_1
363
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
365
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
366
+  (0.0ms) SAVEPOINT active_record_1
367
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:03:33 UTC +00:00]]
368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
369
+  (0.1ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
370
+  (0.1ms) rollback transaction
371
+  (0.4ms) begin transaction
372
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
373
+  (0.1ms) SAVEPOINT active_record_1
374
+ SQL (32.8ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
376
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
377
+  (0.1ms) SAVEPOINT active_record_1
378
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
380
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
381
+  (0.0ms) SAVEPOINT active_record_1
382
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
384
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
385
+  (0.0ms) SAVEPOINT active_record_1
386
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
389
+  (0.0ms) SAVEPOINT active_record_1
390
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
392
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
393
+  (0.0ms) SAVEPOINT active_record_1
394
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
396
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
397
+  (0.0ms) SAVEPOINT active_record_1
398
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
400
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
401
+  (0.1ms) SAVEPOINT active_record_1
402
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
404
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
405
+  (0.0ms) SAVEPOINT active_record_1
406
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
408
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
409
+  (0.0ms) SAVEPOINT active_record_1
410
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
412
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:04:09 UTC +00:00]]
415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
416
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
417
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
418
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
419
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
420
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
421
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
422
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
423
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
424
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
425
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
426
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
427
+  (0.5ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
428
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
429
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
430
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
431
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
432
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
433
+ Stackoverfeeds::SoFeed Load (0.3ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
434
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
435
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
436
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
437
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
438
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
439
+  (0.1ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
440
+  (0.2ms) rollback transaction
441
+  (0.3ms) begin transaction
442
+  (0.1ms) rollback transaction
443
+  (0.1ms) begin transaction
444
+  (0.1ms) rollback transaction
445
+  (0.1ms) begin transaction
446
+  (0.1ms) rollback transaction
447
+  (0.1ms) begin transaction
448
+  (0.1ms) rollback transaction
449
+  (0.1ms) begin transaction
450
+  (0.1ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+  (0.1ms) rollback transaction
453
+  (0.1ms) begin transaction
454
+  (0.1ms) SAVEPOINT active_record_1
455
+ SQL (6.0ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
457
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 1]]
458
+  (0.1ms) SAVEPOINT active_record_1
459
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
461
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 2]]
462
+  (0.0ms) SAVEPOINT active_record_1
463
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
465
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 3]]
466
+  (0.1ms) SAVEPOINT active_record_1
467
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
469
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 4]]
470
+  (0.0ms) SAVEPOINT active_record_1
471
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
473
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 5]]
474
+  (0.0ms) SAVEPOINT active_record_1
475
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 6]]
478
+  (0.1ms) SAVEPOINT active_record_1
479
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
481
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 7]]
482
+  (0.0ms) SAVEPOINT active_record_1
483
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
485
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 8]]
486
+  (0.0ms) SAVEPOINT active_record_1
487
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
489
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 9]]
490
+  (0.0ms) SAVEPOINT active_record_1
491
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
493
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 10]]
494
+  (0.0ms) SAVEPOINT active_record_1
495
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
497
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 11]]
498
+  (0.0ms) SAVEPOINT active_record_1
499
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
501
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 12]]
502
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 5
503
+  (0.2ms) rollback transaction
504
+  (0.1ms) begin transaction
505
+  (0.1ms) SAVEPOINT active_record_1
506
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
508
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 1]]
509
+  (0.0ms) SAVEPOINT active_record_1
510
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
512
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 2]]
513
+  (0.0ms) SAVEPOINT active_record_1
514
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
516
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 3]]
517
+  (0.0ms) SAVEPOINT active_record_1
518
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
520
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 4]]
521
+  (0.0ms) SAVEPOINT active_record_1
522
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
524
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 5]]
525
+  (0.0ms) SAVEPOINT active_record_1
526
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
528
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 6]]
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
532
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 7]]
533
+  (0.0ms) SAVEPOINT active_record_1
534
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
536
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 8]]
537
+  (0.1ms) SAVEPOINT active_record_1
538
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
540
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 9]]
541
+  (0.0ms) SAVEPOINT active_record_1
542
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
544
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 10]]
545
+  (0.0ms) SAVEPOINT active_record_1
546
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
548
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 11]]
549
+  (0.0ms) SAVEPOINT active_record_1
550
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
552
+ Stackoverfeeds::SoFeed Load (0.0ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 12]]
553
+  (0.0ms) SAVEPOINT active_record_1
554
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Sat, 05 Apr 2014 15:09:58 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:09:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:09:58 UTC +00:00]]
555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
556
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 13]]
557
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 1
558
+  (0.1ms) rollback transaction
559
+  (0.4ms) begin transaction
560
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
561
+  (0.1ms) SAVEPOINT active_record_1
562
+ SQL (5.7ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
564
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
565
+  (0.1ms) SAVEPOINT active_record_1
566
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
568
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
569
+  (0.1ms) SAVEPOINT active_record_1
570
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
572
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
573
+  (0.0ms) SAVEPOINT active_record_1
574
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
577
+  (0.0ms) SAVEPOINT active_record_1
578
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
580
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
581
+  (0.0ms) SAVEPOINT active_record_1
582
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
584
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
585
+  (0.0ms) SAVEPOINT active_record_1
586
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
588
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
589
+  (0.0ms) SAVEPOINT active_record_1
590
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
592
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
593
+  (0.0ms) SAVEPOINT active_record_1
594
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
597
+  (0.0ms) SAVEPOINT active_record_1
598
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
600
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
601
+  (0.0ms) SAVEPOINT active_record_1
602
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
604
+ Stackoverfeeds::SoFeed Load (0.3ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 20
605
+ Rendered /home/vairix/projects/stackoverfeeds/app/views/stackoverfeeds/_stackoverflow_feeds.html.erb (32.3ms)
606
+  (0.2ms) rollback transaction
607
+  (0.1ms) begin transaction
608
+  (0.1ms) rollback transaction
609
+  (0.1ms) begin transaction
610
+  (0.1ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+  (0.1ms) rollback transaction
613
+  (0.1ms) begin transaction
614
+  (0.1ms) rollback transaction
615
+  (0.1ms) begin transaction
616
+  (0.1ms) rollback transaction
617
+  (0.1ms) begin transaction
618
+  (0.1ms) rollback transaction
619
+  (0.1ms) begin transaction
620
+  (0.1ms) SAVEPOINT active_record_1
621
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
623
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 1]]
624
+  (0.0ms) SAVEPOINT active_record_1
625
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
627
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 2]]
628
+  (0.0ms) SAVEPOINT active_record_1
629
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
631
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 3]]
632
+  (0.0ms) SAVEPOINT active_record_1
633
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
635
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 4]]
636
+  (0.0ms) SAVEPOINT active_record_1
637
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
639
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 5]]
640
+  (0.0ms) SAVEPOINT active_record_1
641
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
643
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 6]]
644
+  (0.0ms) SAVEPOINT active_record_1
645
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 7]]
648
+  (0.0ms) SAVEPOINT active_record_1
649
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
651
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 8]]
652
+  (0.0ms) SAVEPOINT active_record_1
653
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
655
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 9]]
656
+  (0.1ms) SAVEPOINT active_record_1
657
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
659
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 10]]
660
+  (0.1ms) SAVEPOINT active_record_1
661
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
663
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 11]]
664
+  (0.0ms) SAVEPOINT active_record_1
665
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
667
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 12]]
668
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 5
669
+  (0.2ms) rollback transaction
670
+  (0.1ms) begin transaction
671
+  (0.1ms) SAVEPOINT active_record_1
672
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
674
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 1]]
675
+  (0.0ms) SAVEPOINT active_record_1
676
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
678
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 2]]
679
+  (0.0ms) SAVEPOINT active_record_1
680
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 3]]
683
+  (0.0ms) SAVEPOINT active_record_1
684
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
686
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 4]]
687
+  (0.0ms) SAVEPOINT active_record_1
688
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
690
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 5]]
691
+  (0.0ms) SAVEPOINT active_record_1
692
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
694
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 6]]
695
+  (0.1ms) SAVEPOINT active_record_1
696
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
698
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 7]]
699
+  (0.0ms) SAVEPOINT active_record_1
700
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
702
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 8]]
703
+  (0.0ms) SAVEPOINT active_record_1
704
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
706
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 9]]
707
+  (0.0ms) SAVEPOINT active_record_1
708
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
710
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 10]]
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
714
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 11]]
715
+  (0.0ms) SAVEPOINT active_record_1
716
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
718
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 12]]
719
+  (0.1ms) SAVEPOINT active_record_1
720
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "vairix-mvillero"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "tag:github.com,2008:CreateEvent/1946558445"], ["published", Sat, 05 Apr 2014 15:10:40 UTC +00:00], ["summary", "<div> <span> </span> </div>"], ["title", "vairix-mvillero created branch mvillero at vairix-garbeletche/vairix_test"], ["updated", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
722
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."id" = ? LIMIT 1 [["id", 13]]
723
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" ORDER BY published DESC LIMIT 1
724
+  (0.1ms) rollback transaction
725
+  (0.1ms) begin transaction
726
+  (0.1ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
727
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22795691/-/22797446#22797446' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
728
+  (0.1ms) SAVEPOINT active_record_1
729
+ SQL (0.4ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22795691/-/22797446#22797446"], ["published", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["summary", "<p>You can do something like this:</p>\n\n<pre><code>Song.joins(:albums).where('albums.released_on &gt;= ?', from).where('albums.rating &gt; ?', rating).where('albums.genre = ?', genres)\n</code></pre>\n\n<p>It makes only one query.</p>\n"], ["title", "Answer by VAIRIX for Joining a table and a filtered table in ActiveRecord"], ["updated", Tue, 01 Apr 2014 21:41:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
731
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
732
+  (0.0ms) SAVEPOINT active_record_1
733
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22796203/in-rails-4-using-ajax-how-do-i-update-a-particular-div-on-success/22796990#22796990"], ["published", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["summary", "<p>This should work for you:</p>\n\n<pre><code>html = render_to_string(partial: 'images', locals: {user: user})\n</code></pre>\n"], ["title", "Answer by VAIRIX for In Rails 4 using AJAX, how do I update a particular div on success?"], ["updated", Tue, 01 Apr 2014 21:13:17 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
735
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/-/22762973#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
736
+  (0.0ms) SAVEPOINT active_record_1
737
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/-/22762973#22762973"], ["published", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["summary", "<p>A possible solution that implies more than one line, is using scope to make it cleaner, you will have two extra lines of code, but I found it more readable:</p>\n\n<pre><code>scope :path =&gt; '/', :controller =&gt; :static_pages do\n get 'index' =&gt; :index, :as =&gt; 'index'\n get 'home' =&gt; :index, :as =&gt; 'home'\nend\n</code></pre>\n\n<p>That way you make explicit which controller to use for all routes + the path (first part of it).</p>\n"], ["title", "Answer by VAIRIX for How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 13:34:39 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
739
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22762135/-/22762326#22762326' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
740
+  (0.0ms) SAVEPOINT active_record_1
741
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22762135/-/22762326#22762326"], ["published", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["summary", "<p>What you should expect from the assign after calling your controller, is to have the value that the controller sets to the instance variable. You could see it like using @category. So the category created with FactoryGirl is not equals to the one created by your controller (in this case seems your action is returning nil value in your instance variable)</p>\n"], ["title", "Answer by VAIRIX for I don't really know what RSPEC assigns do, and my tests are failing"], ["updated", Mon, 31 Mar 2014 13:05:05 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22720472/-/22720669#22720669' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
744
+  (0.0ms) SAVEPOINT active_record_1
745
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22720472/-/22720669#22720669"], ["published", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["summary", "<p>This should be work!</p>\n\n<pre><code>Foo.joins(:bazs).where(bazs: {name: 'x'})\n</code></pre>\n"], ["title", "Answer by VAIRIX for Select objects based on grandchild attribute with joins in ActiveRecord"], ["updated", Fri, 28 Mar 2014 18:35:10 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
747
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22717251/-/22717807#22717807' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
748
+  (0.0ms) SAVEPOINT active_record_1
749
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22717251/-/22717807#22717807"], ["published", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["summary", "<p>One way to do this, is by doing the following:\nIn the view</p>\n\n<pre><code>&lt;img src=\"/get_img/tlotr\"&gt;\n</code></pre>\n\n<p>That will make a request to the server, so in the routes.rb add</p>\n\n<pre><code>get '/get_img/:filename' =&gt; 'test#img'\n</code></pre>\n\n<p>In my case I have a TestController with an action call img like:</p>\n\n<pre><code>def img\n send_file( \"/your_path/\#{params[:filename]}.png\",\n :disposition =&gt; 'inline',\n :type =&gt; 'image/png',\n :x_sendfile =&gt; true )\nend\n</code></pre>\n\n<p>With this solution you hit the server one more time, but you don't have to send the data using the read method.</p>\n"], ["title", "Answer by VAIRIX for How can I display png data as an image inside in the browser?"], ["updated", Fri, 28 Mar 2014 16:04:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
751
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/-/22716782#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
752
+  (0.1ms) SAVEPOINT active_record_1
753
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/-/22716782#22716782"], ["published", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["summary", "<p>You can do something like that:</p>\n\n<p>In your javascript file:</p>\n\n<pre><code>$('#my_button').click(function(){\n $.ajax({\n type:'GET',\n url: '/table',\n data:{ rows: $('#my_text_field').val() },\n success: function(data){\n $('#my_table_container').html(data);\n }\n });\n});\n</code></pre>\n\n<p>In your controller:</p>\n\n<pre><code>def table\n render partial: 'table', locals: { rows: params[:rows] }\nend\n</code></pre>\n\n<p>In your routes.rb:</p>\n\n<pre><code>match 'table' =&gt; 'your_controller#table'\n</code></pre>\n\n<p>And then in your partial (_partial.html.rb), you have to iterate over number of rows that you receive in the rows param. </p>\n"], ["title", "Answer by VAIRIX for Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 15:20:09 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
755
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22715588/-/22716096#22716096' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
756
+  (0.1ms) SAVEPOINT active_record_1
757
+ SQL (0.3ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22715588/-/22716096#22716096"], ["published", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["summary", "<p>Define it in the ApplicationController like:</p>\n\n<pre><code>class ApplicationController &lt; ActionController::Base\n\n helper_method :paypal_url\n\n def paypal_url\n 'https://www.paypal.com/cgi-bin/webscr'\n end\n\nend\n</code></pre>\n\n<p>After that you'll be able to use the helper method from any view or controller.</p>\n"], ["title", "Answer by VAIRIX for Helper for controller and views"], ["updated", Fri, 28 Mar 2014 14:48:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
759
+ Stackoverfeeds::SoFeed Load (0.2ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
760
+  (0.0ms) SAVEPOINT active_record_1
761
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22761911/how-to-implement-root-route-and-get-index-to-the-same-page/22762973?cid=34709045#22762973"], ["published", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["summary", "You can add <code>root to: &#39;static_pages#index&#39;</code> inside or outside your scope. It&#39;s a possible solution and maybe doesn&#39;t fit what you expect, cause it takes more code to solve the problem."], ["title", "Comment by VAIRIX on How to implement root route and get \"index\" to the same page"], ["updated", Mon, 31 Mar 2014 16:45:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
763
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
764
+  (0.0ms) SAVEPOINT active_record_1
765
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22759923/how-to-let-the-user-create-cron-jobs-in-rails?cid=34699568"], ["published", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["summary", "If you want to schedule a task every X period of time, and your user only sets when and the task (as you said), you could try doing it with delayedjob ` class.delay(run_at: 5.hours.from_now).method(param)` and call recursive in the method. Of course you will have some delay of excecution (even if the first thing in your method is calling the recursion). It should be some similar way to do it with Sidekiq (really don&#39;t know). Be careful with overlapping of tasks."], ["title", "Comment by VAIRIX on How to let the user create cron jobs in rails?"], ["updated", Mon, 31 Mar 2014 12:58:30 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
767
+ Stackoverfeeds::SoFeed Load (0.1ms) SELECT "stackoverfeeds_so_feeds".* FROM "stackoverfeeds_so_feeds" WHERE "stackoverfeeds_so_feeds"."entry_id" = 'http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782' ORDER BY "stackoverfeeds_so_feeds"."id" ASC LIMIT 1
768
+  (0.0ms) SAVEPOINT active_record_1
769
+ SQL (0.2ms) INSERT INTO "stackoverfeeds_so_feeds" ("author", "created_at", "entry_id", "published", "summary", "title", "updated", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "VAIRIX"], ["created_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00], ["entry_id", "http://stackoverflow.com/questions/22716263/use-form-to-send-ajax-request-to-rails-app/22716782?cid=34623992#22716782"], ["published", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["summary", "If you need more params from the view, just add them in the &quot;data ajax attribute&quot; like <code>data:{ rows: val1, sort: val2 }</code>"], ["title", "Comment by VAIRIX on Use form to send ajax request to rails app"], ["updated", Fri, 28 Mar 2014 17:57:47 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 15:10:40 UTC +00:00]]
770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
771
+  (0.1ms) SELECT COUNT(*) FROM "stackoverfeeds_so_feeds"
772
+  (0.2ms) rollback transaction