I made this HAML link:
= link_to "Create Profile", signup_path
I was thinking it should work since this url works:
http://m.cmply.local:8800/signup
But instead I get this error:
undefined local variable or method `signup_path' for #<#<Class:0x129a08190>:0x129a027e0>
Here is my routes.rb snippet
scope :module => :mobile, :as => :mobile do
constraints(:subdomain => /m/) do
devise_for :users, :path => "", :path_names =>
{ :sign_in => "login", :sign_out => "logout",
:sign_up => "signup" },
:controllers => {:sessions => "mobile/sessions"}
resources :home
resources :disclosures # Will have new, get, look up a disclosure
end
end
and here is the rake routes snippet
{:action=>"create", :controller=>"registrations"}
new_user_registration GET /signup(.:format)
Any idea why this might happen?
Thanks!
Change
signup_pathtonew_user_registration_path