Discussion:
ActionView::TemplateError
James Royal-Lawson
2012-06-19 09:55:36 UTC
Permalink
Hi again everyone,

I'm almost up and running with my upgraded Tracks 2.1

I can log in, I can access a fair few pages (preferences, manage users,
tickler, statistics, feeds, repeating to-dos)
I've also managed to update my preferences.

I can't though view "home", "projects", "calendar" or add/edit a todo. All
of those result in a server 500 error.

Here is what is in the production.log after i've clicked on "home"... (it's
the same "ActionView::TemplateError (undefined method `rendered_notes'
for..." error in all of these cases...)


Processing TodosController#index (for 194.71.123.2 at 2012-06-19 11:52:46)
[GET]
Rendering template within layouts/standard
Rendering todos/index

ActionView::TemplateError (undefined method `rendered_notes' for
#<Todo:0x7f0b0712e418>) on line #36 of app/views/todos/_todo.html.erb:
33: <%= tag_list(todo) %>
34: <%= deferred_due_date(todo) %>
35: <%= project_and_context_links( todo, parent_container_type,
:suppress_context => suppress_context, :suppress_project =>
suppress_project )
%>
36: <%= collapsed_notes_image(todo) unless todo.notes.blank? %>
37: <%= collapsed_successors_image(todo) if
todo.has_pending_successors %>
38: </div>
39: </div>

app/helpers/todos_helper.rb:68
app/helpers/todos_helper.rb:68:in `collapsed_notes_image'
app/views/todos/_todo.html.erb:36
app/views/contexts/_context.rhtml:18:in
`_run_rhtml_app47views47contexts47_context46rhtml_locals_collapsible_context_context_counter_object'
app/views/todos/index.html.erb:9
app/controllers/todos_controller.rb:1205
app/controllers/todos_controller.rb:26:in `index'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:96:in
`process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'

/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'

/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in
`send'

/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in
`handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'

/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'

/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149:in
`start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99

Rendering /var/tracks/public/500.html (500 Internal Server Error)


Any ideas?

/James
--
James Royal-Lawson
Beantin webbkommunikation
www.beantin.se | @beantin <http://twitter.com/beantin>
+46 73 593 16 54 | james-GeLqa/xcZMDLoDKTGw+***@public.gmane.org
Reinier Balt
2012-06-19 09:58:12 UTC
Permalink
I think you forgot to migrate your database using rake db:migrate.



Reinier



Van: tracks-discuss-bounces-g9ZBwUv/***@public.gmane.org
[mailto:tracks-discuss-bounces-g9ZBwUv/***@public.gmane.org] Namens James
Royal-Lawson
Verzonden: dinsdag 19 juni 2012 11:56
Aan: tracks-discuss-g9ZBwUv/***@public.gmane.org
Onderwerp: [Tracks-discuss] ActionView::TemplateError



Hi again everyone,



I'm almost up and running with my upgraded Tracks 2.1



I can log in, I can access a fair few pages (preferences, manage users,
tickler, statistics, feeds, repeating to-dos)

I've also managed to update my preferences.



I can't though view "home", "projects", "calendar" or add/edit a todo. All
of those result in a server 500 error.



Here is what is in the production.log after i've clicked on "home"... (it's
the same "ActionView::TemplateError (undefined method `rendered_notes'
for..." error in all of these cases...)





Processing TodosController#index (for 194.71.123.2 at 2012-06-19 11:52:46)
[GET]

Rendering template within layouts/standard

Rendering todos/index



ActionView::TemplateError (undefined method `rendered_notes' for
#<Todo:0x7f0b0712e418>) on line #36 of app/views/todos/_todo.html.erb:

33: <%= tag_list(todo) %>

34: <%= deferred_due_date(todo) %>

35: <%= project_and_context_links( todo, parent_container_type,
:suppress_context => suppress_context, :suppress_project => suppress_project
)

%>

36: <%= collapsed_notes_image(todo) unless todo.notes.blank? %>

37: <%= collapsed_successors_image(todo) if
todo.has_pending_successors %>

38: </div>

39: </div>



app/helpers/todos_helper.rb:68

app/helpers/todos_helper.rb:68:in `collapsed_notes_image'

app/views/todos/_todo.html.erb:36

app/views/contexts/_context.rhtml:18:in
`_run_rhtml_app47views47contexts47_context46rhtml_locals_collapsible_context
_context_counter_object'

app/views/todos/index.html.erb:9

app/controllers/todos_controller.rb:1205

app/controllers/todos_controller.rb:26:in `index'

/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:96:in
`process_request'

/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'

/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'


/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321
:in `start_request_handler'


/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275
:in `send'


/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275
:in `handle_spawn_application'

/usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'


/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270
:in `handle_spawn_application'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'


/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149
:in `start'

/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'

/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'

/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'

/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'

/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'

/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'

/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99



Rendering /var/tracks/public/500.html (500 Internal Server Error)





Any ideas?



/James
--
James Royal-Lawson

Beantin webbkommunikation

www.beantin.se <http://www.beantin.se/> | @beantin
<http://twitter.com/beantin>

+46 73 593 16 54 | james-GeLqa/xcZMDLoDKTGw+***@public.gmane.org

<Loading Image...>
James Royal-Lawson
2012-06-19 10:31:16 UTC
Permalink
Hi Reinier,

Nope - that step I did...

(that step is clearly written in the upgrade instructions on the gettracks
site)

I did have to delete and recreate my (admin) user and preferences though as
I lost my salt phrase during the upgrading - if that could be related?

/James
I think you forgot to migrate your database using rake db:migrate.****
** **
Reinier****
** **
*Verzonden:* dinsdag 19 juni 2012 11:56
*Onderwerp:* [Tracks-discuss] ActionView::TemplateError****
** **
Hi again everyone,****
** **
I'm almost up and running with my upgraded Tracks 2.1****
** **
I can log in, I can access a fair few pages (preferences, manage users,
tickler, statistics, feeds, repeating to-dos)****
I've also managed to update my preferences.****
** **
I can't though view "home", "projects", "calendar" or add/edit a todo. All
of those result in a server 500 error.****
** **
Here is what is in the production.log after i've clicked on "home"...
(it's the same "ActionView::TemplateError (undefined method
`rendered_notes' for..." error in all of these cases...)****
** **
** **
Processing TodosController#index (for 194.71.123.2 at 2012-06-19 11:52:46)
[GET]****
Rendering template within layouts/standard****
Rendering todos/index****
** **
ActionView::TemplateError (undefined method `rendered_notes' for
#<Todo:0x7f0b0712e418>) on line #36 of app/views/todos/_todo.html.erb:****
33: <%= tag_list(todo) %>****
34: <%= deferred_due_date(todo) %>****
35: <%= project_and_context_links( todo, parent_container_type,
:suppress_context => suppress_context, :suppress_project =>
suppress_project )****
%>****
36: <%= collapsed_notes_image(todo) unless todo.notes.blank? %>****
37: <%= collapsed_successors_image(todo) if
todo.has_pending_successors %>****
38: </div>****
39: </div>****
** **
app/helpers/todos_helper.rb:68****
app/helpers/todos_helper.rb:68:in `collapsed_notes_image'****
app/views/todos/_todo.html.erb:36****
app/views/contexts/_context.rhtml:18:in
`_run_rhtml_app47views47contexts47_context46rhtml_locals_collapsible_context_context_counter_object'
****
app/views/todos/index.html.erb:9****
app/controllers/todos_controller.rb:1205****
app/controllers/todos_controller.rb:26:in `index'****
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:96:in
`process_request'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'****
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'****
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in
`send'****
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in
`handle_spawn_application'****
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'****
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`__send__'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'*
***
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149:in
`start'****
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'****
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'****
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'****
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'****
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`__send__'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'****
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'****
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99*
***
** **
Rendering /var/tracks/public/500.html (500 Internal Server Error)****
** **
** **
Any ideas?****
** **
/James****
-- ****
James Royal-Lawson****
Beantin webbkommunikation****
****
** **
--
James Royal-Lawson
Beantin webbkommunikation
www.beantin.se | @beantin <http://twitter.com/beantin>
+46 73 593 16 54 | james-GeLqa/xcZMDLoDKTGw+***@public.gmane.org
Loading...