0

I want to track changes: if user changes comething in his profile he will see another link.

Here is my code in view:

    <% 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%>

or this is wrong and I should try something else ?

4

0 回答 0