No route matches {:action=>"index", :controller=>"devise/registrations"}


my application.html.erb


   <div class ="link1">
      <%= link_to "Home",:action => 'home' >
      </div>
      <div class ="link1">
             <% if userprof_signed_in? %>
    <%= link_to "Logout", destroy_userprof_session_path, method: :delete, :class => 'navbar-link' %>
<% else %>
   <%= link_to "Sign up", new_userprof_registration_path, :class => 'navbar-link' %> |
   <%= link_to "Login", new_userprof_session_path, :class => 'navbar-link' %>
<% end %>


i am able to see home and sign up link but when i am clicking on sign up link i am getting error:No route matches {:action=>"index", :controller=>"devise/registrations"}


need help.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/65a57f1a-871a-4743-a43d-56b0409b902a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Emmanuel Abia at Jan 20, 2016 at 4:44 pm
    Read the configuration procedure again
    On 20 Jan 2016 5:25 pm, "jai kumar" wrote:

    No route matches {:action=>"index", :controller=>"devise/registrations"}


    my application.html.erb


    <div class ="link1">
    <%= link_to "Home",:action => 'home' >
    </div>
    <div class ="link1">
    <% if userprof_signed_in? %>
    <%= link_to "Logout", destroy_userprof_session_path, method: :delete,
    :class => 'navbar-link' %>
    <% else %>
    <%= link_to "Sign up", new_userprof_registration_path, :class =>
    'navbar-link' %> |
    <%= link_to "Login", new_userprof_session_path, :class =>
    'navbar-link' %>
    <% end %>


    i am able to see home and sign up link but when i am clicking on sign up
    link i am getting error:No route matches {:action=>"index",
    :controller=>"devise/registrations"}

    need help.

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/rubyonrails-talk/65a57f1a-871a-4743-a43d-56b0409b902a%40googlegroups.com
    .
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHewxcHtw3ibR3vDGNV4N5syaqLZALqP4YcSkKmA_ZzX7%3Dgh0w%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.
  • Jai kumar at Jan 20, 2016 at 4:54 pm
    my devise working once i remove home link from application.html..
    On Wednesday, 20 January 2016 22:14:52 UTC+5:30, mode-x wrote:

    Read the configuration procedure again

    On 20 Jan 2016 5:25 pm, "jai kumar" <jai...@gmail.com <javascript:>>
    wrote:
    No route matches {:action=>"index", :controller=>"devise/registrations"}


    my application.html.erb


    <div class ="link1">
    <%= link_to "Home",:action => 'home' >
    </div>
    <div class ="link1">
    <% if userprof_signed_in? %>
    <%= link_to "Logout", destroy_userprof_session_path, method: :delete,
    :class => 'navbar-link' %>
    <% else %>
    <%= link_to "Sign up", new_userprof_registration_path, :class =>
    'navbar-link' %> |
    <%= link_to "Login", new_userprof_session_path, :class =>
    'navbar-link' %>
    <% end %>


    i am able to see home and sign up link but when i am clicking on sign
    up link i am getting error:No route matches {:action=>"index",
    :controller=>"devise/registrations"}

    need help.

    --
    You received this message because you are subscribed to the Google
    Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to rubyonrails-ta...@googlegroups.com <javascript:>.
    To post to this group, send email to rubyonra...@googlegroups.com
    <javascript:>.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/rubyonrails-talk/65a57f1a-871a-4743-a43d-56b0409b902a%40googlegroups.com
    .
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c22b5bce-a7d6-4903-86cb-9a924837930d%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Walter Lee Davis at Jan 21, 2016 at 2:19 pm

    On Jan 20, 2016, at 11:54 AM, jai kumar wrote:

    my devise working once i remove home link from application.html..

    On Wednesday, 20 January 2016 22:14:52 UTC+5:30, mode-x wrote:
    Read the configuration procedure again
    On 20 Jan 2016 5:25 pm, "jai kumar" wrote:

    No route matches {:action=>"index", :controller=>"devise/registrations"}


    my application.html.erb


    <div class ="link1">
    <%= link_to "Home",:action => 'home' >
    That's your problem -- illegal route. Maybe you want link_to( "Home", :root ) instead.

    If you haven't read Routing from the Outside In lately, now is a perfect time to do so. http://guides.rubyonrails.org/routing.html

    Walter
    </div>
    <div class ="link1">
    <% if userprof_signed_in? %>
    <%= link_to "Logout", destroy_userprof_session_path, method: :delete, :class => 'navbar-link' %>
    <% else %>
    <%= link_to "Sign up", new_userprof_registration_path, :class => 'navbar-link' %> |
    <%= link_to "Login", new_userprof_session_path, :class => 'navbar-link' %>
    <% end %>


    i am able to see home and sign up link but when i am clicking on sign up link i am getting error:No route matches {:action=>"index", :controller=>"devise/registrations"}


    need help.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
    To post to this group, send email to rubyonra...@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/65a57f1a-871a-4743-a43d-56b0409b902a%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c22b5bce-a7d6-4903-86cb-9a924837930d%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/28AD129B-1DB6-455A-AAF1-9C6E1BB148B9%40wdstudio.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 20, '16 at 4:25p
activeJan 21, '16 at 2:19p
posts4
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase