similar to: Syntax Error??

Displaying 20 results from an estimated 10000 matches similar to: "Syntax Error??"

2006 Apr 19
5
Swedish characters problem
Hello, I''m playing around with Rails and I''m having problems with displaying swedish characters. This is how far I''ve gotten: I have a controller... class MiscController < ApplicationController def swedish_chars @chars_to_display = ''???'' end end ...and a template (swedish_chars.rhtml) <head> <title>Test with swedish
2006 Sep 12
1
Ferret on Windows?
I am trying to use SVN HEAD of Acts_as_ferret, and I have ferret 0.10.4installed from the windows Gem. Unfortuanantly, whenever I i let act_as_ferrets init.rb file require ferret, my app blows up, with weird "Invalid char" errors. I have pasted the page below. If I comment out the require ferret, the page loads. Of course, act_as_ferret does blow up. My unit tests do work fine
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
2006 Apr 17
5
Strange question on file_column
I have met a very strange problem on file_column usage. After I have added file_column :image to the model,everything is ok. But after I added more: file_column :image, :magick => {:versions => { :thumb => {:size => "50*50"}, :medium => {:size => "640*480>"}}} I can not even start the whole website! Here is the
2005 Nov 22
2
Error messages: relative paths seem weakly handled?
I create my rails app, with modifications to the default from a script. Having had to upgrade rails once, and knowing that this is likely to happen again because of the rapid updating of rails, it seems the most sensible way to do it. As a result, I often do /bin/rm -rf csestore and then run my script from another window to repopulate it. So naturally, to save having to cd into csestore, and
2010 Jul 25
0
You can't set a constant with namespace in the initializers?
Help! in my rails controllers, there is a ''Admin'' namespace. (My the structure of the controllers dir is like this : app/controllers: home_controller.rb ... admin/posts_controller.rb admin/pages_controller.rb The ''Admin'' will automatically become a Module constant (I know it from the console: ''puts Admin => Module''); And in my
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
Rails application which i create manually like rails new blog and the content of the file "blog/config/boot.rb" are require ''rubygems'' # Set up gems listed in the Gemfile. gemfile = File.expand_path(''../../Gemfile'', __FILE__) begin ENV[''BUNDLE_GEMFILE''] = gemfile require
2011 Jan 12
0
Backtrace:dovecot/imap
This may be identical to the one I posted previously. >From the log: Jan 12 15:25:55 postamt dovecot: imap(mfxxxch): Panic: file squat-trie.c: line 876 (squat_build_word): assertion failed: (i + bytelen <= size) Jan 12 15:25:55 postamt dovecot: imap(mfxxxch): Error: Raw backtrace: /usr/dovecot-2/lib/dovecot/libdovecot.so.0(+0x3b861) [0xb7721861] ->
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",
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised: compile error app/views/upload/uploadfile.rhtml:10: syntax error Extracted source (around line *#10*): 7: <% end %> Trace of template inclusion: app/views/upload/uploadfile.rhtml RAILS_ROOT: /home/malathi/www/upload Application Trace <http://localhost:3000/upload#> | Framework
2006 May 30
0
Problems when applying search to filter rows.
Hello, I am trying to create in the main Layout of the application fields of selection of fields of the model, and other to insert its value. Next I put a search button, with the idea to leak by the search in the view of the model where it executes this button. I have generated the views with ajaxscaffold. I do not know if what I try to do it does of this form or another one. My code is the
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
Hello, I am new to rails but have been having fun so far. Until now. I am sure this is just my inexperience but I have the RMagick gem (ruby gem for using imagemagick manipulation) installed on my machine that I would like to then use in my rails app. I first installed it and tried it out, and it didnt do anything for me, took me a while to realize I needed the windows RUBYOPT
2006 May 22
3
Syntax error when running dispatch.cgi
Hi, when I execute dispatch.cgi at the command line, I get the following error message: [cg@cg rails]$ ./public/dispatch.cgi ./public/dispatch.cgi:3:in `require'': ./public/../config/environment.rb:8: syntax error, unexpected ''<'' (SyntaxError) <%= ''# '' if freeze %>RAILS_GEM_VERSION = ''<%= Rails::VERSION::STRING %>''
2008 May 13
0
Problem geting web interface to work
Hi, i have installed CruiseControlRB 1.3.0. With no project added the web interface at localhost:3333 looks find. I have successfully added one of my projects (batch file which builds some c++ code) which is also building fine. But the web interface is no more working - i get the following message "Errno::EINVAL in Projects#index". I have attached a log (run with --trace) which
2006 Mar 07
17
Handling Erros from AWDWR
I''m getting to the point now where I really need to start trapping the errors. So from my AWDWR book, I added the following directly from the book into application.rb... def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render(:file => "#{RAILS_ROOT}/public/404.html",
2006 Sep 18
2
Datebocks and EdgeRails
Hello, I am having trouble trying to use the Datebooks Engine with Edge Rails. Has anybody try with it? It seems that the problem has something with loading the layout, and complaints about the number of arguments. I will thank any help or guide. Thank you very much. ========================= I have copied the error I get ArgumentError wrong number of arguments (2 for 1) RAILS_ROOT:
2006 Apr 30
1
no such file to load -- net/https
Hi, Came across the substruct project and decided to download and play with it. Am running rails 1.1.2 with ruby 1.8.4 on Ubuntu. I start webrick .. went to the admin section of the store. Create a product. Went to the store section and put this product in my cart and then clicked on checkout. I fill the form and submit it . I click on the "Finish Order" button and get the following
2006 Sep 04
5
uninitialized constant BooleanClause
I''ve installed the latest Win32 gem and the acts_as_ferret plugin (i checked out the files and placed them in the vendor/plugins directory). When I try to search I get the following error: uninitialized constant BooleanClause RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jun 23
1
Rate is not a class
Here''s one I haven''t seen before I have a model "section.rb" as follows: class Section < ActiveRecord::Base ###Lot of common stuff end class Normal < Section end class Faq < Section has_many :faq_categories, :order => :position end class Rate < Section has_many :rate_tables end Now I''ve just added the Rates class and it works just
2006 May 26
0
Hellp needed with sublist plugin
Is there somebody out there who has built a working thingy with the Sublist plugin? I can''t get it to work. I get this error message: undefined method `stringify_keys!'' for "2005":String RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace E:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1506:in