Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
thanks to @noelrap for the doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Nov 10, 2011
1 parent 9aead5f commit 02037e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ Just mount jasmine-rails by adding something like this to your routes.rb:
mount JasmineRails::Engine => "/specs" unless Rails.env.production?
```

Now when you run `bundle exec rails s`, and navigate to [http://localhost:3000/spec-runner](http://localhost:3000/spec-runner), you should see a Jasmine spec runner in your browser.
Now when you run `bundle exec rails s`, and navigate to [http://localhost:3000/specs](http://localhost:3000/specs), you should see a Jasmine spec runner in your browser.

## Debugging

### In your browser

In my workflow, I like to work with specs in the command line until I hit a snag and could benefit from debugging in [Web Inspector](http://www.webkit.org/blog/1091/more-web-inspector-updates/) or [Firebug](http://getfirebug.com/) to figure out what's going on.

When debugging, I append the query param "**debug_assets=true**" like so: [http://localhost:3000/spec-runner?debug_assets=true](http://localhost:3000/spec-runner?debug_assets=true).
When debugging, I append the query param "**debug_assets=true**" like so: [http://localhost:3000/specs?debug_assets=true](http://localhost:3000/specs?debug_assets=true).

This is telling the asset pipeline to include each of your scripts in *individual* `<script>` tags. Seeing each script loaded separately makes debugging much easier for me.

Expand Down

0 comments on commit 02037e1

Please sign in to comment.