similar to: "syntax error, unexpected tIDENTIFIER , expecting kEND" in RJS response

Displaying 20 results from an estimated 3000 matches similar to: ""syntax error, unexpected tIDENTIFIER , expecting kEND" in RJS response"

2010 Jan 31
6
Action path - syntax error, unexpected tIDENTIFIER, expecting ')'
I have a user controller with login as action. When I access the index.html.erb file via application.layout file. I get a error on the login link on the index.html.erb page. I think I am having dfifficulty in setting up path to an action or even understanding how to set REST path properly. Can someone please help me. Here is the error on the home page:
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve alone. I''ve a pretty simple RJS file that looks like the following: 3.times do page.insert_html :bottom, ''messages'', ''test'' end page.call ''updateMessageWindow'' However this snippet gives a syntax error: ActionView::TemplateError (compile error D:/Eigene
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
2007 Apr 17
2
Rake aborted - syntax error, unexpected $end, expecting kEND
I can''t create tables via rake db:migrate without encountering this error: rake aborted! ./db/migrate//001_create_users_table.rb:11: syntax error, unexpected $end, expecting kEND The 001_create_users_table.rb file contains: class CreateUsersTable < ActiveRecord::Migration def self.up create_table "users" do |table| end def self.down end end I''ve
2006 Jan 10
7
All My Rails Apps Died Over the Holidays
I have several Rails (version 1.0) apps I''m working on on a Win XP box using Webrick that were working fine before I left for the holidays. I came back, started up and they all get the same syntax and compile errors: compile error ./script/../config/../app/views/time/list.rhtml:4: Invalid char `\212'' in expression repeated over and over. Refreshing the page gives thes same
2007 Feb 12
1
Invalid char problem
Has the problem with corrupted .rhtmls (invalid characters) been solved so far? I would like to use ferret and acts_as_ferret on Windows XP. I have installed 0.10.9 (mswin32) which still seems to have the problem. I am receiving error messages like: compile error C:/INSTAN~1.4P1/INSTAN~1/rails_apps/travelogue/config/../app/views/article_editor/_header_read.rhtml:2: parse error, unexpected
2006 Nov 24
6
Rails 1.2 RC1 problem
Hi Have this helper method inside a sites_helper.rb module def distritos [ ['0', 'Todos'], ['1', 'Aveiro'], ['2', 'Beja'], ['3', 'Braga'], ['4', 'Brangança'], ['5', 'Castelo Branco'], ['6', 'Coimbra'], ['7',
2006 Jun 17
4
Textmate Madness
Has anyone come across this problem... I created some Ruby files in Textmate on my Mac - and everything works fine. However, when I run those files on a Windows machine I get e.g. compile error ./script/../config/../app/views/station/consumption/new.rhtml:2: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:4: parse error, unexpected
2006 Apr 25
16
case statements in views...strange error on OSX
I have a simple case statement in one of my views. This works fine on my windows machine. Move to the mac and I get: "parse error, unexpected tIDENTIFIER, expecting kWHEN". I have not changed anything but cannot resolve the issue. my view has this in it (simplified for test) <% case controller.controller_name -%> <% when "accounts" -%> <h3>worked
2006 Aug 11
9
Getting Really Started with Rails - Tutorial styled Slides Available
For those that missed out joining the amazing turnout of ~70 people here in Vancouver for the mini-workshop I did on the 27th last month, I am making available the 30 slides I used for the presentation. The slides were used in conjunction with me demonstrating it via command line. Alot was learned by both attendees, and quite possibly even more so by myself while teaching the material. I created
2009 Aug 16
5
any help with captcha in my comments ?
this is my error: Processing ApplicationController#create (for 127.0.0.1 at 2009-08-17 00:57:56) [POST] Parameters: {"comment"=>{"name"=>"asdasd", "body"=>"asdasd"}, "commit"=>"Add Comment", "post_id"=>"19",
2012 Jul 22
3
Puppet template tags and Java JSP tags
Hi All, I was trying to templatize some JSP page I would like to dynamically generates but it looks like puppet doesn''t like it. Common JSP tags are <% ... %> so I guess it''s getting confused between regular tags and jsp''s one. This is an example of the trace it is givin me : /etc/puppet/modules/xxx/templates/webapps/xxx/yyy/Mantle.jsp:1:in `result'':
2004 Feb 17
3
Shorewall 2.0.0 Beta3
http://www.shorewall.net/pub/shorewall/Beta ftp://www.shorewall.net/pub/shorewall/Beta Thanks to Lorenzo Martignoni, there is a .deb in this Beta (I''m running it here!) RC1 will be next... -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net
2006 Jul 12
4
error when using plugin discover
When I run ./script/plugin discover to register new plugin sites I get stopped at this point with the following error. ... http://svn.northpub.com/plugins/ http://rhnh.svnrepository.com/svn/public/rails/plugins/ (eval):3:in `each'': undefined method `[]'' for nil:NilClass (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:658:in
2013 Jun 04
3
Nokogiri::XML methods example
Hi, I am not able to find out a simple example to find out the how the method works: > Nokogiri::XML::EntityReference::new (http://nokogiri.org/Nokogiri/XML/EntityReference.html#method-c-new) > Nokogiri::XML::Document#canonicalize (http://nokogiri.org/Nokogiri/XML/Document.html#method-i-canonicalize) Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message
2007 Dec 06
1
error during template parsing (??)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am rather new to puppet and set up a puppet server and some clients. during "puppetd --server=puppetmaster.example.com --verbose" I get the following error which says nothing to me: err: Could not retrieve configuration: Uncaught exception compile error (erb):241: syntax error, unexpected tIDENTIFIER, expecting $end
2006 Jul 16
3
RJS problem
I have an odd problem while trying to use a simple rjs. _test.rjs : page.alert "test" test.rhtml: <script><%=render_partial(''test'')%></script> When I am attempting to view controller/test the page comes as if it was a text file. So i am actually seeing: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2006 Jan 11
6
RJS and layouts
Hi all, I''ve been using RJS more and more for my app and I have sorta run into a possible issue. My app has different user roles that require different layouts. So far, this has worked fine, but now that I''m using rjs more and more I''m finding that the two don''t really work together since I have to rails not to use a layout upon controller method
2006 Apr 16
11
RJS templates not found
I am running Rails 1.10 and wanted to check out the RJS templates. Rails doesn''t seem to find them. I did issue the rake comment update_javascripts and that did not correct the problem. RJS is part of 1.1 right? Any ideas? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 May 04
4
What do you use RJS for?
I''ve read an intro or two for RJS, but I don''t fully get what it may be used for - AJAX? Please post what you currently use RJS for. Thanks! Joe -- Posted via http://www.ruby-forum.com/.