Skip to content

Instantly share code, notes, and snippets.

@joshukraine
Created December 15, 2013 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshukraine/7975903 to your computer and use it in GitHub Desktop.
Save joshukraine/7975903 to your computer and use it in GitHub Desktop.
in Chrome...
# In Chrome, start on home page, enter invalid input. Flash is displayed
Started GET "/students/search?utf8=%E2%9C%93&search=asdf&submit=%EF%80%82" for 127.0.0.1 at 2013-12-15 18:31:12 +0200
Processing by StudentsController#search as HTML
Parameters: {"utf8"=>"✓", "search"=>"asdf", "submit"=>"?"}
Coach Load (0.4ms) SELECT "coaches".* FROM "coaches" WHERE "coaches"."remember_token" = 'qnT_bGpti6JLWWLtFaM7DA' ORDER BY coaches.created_at ASC LIMIT 1
@@@@ flash: #<ActionDispatch::Flash::FlashHash:0x007fa2cda87290>
@@@@ session: {"session_id"=>"0d3e2d6679ba059a32fda992098d76bb", "_csrf_token"=>"FCi64KNpqW1ty7YTNibievP8VlmVm/PnGxWtNp0ylBM=", "return_to"=>"http://localhost:3000/"}
@@@@ request.referer: http://localhost:3000/
Redirected to http://localhost:3000/
Completed 302 Found in 4.1ms (ActiveRecord: 0.4ms)
Started GET "/" for 127.0.0.1 at 2013-12-15 18:31:12 +0200
Processing by PagesController#home as HTML
Coach Load (0.4ms) SELECT "coaches".* FROM "coaches" WHERE "coaches"."remember_token" = 'qnT_bGpti6JLWWLtFaM7DA' ORDER BY coaches.created_at ASC LIMIT 1
@@@@ flash: #<ActionDispatch::Flash::FlashHash:0x007fa2d032cd08>
@@@@ session: {"session_id"=>"0d3e2d6679ba059a32fda992098d76bb", "_csrf_token"=>"FCi64KNpqW1ty7YTNibievP8VlmVm/PnGxWtNp0ylBM=", "flash"=>#<ActionDispatch::Flash::FlashHash:0x007fa2d032cd08 @used=#<Set: {:error}>, @closed=false, @flashes={:error=>"<i class=\"fa fa-times fa-fw\"></i> Please enter a numeric student ID."}, @now=nil>}
@@@@ request.referer: http://localhost:3000/
Rendered pages/home.html.erb within layouts/application (0.0ms)
Rendered layouts/_top-nav.html.erb (2.0ms)
Rendered layouts/_sidenav.html.erb (1.2ms)
Completed 200 OK in 19.4ms (Views: 16.2ms | ActiveRecord: 0.4ms)
# Click link to go back to home page, flash clears.
Started GET "/" for 127.0.0.1 at 2013-12-15 18:32:17 +0200
Processing by PagesController#home as HTML
Coach Load (0.4ms) SELECT "coaches".* FROM "coaches" WHERE "coaches"."remember_token" = 'qnT_bGpti6JLWWLtFaM7DA' ORDER BY coaches.created_at ASC LIMIT 1
@@@@ flash: #<ActionDispatch::Flash::FlashHash:0x007fa2d03d7ac8>
@@@@ session: {"session_id"=>"0d3e2d6679ba059a32fda992098d76bb", "_csrf_token"=>"FCi64KNpqW1ty7YTNibievP8VlmVm/PnGxWtNp0ylBM=", "flash"=>#<ActionDispatch::Flash::FlashHash:0x007fa2d03d7ac8 @used=#<Set: {}>, @closed=false, @flashes={}, @now=nil>}
@@@@ request.referer: http://localhost:3000/
Rendered pages/home.html.erb within layouts/application (0.1ms)
Rendered layouts/_top-nav.html.erb (1.9ms)
Rendered layouts/_sidenav.html.erb (1.0ms)
Completed 200 OK in 66.8ms (Views: 16.6ms | ActiveRecord: 0.4ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment