Gaba Luschi
2011-Mar-09 02:17 UTC
error: action ''index'' could not be found for Userscontroller
When I go to my localhost:3000/users page, I get: Unknown action The action ''index'' could not be found for UsersController What does this mean? That I need to define "index" in my controller? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kleber Shimabuku
2011-Mar-09 02:27 UTC
Re: error: action ''index'' could not be found for Userscontroller
Yes, you have to create the action "index" in your controller (Users) def index end And then, need to create respective view for it. On 9 mar, 11:17, Gaba Luschi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> When I go to my localhost:3000/users page, I get: > > Unknown action > The action ''index'' could not be found for UsersController > > What does this mean? That I need to define "index" in my controller? > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jim Ruther Nill
2011-Mar-09 02:27 UTC
Re: error: action ''index'' could not be found for Userscontroller
On Wed, Mar 9, 2011 at 10:17 AM, Gaba Luschi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> When I go to my localhost:3000/users page, I get: > > Unknown action > The action ''index'' could not be found for UsersController > > What does this mean? That I need to define "index" in my controller? > >yup. define the action or just create an index.html.erb template in app/views/users.> -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.