{"action":"created","issue":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/3119","repository_url":"https://api.github.com/repos/refinery/refinerycms","labels_url":"https://api.github.com/repos/refinery/refinerycms/issues/3119/labels{/name}","comments_url":"https://api.github.com/repos/refinery/refinerycms/issues/3119/comments","events_url":"https://api.github.com/repos/refinery/refinerycms/issues/3119/events","html_url":"https://github.com/refinery/refinerycms/issues/3119","id":135635670,"number":3119,"title":"Issues with creating a custom action as described in guide","user":{"login":"sturad","id":316830,"avatar_url":"https://avatars.githubusercontent.com/u/316830?v=3","gravatar_id":"","url":"https://api.github.com/users/sturad","html_url":"https://github.com/sturad","followers_url":"https://api.github.com/users/sturad/followers","following_url":"https://api.github.com/users/sturad/following{/other_user}","gists_url":"https://api.github.com/users/sturad/gists{/gist_id}","starred_url":"https://api.github.com/users/sturad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturad/subscriptions","organizations_url":"https://api.github.com/users/sturad/orgs","repos_url":"https://api.github.com/users/sturad/repos","events_url":"https://api.github.com/users/sturad/events{/privacy}","received_events_url":"https://api.github.com/users/sturad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/refinery/refinerycms/labels/3-0-stable","name":"3-0-stable","color":"207de5"},{"url":"https://api.github.com/repos/refinery/refinerycms/labels/Awaiting%20Response","name":"Awaiting Response","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-02-23T05:07:28Z","updated_at":"2016-07-15T11:03:44Z","closed_at":null,"body":"I am having difficult in creating a custom action as described in 4.3 of creating a custom action  here  http://www.refinerycms.com/guides/using-custom-view-or-layout-templates.  I’m using Refinery 3.0.1and Rails 4.2.4, Ruby ruby-2.2.0. I create sample project just to retest this issue: [(https://github.com/sturad/refinery_custom_action_issue/)](https://github.com/sturad/refinery_custom_action_issue/)\r\n\r\nRails doesn't start with a  custom action defined by this routes.rb \r\n```ruby\r\nRefinery::Core::Engine.routes.prepend do\r\n  get '/about-us', :to => 'pages#about_us', :as => :about_us\r\nend\r\nRails.application.routes.draw do\r\n  mount Refinery::Core::Engine, at: Refinery::Core.mounted_path\r\nend\r\n```\r\nand this decorator #app/decorators/controllers/refinery/pages/pages_controller_decorator.rb\r\n```ruby\r\nRefinery::PagesController.class_eval do\r\n   skip_before_action :find_page, :only => [:about_us]\r\n  def about_us\r\n    # hardcoded id to debug query success\r\n    @page = ::Refinery::Page.find(1)\r\n    byebug\r\n    render_with_templates?\r\n  end\r\nend\r\n```\r\n\r\nI get this error when starting Rails. \r\n```\r\n/Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:557:in `add_route': Invalid route name, already in use: 'about_us'  (ArgumentError)\r\nYou may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: \r\nhttp://guides.rubyonrails.org/routing.html#restricting-the-routes-created\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:1561:in `add_route'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:1536:in `decomposed_match'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:1517:in `block in match'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:1507:in `each'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:1507:in `match'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:689:in `map_method'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:650:in `get'\r\n  from /Users/sraden/code/test_cms/refinery4/config/routes.rb:2:in `block in <top (required)>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:601:in `instance_exec'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:601:in `block in with_default_scope'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:816:in `scope'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:600:in `with_default_scope'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:450:in `block in clear!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:450:in `each'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:450:in `clear!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/routing-filter-0.5.1/lib/routing_filter/adapters/rails.rb:37:in `clear_with_filtering!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:35:in `block in clear!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:33:in `each'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:33:in `clear!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:15:in `reload!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/refinerycms-pages-3.0.1/lib/refinery/pages/engine.rb:52:in `append_marketable_routes'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/refinerycms-pages-3.0.1/lib/refinery/pages/engine.rb:29:in `block in <class:Engine>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `each'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `call'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'\r\n  from /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'\r\n  from /Users/sraden/code/test_cms/refinery4/config/environment.rb:5:in `<top (required)>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n  from /Users/sraden/code/test_cms/refinery4/config.ru:3:in `block in <main>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'\r\n  from /Users/sraden/code/test_cms/refinery4/config.ru:in `new'\r\n  from /Users/sraden/code/test_cms/refinery4/config.ru:in `<main>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/server.rb:61:in `app'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/server.rb:139:in `log_to_stdout'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/server.rb:78:in `start'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:80:in `block in server'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `tap'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `server'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'\r\n  from /Users/sraden/code/test_cms/refinery4/bin/rails:9:in `require'\r\n  from /Users/sraden/code/test_cms/refinery4/bin/rails:9:in `<top (required)>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/client/rails.rb:28:in `load'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/client/rails.rb:28:in `call'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/client/command.rb:7:in `call'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/client.rb:28:in `run'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/bin/spring:49:in `<top (required)>'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/binstub.rb:11:in `load'\r\n  from /Users/sraden/.rvm/gems/ruby-2.2.0@picbase/gems/spring-1.6.3/lib/spring/binstub.rb:11:in `<top (required)>'\r\n  from /Users/sraden/code/test_cms/refinery4/bin/spring:13:in `require'\r\n  from /Users/sraden/code/test_cms/refinery4/bin/spring:13:in `<top (required)>'\r\n  from bin/rails:3:in `load'\r\n  from bin/rails:3:in `<main>'\r\n```\r\n\r\nWhen I remove the :as paremeter in the route, I can start Rails, but attempt to bypass normal PagesContoller.find_page() does not work. Debugging shows that  find_page is called with action_name set to 'about'   So my skip_before_action trigger is not \r\nfiring\r\n```\r\n'NoMethodError (undefined method `live?' for false:FalseClass):\r\n  refinerycms-pages (3.0.1) app/controllers/refinery/pages_controller.rb:63:in current_user_can_view_page?'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:417:in `call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:417:in `block in invert_lambda'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:144:in `call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:144:in `block (2 levels) in halting_and_conditional'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:144:in `each'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:144:in `all?'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:144:in `block in halting_and_conditional'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n  activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'\r\n  actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process'\r\n  actionview (4.2.4) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call'\r\n  railties (4.2.4) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.4) lib/rails/railtie.rb:194:in `public_send'\r\n  railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each'\r\n  actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call'\r\n  dragonfly (1.0.12) lib/dragonfly/middleware.rb:14:in `call'\r\n  dragonfly (1.0.12) lib/dragonfly/middleware.rb:14:in `call'\r\n  warden (1.2.6) lib/warden/manager.rb:35:in `block in call'\r\n  warden (1.2.6) lib/warden/manager.rb:34:in `catch'\r\n  warden (1.2.6) lib/warden/manager.rb:34:in `call'\r\n  rack (1.6.4) lib/rack/etag.rb:24:in `call'\r\n  rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'\r\n  rack (1.6.4) lib/rack/head.rb:13:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'\r\n  activerecord (4.2.4) lib/active_record/migration.rb:377:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'\r\n  activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'\r\n  web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'\r\n  web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.4) lib/rack/runtime.rb:18:in `call'\r\n  activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\n  dragonfly (1.0.12) lib/dragonfly/cookie_monster.rb:9:in `call'\r\n  rack (1.6.4) lib/rack/lock.rb:17:in `call'\r\n  actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'\r\n  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'\r\n  railties (4.2.4) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.4) lib/rails/application.rb:165:in `call'\r\n  rack (1.6.4) lib/rack/lock.rb:17:in `call'\r\n  rack (1.6.4) lib/rack/content_length.rb:15:in `call'\r\n  rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'\r\n  /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'\r\n  /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'\r\n  /Users/sraden/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'\r\n```\r\n\r\nGemfile lock follows:\r\n```\r\nGEM\r\n  remote: https://rubygems.org/\r\n  specs:\r\n    actionmailer (4.2.4)\r\n      actionpack (= 4.2.4)\r\n      actionview (= 4.2.4)\r\n      activejob (= 4.2.4)\r\n      mail (~> 2.5, >= 2.5.4)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n    actionpack (4.2.4)\r\n      actionview (= 4.2.4)\r\n      activesupport (= 4.2.4)\r\n      rack (~> 1.6)\r\n      rack-test (~> 0.6.2)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n      rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n    actionview (4.2.4)\r\n      activesupport (= 4.2.4)\r\n      builder (~> 3.1)\r\n      erubis (~> 2.7.0)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n      rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n    activejob (4.2.4)\r\n      activesupport (= 4.2.4)\r\n      globalid (>= 0.3.0)\r\n    activemodel (4.2.4)\r\n      activesupport (= 4.2.4)\r\n      builder (~> 3.1)\r\n    activerecord (4.2.4)\r\n      activemodel (= 4.2.4)\r\n      activesupport (= 4.2.4)\r\n      arel (~> 6.0)\r\n    activesupport (4.2.4)\r\n      i18n (~> 0.7)\r\n      json (~> 1.7, >= 1.7.7)\r\n      minitest (~> 5.1)\r\n      thread_safe (~> 0.3, >= 0.3.4)\r\n      tzinfo (~> 1.1)\r\n    acts_as_indexed (0.8.3)\r\n    addressable (2.4.0)\r\n    arel (6.0.3)\r\n    awesome_nested_set (3.0.3)\r\n      activerecord (>= 4.0.0, < 5)\r\n    babosa (1.0.2)\r\n    bcrypt (3.1.10)\r\n    binding_of_caller (0.7.2)\r\n      debug_inspector (>= 0.0.1)\r\n    builder (3.2.2)\r\n    byebug (8.2.2)\r\n    coffee-rails (4.1.1)\r\n      coffee-script (>= 2.2.0)\r\n      railties (>= 4.0.0, < 5.1.x)\r\n    coffee-script (2.4.1)\r\n      coffee-script-source\r\n      execjs\r\n    coffee-script-source (1.10.0)\r\n    concurrent-ruby (1.0.0)\r\n    debug_inspector (0.0.2)\r\n    decorators (2.0.1)\r\n      railties (>= 4.0.0, < 5.0.0)\r\n    devise (3.5.6)\r\n      bcrypt (~> 3.0)\r\n      orm_adapter (~> 0.1)\r\n      railties (>= 3.2.6, < 5)\r\n      responders\r\n      thread_safe (~> 0.1)\r\n      warden (~> 1.2.3)\r\n    dragonfly (1.0.12)\r\n      addressable (~> 2.3)\r\n      multi_json (~> 1.0)\r\n      rack (>= 1.3.0)\r\n    erubis (2.7.0)\r\n    execjs (2.6.0)\r\n    friendly_id (5.1.0)\r\n      activerecord (>= 4.0.0)\r\n    globalid (0.3.6)\r\n      activesupport (>= 4.1.0)\r\n    globalize (5.0.1)\r\n      activemodel (>= 4.2.0, < 4.3)\r\n      activerecord (>= 4.2.0, < 4.3)\r\n    i18n (0.7.0)\r\n    jbuilder (2.4.1)\r\n      activesupport (>= 3.0.0, < 5.1)\r\n      multi_json (~> 1.2)\r\n    jquery-rails (4.1.0)\r\n      rails-dom-testing (~> 1.0)\r\n      railties (>= 4.2.0)\r\n      thor (>= 0.14, < 2.0)\r\n    jquery-ui-rails (5.0.5)\r\n      railties (>= 3.2.16)\r\n    json (1.8.3)\r\n    loofah (2.0.3)\r\n      nokogiri (>= 1.5.9)\r\n    mail (2.6.3)\r\n      mime-types (>= 1.16, < 3)\r\n    mime-types (2.99.1)\r\n    mini_portile2 (2.0.0)\r\n    minitest (5.8.4)\r\n    multi_json (1.11.2)\r\n    nokogiri (1.6.7.2)\r\n      mini_portile2 (~> 2.0.0.rc2)\r\n    orm_adapter (0.5.0)\r\n    pg (0.18.4)\r\n    rack (1.6.4)\r\n    rack-test (0.6.3)\r\n      rack (>= 1.0)\r\n    rails (4.2.4)\r\n      actionmailer (= 4.2.4)\r\n      actionpack (= 4.2.4)\r\n      actionview (= 4.2.4)\r\n      activejob (= 4.2.4)\r\n      activemodel (= 4.2.4)\r\n      activerecord (= 4.2.4)\r\n      activesupport (= 4.2.4)\r\n      bundler (>= 1.3.0, < 2.0)\r\n      railties (= 4.2.4)\r\n      sprockets-rails\r\n    rails-deprecated_sanitizer (1.0.3)\r\n      activesupport (>= 4.2.0.alpha)\r\n    rails-dom-testing (1.0.7)\r\n      activesupport (>= 4.2.0.beta, < 5.0)\r\n      nokogiri (~> 1.6.0)\r\n      rails-deprecated_sanitizer (>= 1.0.1)\r\n    rails-html-sanitizer (1.0.3)\r\n      loofah (~> 2.0)\r\n    rails-i18n (4.0.8)\r\n      i18n (~> 0.7)\r\n      railties (~> 4.0)\r\n    railties (4.2.4)\r\n      actionpack (= 4.2.4)\r\n      activesupport (= 4.2.4)\r\n      rake (>= 0.8.7)\r\n      thor (>= 0.18.1, < 2.0)\r\n    rake (10.5.0)\r\n    rdoc (4.2.2)\r\n      json (~> 1.4)\r\n    refinerycms (3.0.1)\r\n      refinerycms-core (= 3.0.1)\r\n      refinerycms-images (= 3.0.1)\r\n      refinerycms-pages (= 3.0.1)\r\n      refinerycms-resources (= 3.0.1)\r\n    refinerycms-authentication-devise (1.0.4)\r\n      actionmailer (~> 4.2, >= 4.2.0)\r\n      devise (~> 3.0, >= 3.2.4)\r\n      friendly_id (~> 5.1.0)\r\n      refinerycms-core (~> 3.0, >= 3.0.0)\r\n    refinerycms-core (3.0.1)\r\n      actionpack (>= 4.2.3, < 5.0)\r\n      activerecord (>= 4.2.3, < 5.0)\r\n      awesome_nested_set (~> 3.0.0)\r\n      coffee-rails (~> 4.0, >= 4.0.0)\r\n      decorators (~> 2.0.0)\r\n      jquery-rails (>= 2.3.0)\r\n      jquery-ui-rails (~> 5.0.0)\r\n      railties (>= 4.2.3, < 5.0)\r\n      refinerycms-i18n (~> 3.0.0)\r\n      sass-rails (>= 4.0, < 5.1)\r\n      truncate_html (~> 0.9)\r\n      will_paginate (~> 3.0.2)\r\n      zilch-authorisation\r\n    refinerycms-i18n (3.0.1)\r\n      rails-i18n (~> 4.0.1)\r\n      routing-filter (>= 0.4.0)\r\n    refinerycms-images (3.0.1)\r\n      dragonfly (~> 1.0.0)\r\n      globalize (>= 4.0.0, < 5.2)\r\n      refinerycms-core (= 3.0.1)\r\n    refinerycms-pages (3.0.1)\r\n      awesome_nested_set (~> 3.0.0)\r\n      babosa (!= 0.3.6)\r\n      friendly_id (~> 5.1.0)\r\n      globalize (>= 4.0.0, < 5.2)\r\n      refinerycms-core (= 3.0.1)\r\n      seo_meta (~> 2.0.0.rc.1)\r\n      speakingurl-rails (~> 8.0.0)\r\n    refinerycms-resources (3.0.1)\r\n      acts_as_indexed (~> 0.8.0)\r\n      dragonfly (~> 1.0.0)\r\n      globalize (>= 4.0.0, < 5.2)\r\n      refinerycms-core (= 3.0.1)\r\n    responders (2.1.1)\r\n      railties (>= 4.2.0, < 5.1)\r\n    routing-filter (0.5.1)\r\n      actionpack (~> 4.2)\r\n      activesupport (~> 4.2)\r\n    sass (3.4.21)\r\n    sass-rails (5.0.4)\r\n      railties (>= 4.0.0, < 5.0)\r\n      sass (~> 3.1)\r\n      sprockets (>= 2.8, < 4.0)\r\n      sprockets-rails (>= 2.0, < 4.0)\r\n      tilt (>= 1.1, < 3)\r\n    sdoc (0.4.1)\r\n      json (~> 1.7, >= 1.7.7)\r\n      rdoc (~> 4.0)\r\n    seo_meta (2.0.0.rc.1)\r\n      railties (>= 3.0.0)\r\n    speakingurl-rails (8.0.2)\r\n      railties (>= 3.1)\r\n    spring (1.6.3)\r\n    sprockets (3.5.2)\r\n      concurrent-ruby (~> 1.0)\r\n      rack (> 1, < 3)\r\n    sprockets-rails (3.0.1)\r\n      actionpack (>= 4.0)\r\n      activesupport (>= 4.0)\r\n      sprockets (>= 3.0.0)\r\n    thor (0.19.1)\r\n    thread_safe (0.3.5)\r\n    tilt (2.0.2)\r\n    truncate_html (0.9.3)\r\n    turbolinks (2.5.3)\r\n      coffee-rails\r\n    tzinfo (1.2.2)\r\n      thread_safe (~> 0.1)\r\n    uglifier (2.7.2)\r\n      execjs (>= 0.3.0)\r\n      json (>= 1.8.0)\r\n    warden (1.2.6)\r\n      rack (>= 1.0)\r\n    web-console (2.3.0)\r\n      activemodel (>= 4.0)\r\n      binding_of_caller (>= 0.7.2)\r\n      railties (>= 4.0)\r\n      sprockets-rails (>= 2.0, < 4.0)\r\n    will_paginate (3.0.7)\r\n    zilch-authorisation (0.0.1)\r\n\r\nPLATFORMS\r\n  ruby\r\n\r\nDEPENDENCIES\r\n  byebug\r\n  coffee-rails (~> 4.1.0)\r\n  jbuilder (~> 2.0)\r\n  jquery-rails\r\n  pg\r\n  rails (= 4.2.4)\r\n  refinerycms (~> 3.0.0)\r\n  refinerycms-authentication-devise (~> 1.0)\r\n  sass-rails (~> 5.0)\r\n  sdoc (~> 0.4.0)\r\n  spring\r\n  turbolinks\r\n  uglifier (>= 1.3.0)\r\n ```"},"comment":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/comments/232923543","html_url":"https://github.com/refinery/refinerycms/issues/3119#issuecomment-232923543","issue_url":"https://api.github.com/repos/refinery/refinerycms/issues/3119","id":232923543,"user":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T11:03:44Z","updated_at":"2016-07-15T11:03:44Z","body":"I've updated the code that you need to define now to:\r\n\r\n```ruby\r\nclass PagesController # this class exists\r\n  module Finders\r\n    class AboutUs\r\n      def call(params)\r\n        Refinery::Page.find_by(link_url: \"/about-us\") # or some other logic\r\n      end\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nThis is to avoid the metaprogramming of magic method names"}}
{"actor":{"display_login":"parndt"}}