Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Problem running Tracks on Ubuntu
 
magnusl
Posted: 21 October 2008 05:20 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2008-10-21

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’

Profile
 
Reinier Balt
Posted: 21 October 2008 06:30 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  577
Joined  2006-10-05

this is a known issue with tracks 1.6 on ubuntu. looks like it is an issue with ruby 1.8.7

the rails upgrade which is in the development tree solves the issue, so you could risk running latest dev.

Profile
 
   
 
 
‹‹ Initializer problem : No such file to load -- rails/version      HOWTO: Install Tracks on a CentOS 5 Server using Apache (proxy) and SSL ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1031 seconds

Atom Feed
RSS 2.0