Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
error when going to localhost/todo_lists
here is the error im getting for it
Started GET "/todo_lists" for ::1 at 2016-01-26 23:03:52 -0500
Processing by TodoListsController#index as HTML
TodoList Load (1.0ms) SELECT "todo_lists".* FROM "todo_lists"
Rendered todo_lists/index.html.erb within layouts/application (6.0ms)
Completed 500 Internal Server Error in 10113ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (TypeError: Object doesn't support this property or method):
5: <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
7: <%= csrf_meta_tags %>
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/actionpack-188.8.131.52/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/actionpack-184.108.40.206/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (97.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/actionpack-220.127.116.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/actionpack-18.104.22.168/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (197.0ms )
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/web-console-2.2.1/lib/web_console/templates/_markup.html.erb (1.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/web-console-2.2.1/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (1.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/web-console-2.2.1/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/web-console-2.2.1/lib/web_console/templates/style.css.erb within layouts/inlined_string (1.0ms)
Rendered C:/Ruby21/lib/ruby/gems/2.1.0/gems/web-console-2.2.1/lib/web_console/templates/index.html.erb (336.0ms)
please really confused
Alan Matthews10,161 Points
I found a similar problem on stack overflow. In your
app/views/layouts/application.html.erb around line 5 or 6, change
If that doesn't work, change your coffeescript gem in
routes.rb to this:
gem 'coffee-script-source', '1.8.0'
bundle to install the gem.
Thanks a lot it was able to help