Created
July 13, 2012 01:17
-
-
Save jason/3102148 to your computer and use it in GitHub Desktop.
rails console puking...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ rwsampleapp rails c | |
Loading development environment (Rails 3.2.6) | |
[1] pry(main)> require "capybara/rails" | |
=> true | |
[2] pry(main)> require "capybara_minitest_spec" | |
=> false | |
[3] pry(main)> require "minitest/autorun" | |
=> true | |
[4] pry(main)> include Rails.application.routes.url_helpers | |
=> Object | |
[5] pry(main)> include Capybara::DSL | |
=> Object | |
[6] pry(main)> @routes = Rails.application.routes | |
=> #<ActionDispatch::Routing::RouteSet:0x007fd3fb7631b8> | |
[7] pry(main)> visit app.signup_path | |
=> nil | |
[8] pry(main)> puts page.body | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta charset="utf-8"> | |
<title>Action Controller: Exception caught</title> | |
<style> | |
body { background-color: #fff; color: #333; } | |
body, p, ol, ul, td { | |
font-family: helvetica, verdana, arial, sans-serif; | |
font-size: 13px; | |
line-height: 18px; | |
} | |
pre { | |
background-color: #eee; | |
padding: 10px; | |
font-size: 11px; | |
white-space: pre-wrap; | |
} | |
a { color: #000; } | |
a:visited { color: #666; } | |
a:hover { color: #fff; background-color:#000; } | |
</style> | |
</head> | |
<body> | |
<h1> | |
RuntimeError in | |
Users#new | |
</h1> | |
<p> | |
Showing <i>/Users/jason/Projects/rwsampleapp/app/views/users/new.html.slim</i> where line <b>#5</b> raised: | |
</p> | |
<pre><code>In order to use #url_for, you must include routing helpers explicitly. For instance, `include Rails.application.routes.url_helpers</code></pre> | |
<p>Extracted source (around line <b>#5</b>): | |
</p> | |
<pre><code>2: h1 Sign up | |
3: .row | |
4: .span6.offset3 | |
5: = form_for(@user) do |f| | |
6: = render 'shared/error_messages' | |
7: = f.label :name | |
8: = f.text_field :name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment