Note that there are some explanatory texts on larger screens.

plurals
  1. POTemplate Missing Error Appears When Updating a User and not Providing a Password - Authlogic
    primarykey
    data
    text
    <p>I'm using Authlogic for my authentication system in a Rails 2.3.8 application for a client of mine. I have a model, CommunityEventUser, that needs to be updated with new attributes. The controller code is this:</p> <pre><code> def edit @user = current_user end def update @user = current_user if @user.update_attributes(params[:community_event_user]) flash[:notice] = "You updated your profile!" redirect_to community_event_user_path else render :action =&gt; :edit end end </code></pre> <p>It's just standard edit/update RESTful code. When I go to the view for editing the user account information, submitting the form with changes to any attributes besides <code>password</code> and <code>password_confirmation</code>, and leaving those last two fields blank redirects me to a page with this error on:</p> <pre><code>Template is missing Missing template community_event_users/edit.erb in view path app/views </code></pre> <p>And this URL:</p> <pre><code>http://localhost:3000/events/user.%23%3Ccommunityeventuser:0x10495ad80%3E </code></pre> <p>However, when I do matching passwords in the two password fields, the user is updated correctly. I thought standard Authlogic use allowed simply ignored blank <code>password</code> and <code>password_confirmation</code> fields on update. What could be the problem here?</p> <p>View code for edit:</p> <pre><code>- set_page_title "Login - Community Calendar" %h2.replaced#h2-edit_account Edit Account - content_for :sidebar do = render :partial =&gt; 'community_events/sidebar' = render 'community_event_user' </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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