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?
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?
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 Wed, Mar 9, 2011 at 10:17 AM, Gaba L. [email protected]
wrote:
When I go to my localhost:3000/users page, I get:
Unknown action
The action ‘index’ could not be found for UsersControllerWhat 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.
–
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs