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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Frederick Cheung at Nov 11, 2011 at 9:44 am

    On Nov 10, 6:33 pm, yatta20 wrote:
    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.
    You should start by looking at your applications log file and seeing
    where exactly the problem is occurring.

    Fred

    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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 11, '11 at 9:44a
activeNov 11, '11 at 9:53a
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Yatta20: 1 post Frederick Cheung: 1 post

People

Translate

site design / logo © 2022 Grokbase