Missing template projects/index, application/index ?

871 views
Skip to first unread message

wragen22

unread,
Sep 22, 2012, 8:38:27 PM9/22/12
to rubyonra...@googlegroups.com
Getting this issue...even though I have my views there in both the projects and application.  Also getting a routes issue "No route matches [GET] "/projects" when going to projects when I have root :to => "projects#index" defined in my routes file.

Any idea?

 1) Creating Projects can create a project
     Failure/Error: visit '/'
     ActionView::MissingTemplate:
       Missing template projects/index, application/index with {:handlers=>[:builder, :coffee, :erb], :locale=>[:en], :formats=>[:html]}. Searched in:
         * "/Users/bradwrage/webapps/ticketee/app/views"
     # ./spec/integration/creating_projects_spec.rb:4

Finished in 0.10653 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/integration/creating_projects_spec.rb:3 # Creating Projects can create a project

Randomized with seed 62008

wragen22

unread,
Sep 23, 2012, 5:32:48 PM9/23/12
to rubyonra...@googlegroups.com
anybody?

wragen22

unread,
Sep 25, 2012, 12:32:55 AM9/25/12
to rubyonra...@googlegroups.com
Man..still can't figure this out..

Norbert Melzer

unread,
Sep 25, 2012, 1:32:56 AM9/25/12
to rubyonra...@googlegroups.com

Please show us your complete routes.rb without comments and the output of "ls app/views/projects", the contents of your ProjectsController could help as well.

--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/kGNqf2tWyp8J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

KUL KING

unread,
Sep 25, 2012, 1:47:21 AM9/25/12
to rubyonra...@googlegroups.com
Are you sure that there is an HTML view as well in this directory "Users/bradwrage/webapps/ticketee/app/views"?

--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-GTIF7go_V0J.

wragen22

unread,
Sep 25, 2012, 2:00:41 AM9/25/12
to rubyonra...@googlegroups.com
here is what is in my routes

Ticketee::Application.routes.draw do
  root :to => "projects#index"
end

As for the html view... i assumed my index.html.rb was just fine?

KUL KING

unread,
Sep 25, 2012, 2:02:27 AM9/25/12
to rubyonra...@googlegroups.com
Please double check the name. It should be index.html.erb not index.html.rb as you said.

To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qyOr0676dIMJ.
Reply all
Reply to author
Forward
0 new messages