manno / frab

conference manangement system
7 stars 3 forks source link

syntax errors w/ ruby 1.9.2 #64

Closed fin closed 12 years ago

fin commented 12 years ago

hey,

i'm getting syntax errors when running this even w/ ruby 1.9.2

SyntaxError in Conferences#new

Showing /Users/fin/Projects/2012-playvienna/frab/app/views/conferences/_form.html.haml where line #16 raised:

compile error
/Users/fin/Projects/2012-playvienna/frab/app/views/conferences/_form.html.haml:16: syntax error, unexpected ':', expecting ')'
...input :schedule_version, hint: "What is the current schedule...
                              ^
/Users/fin/Projects/2012-playvienna/frab/app/views/conferences/_form.html.haml:17: syntax error, unexpected ':', expecting ')'
....input :schedule_public, hint: "Is the dynamic schedule publ...
                              ^

is a higher ruby version required, or have i just missed a global flag somewhere enabling the hash colon syntax?

thanks.

manno commented 12 years ago

Oops, that's 1.9.3 syntax.

I'm not sure the current master will work, I'm changing a lot of code at the moment.

If your conference is now, you might want to fall back to commit 7842db7ccc30a947dd41b4012b4af58a02f45115 (22. July).

manno commented 12 years ago

Switched back to old syntax

fin commented 12 years ago

and here i was thinking it was 1.9 syntax. sorry for the confusion & thank you.

cyberaguiar commented 12 years ago

I getting some sintax error, maybe it's the same problem.

ruby -v -ruby 1.9.3p194

gem -v -1.8.24

rails -v -Rails 3.2.7

Open: http://localhost:3000/

SyntaxError (/home/72767863587/rails/frab/katastrophie/lib/rt_tickets.rb:104: syntax error, unexpected ':', expecting ')' args.reverse_update(body: '', test_only: false) ^): app/helpers/tickets_helper.rb:5 app/controllers/application_controller.rb:1 app/controllers/home_controller.rb:1