Displaying 20 results from an estimated 100 matches similar to: "Rails 1.2 RC1 problem"
2007 Apr 05
7
Re: how to use Chinese Characters in wxRuby?
yes,I'm using wxruby2
When I change
"samples/text/unicode.rb" 's content:
require 'wx'
into
begin
require 'wx'
rescue LoadError => no_wx_err
begin
require 'rubygems'
require 'wx'
rescue LoadError
raise no_wx_err
end
end
and run unicode.rb in this way:
ruby -Ku unicode.rb
I got the error message like this:
unicode.rb:119:
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 Aug 29
4
newbie question for installation
Hi all...
just something really confused.
Today I downloaded "ruby186-26.exe" according the tutorial..
then have it installed without problem
then I use "gem install rails --include--dependencies" to get rails
then when I use "rails testabc" for my first application
I got following errors:
.
..
...
create script/process/reaper
create
2006 May 05
1
Help with ActiveRecord
Model:
class AdminQueue < ActiveRecord::Base
set_table_name ''adminqueue''
end
Interacting with it in script/console
>> AdminQueue.new
=> #<AdminQueue:0x240a910 @attributes={"topic_id"=>nil,
"resolved"=>nil, "updated_on"=>nil, "action"=>nil, "type"=>nil,
"post_id"=>nil,
2006 Mar 05
0
rake clone_schema|structure_to_test fail
When I do ''rake clone_schema_to_test'' I get this:
(in /var/www/rails1)
rake aborted!
./db/schema.rb:34: syntax error, unexpected tCONSTANT, expecting kDO or
''{'' or ''(''
t.column "datetime", :datetime, :default => Sun Mar 05 03:19:39 MST
2006, :null => false
^
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using InstantRails
for the server. In my app I have the folowing controllers:
admin_controller
application_controller
city_map_controller (with method: displayGMap)
The admin_controller was created with the following command:
ruby script/generate scaffold
2006 Jun 22
11
Help please
Getting this error:
SyntaxError in CompanyController#positionslist
(eval):1:in `compute_type'': compile error
(eval):1: parse error, unexpected tINTEGER
Object::2
I could not find anything out about it (googling) and it''s not the
clearest error message. Not sure if it''s related to an expected data
type but that wouldn''t make sense. The only other thing I can
2006 Mar 17
6
Problem with ruby 1.8.4 One-Click Ruby Installer on windows
Hi!
Previously i had ruby 1.8.2 (One-Click Ruby Installer) installed, but
the rdoc and plugindoc didn''t work, so i decided to install ruby 1.8.4.
I had uninstalled ruby 1.8.2 (uninstaller deleted the whole ruby folder
with radrails and everything, just great) and installed One-Click Ruby
Installer 1.8.4-16 preview3.
Then installed rails, rmagick, radrails, created docs for trunk
2006 Aug 04
1
route error with controllers in a module, should just work
This is ALL I have added to my routes.rb
map.connect ''admin'', :controller => ''/admin/welcome''
I have found plenty of examples saying this is correct if you have a
WelcomeController in the Admin module, which I do :)
But now webrick won''t even start ??? Look at those 4 colons ::::, what
is that about ?
help !
=> Booting WEBrick...
2009 Apr 14
6
About haml and ruby on rail
hi all,
I am converting my view into HAML format i have done it with
"Html2Haml" command, then I removed all the "- end" from haml code and
my indentation is also correct,but now it shows following errors
I have kept code of show.html.erb and show.html.haml in attachment.
please help me I am not getting what exactly the error is?
compile error
2006 Dec 14
3
Problem with ActiveRecord and Associations
Hi,
I''m having what I believe to be a typecast problem with ActiveRecord and
Associations. In the code below, I need to flag a contact record for
deletion if the contact doesn''t have any addresses or books records:
sql = "select id, delete_flag from contacts where id = #{params[:id]}"
contact = Contact.find_by_sql(sql)
if (contact[0].addresses.count +
2003 Jan 14
3
PLS regression?
Hi all,
I would like to do some QSAR analysis (quantitative structure activity
relationship). I need to use some Partial Least Squares (PLS) regression,
but I have not seen this option on the R-project. Is it possible to do this
kind of regression on R?
thank you in advance
best regards,
olivier
[[alternate HTML version deleted]]
2006 May 17
10
Weird error
What does this mean?
(eval):1:in `compute_type'': compile error
(eval):1: parse error, unexpected tINTEGER
Object::0
^
Anyone know? Any help counts!
Thanks in advance,
Mohammad(Programmer-22)
--
Posted via http://www.ruby-forum.com/.
2002 Nov 02
2
Partial Least Squares
Hi everybody!
Is there any package or functions to make Partial Least Squares
analysis with R?
Thanks a lot
Luis
--------------------------------------------
sapo.pt/kitadsl
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2007 Oct 18
3
append/concatenate an element to a list in C-language
dear people,
i need to code a function in C working in R and receives two R SEXP
objects as parameters, where one is a list and another is a vector of
integers:
void f(SEXP list, SEXP vector) {
...
return list;
}
and it should return the given list with the integer vector concatenated
at the end (as the last element of the list). the list can be really big
so i would not like to create a
2004 Apr 20
1
problems installing dcom98
Hello. For 2 days i've tryed to install ie6 and no sucess
i cant install dcom98, and this is the reason:
err:thunk:_loadthunk (W95INF16.DLL, w95thk_ThunkData16, W95INF32.DLL):
Unable to load 'W95INF16.DLL', error 2
the file w95inf16 is present.
after adding w95inf16.dll ~/.wine/config, the error is another:
now it cant load keyboard.dll and setup.dll
this is my cmd line:
2007 Sep 19
0
Error with special characters(?)
Hi,
I am having a strange problem.
I have RoR 1.7 installed and a have a HTML page (View) with the folowing
part of code:
<% types = ["AF1", "ALéEL", "AE pé", "CET"]%>
The element of the 2nd index ("AE thé") is causing me problem. The fact
is since the last letter of the string is a special character ("é"), i
have the following
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
2006 Apr 18
10
Validates_ip_of
Hello all
After being told of a funky date validator I will ask again for another
validator :) Does anyone know of a plugin that validates that a field is
the correct syntax for an IP Address?
Thanks
Jeff
--
Posted via http://www.ruby-forum.com/.
2010 Sep 07
0
numeric key in yam file to be used by config file
I am using a YAML file for my app config, loading it :
----
raw_config = File.read(RAILS_ROOT + "/config/app_config.yml")
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
---
It''s running well as long as I use alpha keys
development:
seve:
api_token: e09cba8653489749388797926512bb75
then APP_CONFIG[:seve]["api_token"] gives me