I'm building a refinery cms application and I'm trying to add an alternative log in screen that will consume a .NET webservice. However while the code for consuming the service was simple enough I can't seem to get rails or refinery to acknowledge that the view for it actually exist and thus no route that I enter into the url will take me to the view for the alternate log in and I can't figure out why. The file for my view is located at /views/sessions/dotnet.html.erb and currently my sessions_controller.rb contains the definition for the method
class SessionsController < ::Devise::SessionsController
.
.
.
def create
super
rescue ::BCrypt::Errors::InvalidSalt, ::BCrypt::Errors::InvalidHash
flash[:error] = t('password_encryption', :scope => 'users.forgot')
redirect_to new_user_password_path
end
def dotnet
.
.
.
end
.
.
.
end
and the routes.rb file without the comment lines looks like:
Quicksmile::Application.routes.draw do
resources :sessions
resources :dotnetwrappers
match "/" => redirect("/new-practices")
end
I have tried the methods here and here but neither of them worked. How do I set it up so that there is actually a url corresponding to the /views/sessions/dotnet.html.erb file?