Displaying 1 result from an estimated 1 matches for "priv_sign_in".
2013 Apr 12
0
Rails Log user in after view rendered
...eate.labels.emailed_password_html", :link =>
mail_to(@user.personal_info.e_mail))%>
<%= link_to(t("apply.create.labels.choose_password"),
user_profile_path) %>
</div>
</div>
<!-- Try to Sign in User -->
<% priv_sign_in %>
<% end %>
This code is because. If the user applies the @user info is filled in
but he can only be logged in after this part of the view is generated.
In my applycontroller create I have the following to do priv_sign_in:
# Helpers
helper_method :priv_sign_in...