Skip to content

Instantly share code, notes, and snippets.

@botanicus
Created February 25, 2009 11:52
Show Gist options
  • Save botanicus/70138 to your computer and use it in GitHub Desktop.
Save botanicus/70138 to your computer and use it in GitHub Desktop.
Loading init file from /home/botanicus/Desktop/projects/webs/tmp/merb-shop-slice/config/init.rb
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Loaded slice 'MerbShopSlice' ...
~ Parent pid: 8179
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:565:in `compile_param': Placeholder not found while compiling routes: :controller. Add it to the conditions part of the route. (Merb::Router::GenerationError)
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:539:in `compile_params'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:535:in `each'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:535:in `compile_params'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:224:in `compile'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb:39:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:718:in `new'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:718:in `to_route'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:325:in `register'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:604:in `full_name'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:584:in `name'
from /home/botanicus/Desktop/projects/webs/tmp/merb-shop-slice/lib/merb-shop-slice.rb:98:in `setup_router'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:768:in `with_behavior_context'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:323:in `with'
from /home/botanicus/Desktop/projects/webs/tmp/merb-shop-slice/lib/merb-shop-slice.rb:96:in `setup_router'
from /home/botanicus/Desktop/projects/webs/tmp/merb-shop-slice/lib/merb-shop-slice.rb:95:in `instance_eval'
from /home/botanicus/Desktop/projects/webs/tmp/merb-shop-slice/lib/merb-shop-slice.rb:95:in `setup_router'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/lib/merb-slices/router_ext.rb:54:in `add_slice'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:768:in `with_behavior_context'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:656:in `capture'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/lib/merb-slices/router_ext.rb:52:in `add_slice'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:768:in `with_behavior_context'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:402:in `options'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:452:in `namespace'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/lib/merb-slices/router_ext.rb:51:in `add_slice'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/lib/merb-slices/router_ext.rb:69:in `slice'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:156:in `send'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:156:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/bin/slice:25
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:675:in `instance_eval'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router/behavior.rb:675:in `_with_proxy'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/router.rb:105:in `prepare'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/bin/slice:24
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/bootloader.rb:1257:in `call'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/bootloader.rb:1257:in `run'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/bootloader.rb:1257:in `each'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/bootloader.rb:1257:in `run'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/bootloader.rb:99:in `run'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/server.rb:172:in `bootup'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core/server.rb:42:in `start'
from /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.9/lib/merb-core.rb:170:in `start'
from /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.9/bin/slice:79
from /usr/bin/slice:19:in `load'
from /usr/bin/slice:19
module MerbShopSlice
# Setup routes inside the host application
#
# @param scope<Merb::Router::Behaviour>
# Routes will be added within this scope (namespace). In fact, any
# router behaviour is a valid namespace, so you can attach
# routes at any level of your router setup.
#
# @note prefix your named routes with :merb_shop_slice_
# to avoid potential conflicts with global named routes.
def self.setup_router(scope)
scope.instance_eval do
with(:controller => "products") do
match("/produkty")
name(:products)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment