Created
February 25, 2009 11:52
-
-
Save botanicus/70138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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