0

変更を追跡したい: ユーザーがプロファイルに変更を加えると、別のリンクが表示されます。

これが私のコードです:

    <% if current_user.changed?%>
      <%= link_to  "Add another website to your Print-it-Green account", commit_new_website_path %>
     <%else%>
        <%=  submit_tag "Generate Print-it-Green code", :class => "btn wide"%>
<%end%>

それともこれは間違っているので、何か他のことを試してみるべきですか?

4

0 に答える 0