mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

Get error when trying to start server #8

Closed alfrednerstu closed 14 years ago

alfrednerstu commented 14 years ago

I get this error when I try to start my server:

Users/alfner/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/misc.rb:78:in `with_options': no block given (LocalJumpError)
from /Library/Ruby/Gems/1.8/gems/subdomain-fu-0.5.4/lib/subdomain_fu/routing_extensions.rb:38:in `quick_map'
from /Library/Ruby/Gems/1.8/gems/subdomain-fu-0.5.4/lib/subdomain_fu/routing_extensions.rb:45:in `subdomain'
from /Users/alfner/Rails/project_name/config/routes.rb:22
from /Users/alfner/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/misc.rb:78:in `with_options'
from /Users/alfner/Rails/project_name/config/routes.rb:21
from /Users/alfner/.gem/ruby/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:226:in `draw'
from /Users/alfner/Rails/project_name/config/routes.rb:1
from /Users/alfner/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
 ... 17 levels...
from /Users/alfner/.gem/ruby/1.8/gems/rails-2.3.5/lib/commands/server.rb:84
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
kris commented 14 years ago

Mind pasting your routes Lines 21-22

alfrednerstu commented 14 years ago

Be sure not to have any non subdomain_fu routes referencing subdomain when trying to start your server.