Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| # Add poltergeist gem to Gemfile, in :test group, | |
| # then run `bundle` to install | |
| group :test do | |
| ... | |
| gem 'poltergeist' | |
| ... | |
| end |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| module ShallowNestedRoutes | |
| def self.included(base) | |
| base.extend(ClassMethods) | |
| end | |
| module ClassMethods | |
| # Pass in the name of the parent class | |
| def set_shallow_nested_route_parent(parent) | |
| parent = parent.to_s | |
| # Override these methods so they set the prefix path before a call and reset it afterward. |