Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby Trouble signing into treebook

When i try to login with my credentials on the log in page, It doesn't go on the next page, it remains static without bring the next page

the terminal page returns this errors which i cannot make sense of, can someone help?

Started GET "/login" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Processing by Devise::SessionsController#new as HTML
  Rendered devise/shared/_links.erb (0.5ms)
  Rendered devise/sessions/new.html.erb within layouts/application (8.2ms)
Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /application.css - 304 Not Modified (3ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /scaffolds.css - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/statuses.css?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /statuses.css - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /bootstrap.css - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /jquery.js - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /bootstrap.js - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/statuses.js?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /statuses.js - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-23 07:56:07 +0800
Served asset /application.js - 304 Not Modified (0ms)
[2013-07-23 07:56:07] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

1 Answer

Do you have a root defined in your routes.rb file? For example-

root to: "home#index"

From devise

-twiz

I do not think its defined, any idea how to do it?

Khor take a look at this video again (especially beginning at 3:00). The video explains how and why. If this is the issue I think it would be better to learn it this way than just having someone tell you the answer :)

-twiz

still dun get it, thanks for your input though

can you post your routes.rb file?

devise_for :users

devise_scope :user do routes.rb

get 'register', to: 'devise/registrations#new', as: :register
get 'login', to: 'devise/sessions#new', as: :login
get 'logout', to: 'devise/sessions#destroy', as: :logout

end

resources :statuses get 'feed', to: 'statuses#index', as: :feed root to: 'statuses#index'

But i have a doubt it has something to do with devise/sessions/new.html.erb

<%= simple_form_for(resource, :as => resource_name, :url =>session_path(resource_name),html: {class: "well"}) do |f| %>