Hi!
I have tried to install and runt Tracks on a ubuntu 8.04 (heron) machine, using my existing mysql database, or sqlite3. I install sqlite, ruby, rubygems etc through ubuntus repost, and downloaded tracks-current.zip. Install works fine, and I point my browser to http://0.0.0.0:3000/signup, and can enter info for an admin user.
Then I get errors, in the browser - see below. What might be wrong? This occurs regardless of using mysql or sqlite3.
Some info first:
$ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
$ dpkg -l | grep rails
ii rails 2.1.0-4
What to check and do?
Magnus
Errors from browser:
NoMethodError in Todos#index
Showing layouts/standard.html.erb where line #40 raised:
undefined method `[]’ for #<Enumerable::Enumerator:0xb6fb5ebc>
Extracted source (around line #40):
37: </div>
38: <div id=“minilinks”>
39: <%= link_to_function(“Toggle notes”, nil, {:accesskey => “S”, :title => “Toggle all notes”, :id => “toggle-notes-nav”}) do |page|
40: page.select(‘body .todo_notes’).each { |e| e.toggle }
41: end
42: -%> |
43: <%= link_to “Logout (#{current_user.display_name}) »”, logout_path %>
RAILS_ROOT: /home/magnus/bin/tracks/tracks-1.6
Application Trace | Framework Trace | Full Trace
vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb:43:in `first’
vendor/rails/activesupport/lib/active_support/inflector.rb:151:in `camelize’
vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:49:in `camelize’
vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:1237:in `enumerate’
vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:1219:in `method_missing’
app/views/layouts/standard.html.erb:40:in `_run_erb_47app47views47layouts47standard46html46erb’
app/views/layouts/standard.html.erb:39:in `_run_erb_47app47views47layouts47standard46html46erb’
app/controllers/todos_controller.rb:568:in `render_todos_html’
app/controllers/todos_controller.rb:18:in `index’
