similar to: Rake aborted - syntax error, unexpected $end, expecting kEND

Displaying 20 results from an estimated 8000 matches similar to: "Rake aborted - syntax error, unexpected $end, expecting kEND"

2010 Jun 17
1
syntax error, unexpected kEND, expecting $end
I get this error /Users/sopira/rubydev/hello/app/models/spracovatel.rb:5: syntax error, unexpected kEND, expecting $end on the 5th line of the code, which has got just (and only) 5 line: CODE: Class Spracovatel def spracovat return 5 end end What can cause this error? After digging all the internet I have not found any idea. Maybe here. Thanks, Michael. -- You received this message
2008 Nov 22
4
"syntax error, unexpected tIDENTIFIER , expecting kEND" in RJS response
I get a "syntax error, unexpected tIDENTIFIER, expecting kEND" when the following RJS template is rendered: page.insert_html :bottom, :requisite_table, :partial => "insert_jobrequisite_select", :locals => {:job => @job, :counter => @counter} page.alert("hi") The same RJS template is rendered without errors as soon as the rjs file has only one single
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
Please help me solve the following error message: syntax error, unexpected tINTEGER, expecting $end I have this model: Code: 1. class GeoDatum < ActiveRecord::Base 2. end The database contains the table geo_data, which contains the zip_code column, filled with zip codes. I get the above error when searching for a zip code and the zip code exists in the table. Here is the
2008 Dec 20
3
rake aborted (wrong number of arguments)
I''m following a tutorial here to get some columns in my database. I generated a model called ''product'' then I edited ''db/001_create_products.rb'' to have a few columns but when I try to migrate I get this error: bio4054059:depot rmorourk$ rake db:migrate (in /Users/rmorourk/Sites/depot) == CreateProducts: migrating
2006 Apr 20
4
Newbee rake migrate question
with a simple table def. class Objects < ActiveRecord::Migration def self.up create_table :objects do |table| table.column :name, string end def self.down drop_table :objects end end when I run rake migrate, I get: ** Invoke migrate (first_time) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake
2011 May 03
1
syntax error, unexpected $end, expecting rASSOC
I added this to my db/seeds.rb: user = User.create :email => ''another-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org'', "password => ''guessit'' Category.create [{:name => ''Programming''}, {:name => ''Event''}, {:name => ''Travel''}, {:name => ''Music''},
2007 Jan 30
2
How to use migrations to convert engine type to InnoDB?
I''ve been looking through some references but can''t seem to find the right syntax and commands. I basically just want to have a migration to convert my db and all my tables to InnoDB. Does anyone know a tutorial or the migration syntax to do this? Thanks in advance :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Aug 07
8
Syntax Problem
In an *.rhtml, why do I need to add <% for product in @products %> in order that I may call an <img class="list-image" src="<%= product.img_url %>"/>. Is there not another way to skip the "for product" line? I really dont want to include it. I tried @products = product but it does not work. Can anyone help shed light on this matter? -- Posted via
2005 Dec 17
4
Rake migrate and creating join tables
Just wondering if there''s a way to use migrations to generate join tables (where the table columns comprise only of foreign keys to other tables, and where the primary key is all the foreign keys taken together). I made the changes manually in MySQL, then did rake db_schema_dump and it gave something like this: create_table "apples_oranges", :id => false, :force
2006 Aug 18
1
Migration crashes when using braces to delimit blocks
Hi, I have been using a bit of ruby here and there for scripting jobs for a year or so, and more recently have started dabbling in rails. I was wondering if anyone can help me with a strange behaviour I am getting when trying to run a migration. If I delimit a block for the create_table method with braces, the migration crashes, whereas the exact same code with the braces replaced by
2010 Apr 20
1
dashboard: rake install fails (Solaris10)
Hi all, I am trying to install dashboard 1.0.0rc1. Independantly if have manually installed authlogic - gem or not it is throwing the following trace. The problem is the same when I am resetting (rake db:reset) or dropping the database. any ideas? best regards Lutz bash-3.00# rake install (in /opt/puppet-dashboard) dashboard_development already exists can''t activate authlogic (=
2006 Jun 21
3
rake migrate says table already exists
Hi all, I used the generate script to make a bunch of table migrations, resulting in files like 002_bookmarks.rb, 003_tags.rb, etc. When I did the ''rake migrate'', the db was set up but more migration files appeared, now called 009_create_bookmarks.rb, 010_create_tags.rb, etc. Now when I want to change the database (add a table or column, alter the schema) I do
2010 Apr 05
3
syntax error, unexpected '\n', expecting tASSOC
Hey all, I get the following error. Now I know it''s related to a curly brace, but it seems that all curly braces are properly in place. So I''m not sure why I get this error: SyntaxError in DashboardController#panels rails/app/controllers/dashboard_controller.rb:170: syntax error, unexpected ''\n'', expecting tASSOC def panels addDetailToContainer =
2007 Feb 09
0
rake aborted!!
OK, I''ve created the following migration class CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image_url, :string end end def self.down drop_table :products end end This has created a table no problem. I''ve then added another column
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all I have a new migration file created that adds some tables and fills one with some data: create_table :sound_styles do |t| t.column :name, :string, :null => false end create_table :show_types do |t| t.column :name, :string, :null => false end create_table :countries do |t| t.column :name, :string, :null => false end ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2006 Jun 08
19
Agile Web Dev (book) question: errors
This is kind of frustrating (but no doubt helpful in the long run) that after following along and coding , and d/l the code the same error is appearing. For those who are familiar with the depot app, I''ve run into a problem after fixing the cart to reflect quanitites. I worked through the intended error messages but now have this appearing: SyntaxError in StoreController#add_to_cart
2006 Jan 21
5
Help...why ''rake migrate'' can''t be executed on RadRails
''rake migrate'' command can''t be executed on RadRails? I found Terminal Window at RadRails and executed ''rake migrate'' on that terminal many times.but nothing happend,even error messages. I made InitialSchema file like these and configured database.yml. of course I made database before executing ''rake migrate'' anyone,get me
2007 Aug 12
10
about chinese display
hello: I have built a project with Instant Rails.Now only a database and a scaffold based on a product model have finished.But when i inputted "../admin/list" in my browser,i found my chinese characters cound not display normally.Then i made five steps: 1 ajusting encoding in my browser menu 2 in "C:\InstantRails\conf_files\my.ini"directory,making sure
2013 Sep 04
10
Performance test regarding xenstored
Hello, I am running a mail benchmark test using smtp-source[1] with VM running postfix on Xen hypervisor. My system configuration is: uname -a -> Linux cadlab 3.1.10-1.19-xen #1 SMP Mon Feb 25 10:32:50 UTC 2013 (f0b13a3) x86_64 x86_64 x86_64 GNU/Linux I am observing a very high disk write usage by xenstored (some 5 Mbps) without even anything running on the VM. Is it normal? During test, I
2013 Sep 04
10
[Xen-users] Performance test regarding xenstored
Hello, I am running a mail benchmark test using smtp-source[1] with VM running postfix on Xen hypervisor. My system configuration is: uname -a -> Linux cadlab 3.1.10-1.19-xen #1 SMP Mon Feb 25 10:32:50 UTC 2013 (f0b13a3) x86_64 x86_64 x86_64 GNU/Linux I am observing a very high disk write usage by xenstored (some 5 Mbps) without even anything running on the VM. Is it normal? During test, I