Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding a new page action to the sessions scaffold in Refinery
    primarykey
    data
    text
    <p>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 <strong>no route that I enter into the url will take me to the view for the alternate log in</strong> 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</p> <pre><code>class SessionsController &lt; ::Devise::SessionsController . . . def create super rescue ::BCrypt::Errors::InvalidSalt, ::BCrypt::Errors::InvalidHash flash[:error] = t('password_encryption', :scope =&gt; 'users.forgot') redirect_to new_user_password_path end def dotnet . . . end . . . end </code></pre> <p>and the routes.rb file without the comment lines looks like:</p> <pre><code>Quicksmile::Application.routes.draw do resources :sessions resources :dotnetwrappers match "/" =&gt; redirect("/new-practices") end </code></pre> <p>I have tried the methods <a href="https://stackoverflow.com/questions/401241/adding-an-action-to-an-existing-controller-ruby-on-rails" title="Adding an Action to an Existing Controller">here</a> and <a href="https://stackoverflow.com/questions/9801519/how-to-add-a-new-link-in-active-scaffold-rails-3" title="Add a New Link">here</a> but neither of them worked. <strong>How do I set it up so that there is actually a url corresponding to the /views/sessions/dotnet.html.erb file?</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload