i using devise , registration form shows @ /signup path want page same registration form different text @ top.
i can see signup page in /views/devise/registration/new.html.erb how make copy of , show @ /signup_new ?
edit - using
devise_for :users 'signup_new', :to => 'devise/registrations#new' end
and above code have got signup_new redirecting form want different text show @ top of it. how can since right now, both /signup , /signup_new pointing same form/page. tried copy new.html.erb , created signup_new.html.erb not working
in devise view, display different things based on request url:
<% if request.fullpath.include?('signup_new') %> <%= 'text 1' %> <% else %> <%= 'text 2' %> <% end %>
side note: should not have 2 different urls pointing same content, google called duplicate content.
Comments
Post a Comment