Skip to content

Instantly share code, notes, and snippets.

@masarakki
Last active April 4, 2016 18:46
Show Gist options
  • Save masarakki/bff39eab0937b56ad0d44785b3430911 to your computer and use it in GitHub Desktop.
Save masarakki/bff39eab0937b56ad0d44785b3430911 to your computer and use it in GitHub Desktop.
ruby-2.3.0 + rails-4.6.2 + guard-teaspoon + active-admin
# ActionDispatch::Routing::RouteSet#add_route
​
[1] guard(#<ActionDispatch::Routing::RouteSet>)> name
=> "admin_opinions"
[2] guard(#<ActionDispatch::Routing::RouteSet>)> "admin_opinions".to_s.match(/^[_a-z]\w*$/i)
=> #<MatchData "admin_opinions">
[3] guard(#<ActionDispatch::Routing::RouteSet>)> name.to_s.match(/^[_a-z]\w*$/i)
ruby: string.c:1075: str_new_frozen: Assertion `!(!(((struct RBasic*)((shared))
)->flags&(RUBY_FL_USER1)))' failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment