Rafa_F
January 20, 2016, 5:26pm
1
No route matches {:action=>“index”, :controller=>“devise/registrations”}
my application.html.erb
<%= link_to "Home",:action => 'home' >
<% 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.
Read the configuration procedure again
On 20 Jan 2016 5:25 pm, “jai kumar” [email protected] wrote:
<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 G.
“Ruby on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected] .
To post to this group, send email to [email protected] .
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/65a57f1a-871a-4743-a43d-56b0409b902a%40googlegroups.com
.
my application.html.erb
<%= 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. Rails Routing from the Outside In — Ruby on Rails Guides
Walter
my devise working once i remove home link from application.html…