Hello,
I'm new to Ruby. The password reset button no longer works after we
rebooted the server. I get a message we're sorry but something went
wrong. I'm not sure how to resolve this issue.

Here's the code from user_password/new.html.erb
<div id="existing-customer">
        <h1>Reset Your Password</h1>

        <p><%= t(:instructions_to_reset_password) %></p>

        <%= form_for(User.new, :as => :user, :url =>
user_password_path, :html => {:class => "login_form"}) do |f| %>
                <% if @user.errors.any? %>
            <div id="error_explanation">
              <h2><%= pluralize(@user.errors.count, "error") %> prohibited
this contact from being saved:</h2>

              <ul>
              <% @user.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
              <% end %>
              </ul>
            </div>
          <% end %>
          <p>
            <label><%= t(:email) %>:</label><br />
            <%= f.email_field :email %>
          </p>

                <%= submit_tag "Reset Password", :class => 'button primary' %>

        <% end %>
</div>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to