Fresh install fails on timezone_path route #121

Closed
giorgio opened this Issue Mar 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants

giorgio commented Mar 29, 2012

I have installed ffcrm on a macbook
I am using rvm with ruby 1.87 and rails 3.2.2

I have manually installed the mysql2 gem as the bundler did not do it.

I have run the rake task to create an admin user.

My database has the ffcrm tables.

When I run the server and browse to localhost:3000 I get the following stack trace.
There appears to be a problem with one of the routes but my Rails experience is almost entirely with Rails 1 and Rails 2 and I always use plain old simple controller/action type routes and I cant figure out what is going on.
Any help appreciated.

<<<<<<< server log >>>>>>>>>>>>>>>>>
Started GET "/" for 127.0.0.1 at Thu Mar 29 15:19:42 +1300 2012
Processing by HomeController#index as HTML
Setting Load (0.5ms) SELECT settings.* FROM settings WHERE settings.name = 'locale' LIMIT 1
Redirected to http://localhost:3000/login
Filter chain halted as :require_user rendered or redirected
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)

Started GET "/login" for 127.0.0.1 at Thu Mar 29 15:19:42 +1300 2012
Processing by AuthenticationsController#new as HTML
Setting Load (0.4ms) SELECT settings.* FROM settings WHERE settings.name = 'locale' LIMIT 1
Setting Load (0.3ms) SELECT settings.* FROM settings WHERE settings.name = 'user_signup' LIMIT 1
Rendered authentications/new.html.haml within layouts/application (7.5ms)
Rendered layouts/_header.html.haml (1.4ms)
Rendered layouts/_about.html.haml (1.7ms)
Rendered layouts/_footer.html.haml (11.2ms)
Rendered layouts/_tabless.html.haml (18.1ms)
Setting Load (0.4ms) SELECT settings.* FROM settings WHERE settings.name = 'base_url' LIMIT 1
Completed 500 Internal Server Error in 50153ms

ActionView::Template::Error (undefined local variable or method timezone_path' for #<#<Class:0x12aac7378>:0x12aa59f08>): 37: 38: %script{:type => "text/javascript"} 39: = "crm.base_url = '#{Setting.base_url}';" unless Setting.base_url.blank? 40: = get_browser_timezone_offset 41: = content_for :javascript_epilogue 42: = hook(:javascript_epilogue, self) app/helpers/application_helper.rb:287:inget_browser_timezone_offset'
app/views/layouts/application.html.haml:40:in `_app_views_layouts_application_html_haml___970725340_2505322340'

Rendered /Users/george/.rvm/gems/ruby-1.8.7-p334@rails322/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/george/.rvm/gems/ruby-1.8.7-p334@rails322/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
Rendered /Users/george/.rvm/gems/ruby-1.8.7-p334@rails322/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (32.0ms)

<<<<< end of log >>>>>>>>

Regards
George Richardson

Owner

steveyken commented Dec 27, 2012

This appears fixed.

@steveyken steveyken closed this Dec 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment