When I navigate to my categories/new url I get the following error:
Errno::ENOENT in Categories#new
Showing c:/Users/Javi/desktop/rails_projects/testing_basics/app/views/layouts/application.html.erb where line #6 raised:
No such file or directory # unlink_internal - C:/Users/Javi/AppData/Local/Temp/execjs20150429-4112-xc20tpjson
Rails.root: c:/Users/Javi/desktop/rails_projects/testing_basics
What does this mean? This a bit above my expertise..
This is my stack trace:
Started GET "/" for ::1 at 2015-04-29 16:43:08 -0700
ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by Rails::WelcomeController#index as HTML
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.1/lib/rails/templates/rails/welcome/index.h
tml.erb (42.0ms)
Completed 200 OK in 382ms (Views: 266.7ms | ActiveRecord: 0.0ms)
Started GET "/categories/new" for ::1 at 2015-04-29 16:43:14 -0700
Processing by CategoriesController#new as HTML
Rendered categories/new.html.erb within layouts/application (286.2ms)
Completed 500 Internal Server Error in 1434ms (ActiveRecord: 3.0ms)
ActionView::Template::Error (No such file or directory # unlink_internal - C:/Users/Javi/AppData/Local/Temp/execjs201504
29-6172-1x8co6xjson):
3: <head>
4: <title>TestingBasics</title>
5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__246374537_52769568'
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/template
s/rescues/_source.erb (1.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/template
s/rescues/_trace.html.erb (10.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/template
s/rescues/_request_and_response.html.erb (1.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/template
s/rescues/template_error.html.erb within rescues/layout (258.6ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html
.erb (0.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.er
b within layouts/inlined_string (0.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_conso
le_markup.html.erb within layouts/inlined_string (0.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_
markup.html.erb within layouts/inlined_string (0.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.e
rb within layouts/javascript (268.8ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb
within layouts/javascript (1.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.j
s.erb within layouts/javascript (1.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.e
rb (617.9ms)
Seems like it might be a gem problem? Or maybe I accidentally deleted something in a recent project that is messing with my rails installer or devkit and the likes?
Rails requires a Javascript execution library. Install nodejs, or include the therubyracer gem in your gemfile.
Related
I have a controller action that's being called three times per browser request. Any ideas? config/routes.rb and application_controller.rb are totally straightforward.
Code below,
config/routes.rb
Rails.application.routes.draw do
root 'tiles#index'
+
controllers/tiles_controller.rb
class TilesController < ApplicationController
def index
puts "this line prints three times in the console per request"
end
+
tiles/index.html.erb
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
<div id="tiles">
<%= render "tile", tile: { type: "sam", id: "0" } %>
<%= render "tile", tile: { type: "inputs", id: "1" } %>
<%= render collection: #tiles, partial: "tile" %>
<%= render "tile", tile: { type: "social", id: "1000" } %>
</div>
+
This is the console log:
log/development.log
Started GET "/" for 127.0.0.1 at 2017-08-31 16:56:28 -0400
Processing by TilesController#index as HTML
Started GET "/" for 127.0.0.1 at 2017-08-31 16:56:28 -0400
Processing by TilesController#index as HTML
[1m[36mProject Load (0.5ms)[0m [1m[34mSELECT "projects".* FROM "projects" ORDER BY "projects"."launch_date" ASC LIMIT $1[0m [["LIMIT", 10]]
[1m[36mProject Load (9.1ms)[0m [1m[34mSELECT "projects".* FROM "projects" ORDER BY "projects"."launch_date" ASC LIMIT $1[0m [["LIMIT", 10]]
Rendering tiles/index.html.erb within layouts/application
Rendered tiles/_tile_sam.html.erb (0.3ms)
Rendered tiles/_tile.html.erb (8.0ms)
Rendering tiles/index.html.erb within layouts/application
Rendered tiles/_tile_sam.html.erb (0.0ms)
Rendered tiles/_tile.html.erb (0.9ms)
Rendered tiles/_tile_instagram.html.erb (12.6ms)
...
Rendered tiles/_tile_twitter.html.erb (0.5ms)
Rendered collection of tiles/_tile.html.erb [48 times] (125.9ms)
Rendered tiles/_tile_project.html.erb (0.1ms)
Rendered tiles/_tile_social.html.erb (0.6ms)
Rendered tiles/_tile.html.erb (2.7ms)
Rendered tiles/index.html.erb within layouts/application (166.1ms)
Rendered tiles/_tile_twitter.html.erb (0.6ms)
...
Rendered collection of tiles/_tile.html.erb [48 times] (158.5ms)
Rendered tiles/_tile_social.html.erb (0.1ms)
Rendered tiles/_tile.html.erb (1.0ms)
Rendered tiles/index.html.erb within layouts/application (165.3ms)
Completed 200 OK in 1310ms (Views: 217.1ms | ActiveRecord: 9.1ms)
Completed 200 OK in 1325ms (Views: 204.5ms | ActiveRecord: 0.5ms)
Help!
WOW
Finally figured this one out by removing code related to this action/view line by line. Basically, I was generating a few img tags with empty src fields. Apparently this causes many modern browsers to load a website several times, possibly in an attempt to find missing images or assuming the root URL is the image itself?
Found the behavior cited here:
https://forums.asp.net/t/1804472.aspx?Bizzare+safari+thing+two+page+loads+for+each+page+
page loads twice in Google chrome
Table Name in SQL : road_ratings
Route:
get '/roadRatings', to: "road_ratings#index"
Controller: road_ratings_controller.rb
class RoadRatingsController < ApplicationController
def index
#data = RoadRating.all
render json: #data
end
end
Model: road_rating.rb
class RoadRating < ActiveRecord::Base
end
Upon running the above API, I get the error in rails server logs
NoMethodError (undefined method `fetch_value' for nil:NilClass):
And following error on browser
NoMethodError in RoadRatingsController#index
However when I run the query SELECTroad_ratings.* FROMroad_ratingsLIMIT 1 generated in rails logs on SQL, I get the correct result
Rails Logs:
Started GET "/roadRatings" for ::1 at 2016-10-04 23:55:57 -0400
Processing by RoadRatingsController#index as HTML
RoadRating Load (0.4ms) SELECT `road_ratings`.* FROM `road_ratings` LIMIT 1
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms)
NoMethodError (undefined method `fetch_value' for nil:NilClass):
app/controllers/road_ratings_controller.rb:4:in `index'
Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.1ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (0.8ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.4ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (16.7ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.7ms)
Rendered /Library/Ruby/Gems/2.0.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (39.4ms)
Rake Routes:
Kartiks-MacBook-Air:Mayor_project kartik$ rake routes
Prefix Verb URI Pattern Controller#Action
GET / home#default
streets GET /streets(.:format) streets#index
GET /street/:id(.:format) streets#show
potholes GET /potholes(.:format) potholes#index
roadRatings GET /roadRatings(.:format) road_ratings#index
Decided to learn React+Rails. I want to render a simple component that looks like this:
app.js
var App = React.createClass({
render: function() {
return (
<div>
Hello React first component.
</div>
);
}
});
ReactDOM.render(
<App />,
document.getElementById('content')
);
react_controller.rb
class ReactController < ApplicationController
def index
render component: 'App'
end
end
view/react/index.html.erb
<%= react_component 'App' %>
I believe this is enough to show text on my screen. I'm getting:
routes.rb
Rails.application.routes.draw do
root 'react#index'
end
And I'm using the react-rails gem.
From the server (local) I get (apparently there's a syntax error somewhere):
Started GET "/" for ::1 at 2016-07-15 07:06:30 +0200
Processing by ReactController#index as HTML
Completed 500 Internal Server Error in 439ms (ActiveRecord: 0.0ms)
ExecJS::RuntimeError (/private/var/folders/86/mvj6bh4j2k94f52_s9xflmf00000gn/T/execjs20160715-4782-pustjs:22203
<div>
^
SyntaxError: Unexpected token <
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:511:25)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:159:18)
at node.js:444:3
):
app/controllers/react_controller.rb:3:in `index'
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1#global/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.1ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1#global/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.0ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1#global/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1#global/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (73.6ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (1.3ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (1.1ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.9ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.4ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (64.8ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.4ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
Rendered /Users/siaw/.rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (144.0ms)
Try renaming app.js to app.jsx. Also, no need to manually mount component and use react_component at the same time.
I have a Rails app on Heroku that I don't visit very often. When I visited it today, I got the standard Rails error message
We're sorry, but something went wrong.
I ran heroku logs to try to figure out what the problem was, but the logs don't say anything that would explain the error (to me).
What do you do in this situation?
2013-11-04T22:52:07.048102+00:00 app[web.1]: Processing by PostsController#index as HTML
2013-11-04T22:52:07.132891+00:00 app[web.1]: Rendered posts/_post.html.erb (13.2ms)
2013-11-04T22:52:07.133396+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.146333+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.147977+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.148485+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.151556+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.175334+00:00 app[web.1]: Rendered posts/_post.html.erb (12.5ms)
2013-11-04T22:52:07.183576+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.188420+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212161+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212742+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.226959+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.246992+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.243411+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.296351+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.297843+00:00 app[web.1]: Rendered shared/_analytics.html.erb (0.0ms)
2013-11-04T22:52:07.308385+00:00 app[web.1]: Rendered posts/_total.html.erb (0.7ms)
2013-11-04T22:52:07.399532+00:00 app[web.1]: Rendered posts/index.html.erb within layouts/application (311.6ms)
2013-11-04T22:52:07.399720+00:00 app[web.1]: Completed in 351ms
2013-11-04T22:52:07.398061+00:00 app[web.1]: Rendered shared/_stats.html.erb (44.1ms)
2013-11-04T22:52:07.429348+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.429836+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_session.text.erb (0.3ms)
2013-11-04T22:52:07.428209+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_request.text.erb (1.3ms)
2013-11-04T22:52:07.430004+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.0ms)
2013-11-04T22:52:07.737679+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (0.2ms)
2013-11-04T22:52:07.733934+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_environment.text.erb (303.5ms)
2013-11-04T22:52:07.734305+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.741156+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (314.7ms)
2013-11-04T22:52:07.740339+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]: Sent mail to myemail#gmail.com (67ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]:
Set up a free version of one of the logging add-ons like Papertrail. Try them all out and see which you prefer.
If you want an E-mail, I don't think you can configure an error E-mail through Heroku per se, but you can use the free version of the Sendgrid add-on to send error information to yourself in a rescue block or rescue_from Exception, :with => :email_error_info in your ApplicationController.
I am working on my local on an app that used to work perfectly. But now, I get this message error when connecting to my localhost. I use the devise-2.2.3 gem
Started GET "/users/sign_in" for 127.0.0.1 at 2013-08-12 16:54:42 +0200
Creating scope :closed. Overwriting existing method MergeRequest.closed.
Processing by Devise::SessionsController#new as HTML
Rendered devise/sessions/new.html.haml within layouts/devise (1.8ms)
Rendered layouts/_head.html.haml (26.1ms)
Completed 500 Internal Server Error in 59ms
The I noticed there were no layouts/_head.html.haml. So does somebody has an idea of the origin of such an error ?
As suggested, I post the full stack though I don't think it is much informative than what I posted before ;)
Started GET "/users/sign_in" for 127.0.0.1 at 2013-08-12 17:16:27 +0200
Processing by Devise::SessionsController#new as HTML
Rendered devise/sessions/new.html.haml within layouts/devise (1.8ms)
Rendered layouts/_head.html.haml (88.1ms)
Completed 500 Internal Server Error in 94ms
ActionView::Template::Error (SyntaxError: unexpected IDENTIFIER
(in /Users/git/gitlab/app/assets/javascripts/application.js.coffee)):
5: GitLab
6: = favicon_link_tag 'favicon.ico'
7: = stylesheet_link_tag "application"
8: = javascript_include_tag "application", "internationalization.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"
9: = csrf_meta_tags
10: = include_gon
11:
app/views/layouts/_head.html.haml:8:in `_app_views_layouts__head_html_haml__3074448813358061809_70101269487200'
app/views/layouts/devise.html.haml:3:in `_app_views_layouts_devise_html_haml__1317746148502442303_70101202019240'
Started GET "/static.css" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"static.css"}
Completed 401 Unauthorized in 0ms
Started GET "/users/sign_in" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by Devise::SessionsController#new as HTML
Rendered devise/sessions/new.html.haml within layouts/devise (1.9ms)
Rendered layouts/_head.html.haml (25.9ms)
Completed 500 Internal Server Error in 32ms
ActionView::Template::Error (SyntaxError: unexpected IDENTIFIER
(in /Users/git/gitlab/app/assets/javascripts/application.js.coffee)):
5: GitLab
6: = favicon_link_tag 'favicon.ico'
7: = stylesheet_link_tag "application"
8: = javascript_include_tag "application", "internationalization.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"
9: = csrf_meta_tags
10: = include_gon
11:
app/views/layouts/_head.html.haml:8:in `_app_views_layouts__head_html_haml__3074448813358061809_70101269487200'
app/views/layouts/devise.html.haml:3:in `_app_views_layouts_devise_html_haml__1317746148502442303_70101202019240'
Started GET "/favicon.ico" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by ProjectsController#show as */*
Parameters: {"id"=>"favicon.ico"}
Completed 401 Unauthorized in 0ms
Started GET "/users/sign_in" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by Devise::SessionsController#new as */*
Rendered devise/sessions/new.html.haml within layouts/devise (1.8ms)
Rendered layouts/_head.html.haml (27.2ms)
Completed 500 Internal Server Error in 33ms
ActionView::Template::Error (SyntaxError: unexpected IDENTIFIER
(in /Users/git/gitlab/app/assets/javascripts/application.js.coffee)):
5: GitLab
6: = favicon_link_tag 'favicon.ico'
7: = stylesheet_link_tag "application"
8: = javascript_include_tag "application", "internationalization.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"
9: = csrf_meta_tags
10: = include_gon
11:
app/views/layouts/_head.html.haml:8:in `_app_views_layouts__head_html_haml__3074448813358061809_70101269487200'
app/views/layouts/devise.html.haml:3:in `_app_views_layouts_devise_html_haml__1317746148502442303_70101202019240'
Started GET "/favicon.ico" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by ProjectsController#show as */*
Parameters: {"id"=>"favicon.ico"}
Completed 401 Unauthorized in 0ms
Started GET "/users/sign_in" for 127.0.0.1 at 2013-08-12 17:16:28 +0200
Processing by Devise::SessionsController#new as */*
Rendered devise/sessions/new.html.haml within layouts/devise (1.8ms)
Rendered layouts/_head.html.haml (25.0ms)
Completed 500 Internal Server Error in 31ms
ActionView::Template::Error (SyntaxError: unexpected IDENTIFIER
(in /Users/git/gitlab/app/assets/javascripts/application.js.coffee)):
5: GitLab
6: = favicon_link_tag 'favicon.ico'
7: = stylesheet_link_tag "application"
8: = javascript_include_tag "application", "internationalization.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"
9: = csrf_meta_tags
10: = include_gon
11:
app/views/layouts/_head.html.haml:8:in `_app_views_layouts__head_html_haml__3074448813358061809_70101269487200'
app/views/layouts/devise.html.haml:3:in `_app_views_layouts_devise_html_haml__1317746148502442303_70101202019240'
Well, the layout is not your issue (I don't think), when posting an error on stack overflow, it's super important that you post the stack trace.
The stack trace is the holy grail that holds all of the knowledge about the error, and without it, we are totally lost. Post the stack trace, and try restarting your rails server. Make sure you migrate your database, and then maybe we can fix the error.
This line:
= javascript_include_tag "application", "internationalization.js", "http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"
is broken.
I'm not sure why, probably because you've listed out the JS filess on the same line. There may be a problem with the javascript file itself, not sure, but that is where the error is.