Inside a controller I've tried to run this code for when users that are already logged in stumble across the sign up page
def index
if current_user
redirect_to homebase_url #should provide url to home for logged in users
end
end
I've done what the rails error message said and have added: include Rails.application.routes.url_helpers to the containing controller class. Still getting this error though. Definitely do not want to hardcode URLs into there for legacy purposes. Thanks
redirect_to homebase_url? If it's being thrown somewhere else (such as within a template), you may have to include the url_helpers somewhere else, like the ApplicationHelper. (2) Would you be able to show a full stack trace along with more of the full controller class?include Rails.application.routes.url_helpersto an initializer and somehow that was screwing everything up. Figured it out right after I left the bounty. I guess if anything I wouldn't mind knowing why that caused that..