lib/padrino-routing/named_route.rb in padrino-routing-0.1.3 vs lib/padrino-routing/named_route.rb in padrino-routing-0.1.4
- old
+ new
@@ -10,10 +10,10 @@
end
# Used to define the url mapping to the supplied alias
# NamedRoute.new(@app, :account).to('/account/path')
def to(path)
- @app.named_paths[@names.unshift(@app.app_name)] = path
+ @app.named_paths[@names.unshift(@app.app_name.to_sym)] = path
end
# Used to define the url mappings for child aliases within a namespace
# Invokes map on the application itself, appending the namespace to the route
# NamedRoute.new(@app, :admin).map(:show).to('/admin/show')