Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willnet/byebug-zeitwerk-sample
sample rails application to reproduce NameError with byebug and zeitwerk
https://github.com/willnet/byebug-zeitwerk-sample
Last synced: 3 months ago
JSON representation
sample rails application to reproduce NameError with byebug and zeitwerk
- Host: GitHub
- URL: https://github.com/willnet/byebug-zeitwerk-sample
- Owner: willnet
- Created: 2019-12-23T09:27:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T16:33:07.000Z (about 2 years ago)
- Last Synced: 2023-04-10T16:13:57.736Z (almost 2 years ago)
- Language: Ruby
- Homepage:
- Size: 1.64 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
1. git clone https://github.com/willnet/byebug-zeitwerk-sample.git
1. cd byebug-zeitwerk-sample
1. `./bin/setup`
1. `./bin/rails s`
1. visit localhost:3000
1. reference `A::B` in brakepoint
1. NameError like following```
[1, 6] in /Users/willnet/.ghq/github.com/willnet/byebug-zeitwerk-sample/app/controllers/welcome_controller.rb
1: class WelcomeController < ApplicationController
2: def index
3: byebug
4: # A::B
=> 5: end
6: end
(byebug) A::B
*** NameError Exception: uninitialized constant A::B
```edit `app/controllers/welcome_controller.rb` like following, and revisit localhost:3000
```ruby
class WelcomeController < ApplicationController
def index
A::B
end
end
```it works!