Displaying 20 results from an estimated 1000 matches similar to: "Ruby 1.8.4 trouble"
2006 Jan 06
3
Getting model class by string
Hello,
I have an interessting problem, I''m not sure how to solve :-)
I have the name of a model in a variable like this:
My model is called Article
My var contains "Article"
Now - How do I get the model class, so I can call Article.find,
Article.new etc ... ?
Greetings,
Gitte Wange
2006 Dec 22
3
Zed, you''re a moron :-)
Hi !
My mongrel just starting spitting out these nice lines:
The error occured while evaluating nil.accept. TELL ZED HE''S A MORON.
!!!!!! UNHANDLED EXCEPTION! You have a nil object when you didn''t
expect it!
Not sure what happened or why, but just FYI: Zed, you are a moron :-)
Happy holidays!
Gitte Wange
2005 Dec 28
4
Changing encoding on text
Hello,
I have a set of templates creating some files for me. All data on my
site is encoded using iso-8859-1. Now I want to save the text in the
file using utf-8. I have tried using iconv, but whenever I have the
require "iconv" statement in my model, there is some error happening in
the model and the model doesn''t get loaded (not sure how to debug that).
What approches to
2006 Jan 03
2
Using multiple columns as primary key
Hi!
I''m trying to use a primary key made up of two columns in my model''s table.
But looking at the docs, it looks like ActiveRecord only supports using
one field as primary key.
Can anyone point me in a direction of this or verify that it''s not
supported?
Greetings,
Gitte Wange
2006 Jan 04
4
Need some implementation ideas :-)
Hi,
I have good this cool challenge from my boss on developing a very simple
cms-like system to publish articles within. The caveat is that he wants
to have multi-lingual content.
At first I thought RoR would be perfect for the assignment but right now
I''m not so sure.
My first attempt involved creating a table for each model/languagde like
this:
articles_en
articles_dk
articles_de
2006 Aug 02
1
mongrel to execute ruby script?
Hello,
I''ve spent a couple of hours now searching for (what I thought) was
pretty straightforward.
I''m using mongrel together with RoR and need to execute a .rb file
located in my public folder (cgi style).
But mongrel just can''t do that out-of-the-box - or am I missing
something?
I really don''t get how I''m supposed to configure mongrel for this
2006 Jan 07
2
Mailing list software
For a project I''m working on I''m hoping to be able to have both
discussion and announce-only e-mail lists. Does anybody have any
recommendations about good existing mailing list apps that could be
integrated with a rails app?
Does anybody have any experience using ActionMailer as the basis for a
mass mailer? Does it perform well enough to make it feasible?
Thanks!
--
Dan
2013 Apr 25
2
installing package
Hi
I am trying to install a package (bioconductor) but every time I try to install it I get this message:
source("http://bioconductor.org/biocLite.R")
Warning in install.packages("BiocInstaller", repos = a["BioCsoft", "URL"]) :
'lib = "C:/Program Files/R/R-3.0.0/library"' is not writable
Error in
2011 Feb 21
1
output selectively change the font
Dear brainy R users,
I need to output a matrix, with two colors , meaning some elements using
different color
I normally use write.table(table.m, file="table file name.csv",
sep=","), how could I pass the index for the color ?
Many thanks
yan
**********************************************************************
This email and any files transmitted with it are
2006 Feb 09
9
RMagick on OS X - HOW
Hello all.
I''m a seasoned system administrator and have no fear of building
source packages on a variety of platforms, but RMagick has, until
recently, evaded all of my attempts to building it on my PowerBook.
Someone else just mentioned that they had trouble with RMagick on
OS X (Intel, don''t really know if my advice will help) so I
decided to post a HOWTO to the list.
I
2013 Apr 24
1
R cannot find the path on my mac
Hi
I am really sorry for this probably quite simple question.
I am new to R, and I am running a pipeline that has already been made. All I have to do is give the paths for different folders, where the pipeline can find the files with my data.
But every time I try to run the pipeline it returns with the message, that it cannot find the file. And I really don't know why. I have found the path
2006 Jan 07
10
RMagick bus error on OS X in console mode
This is a strange bug that I''ve never seen before. It only shows up
when I run the app through the console (the app is Family Connection,
and it works fine when run as a web app):
22$ ruby script/console
Loading development environment.
>> User
/opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.3.0/
RMagick.bundle: [BUG] Bus Error
ruby 1.8.2 (2004-12-25)
2006 Jul 16
0
in_place_edit-like functionality in my controller
Hello,
I''m trying to extend the functionality of in_place_edit and would
like to have a function in my controller that populates methods for
requested object/methods (just like in_place_edit does).
Here''s some test code I tried to make work (from my controller):
def do_some_edit(object, field)
logger.info("We are editing")
end
do_some_edit(:item,
2006 Feb 12
0
Setting html breaks when using textile (redcloth)
Hello,
I would like to enable html breaks when having newlines in my text
rendered using textile/redcloth. I have found that a property names
hard_breaks should be enabled but I''m not sure where (in which file).
Anyone with a hint? :-)
Greetings,
Gitte Wange
2006 Jan 08
1
Using many-to-many relations in tests
Hello,
I have some many-to-many relations, I would like to use in my tests. But
I''m not sure what I should put in the fixtures for it?
How do I add those relations in the testing environment?
Greetings,
Gitte Wange
2006 Jun 05
25
RoR on mac OS tiger 10.4.6 latest n greatest?
hi, ive had some trouble trying to install RoR on tiger. during my
google search i came across many different installs.. some using apache,
lighttpd, or webricks for the web server,,,,,some are using sqlite, or
mysql....now ive tried all and it came to a point where im sure i had
multiple libraries etc...installed and everything was not working right
compared to my ubuntu install of Ror. so
2006 Jul 12
1
HOWTO: Install RMagick on OS X
Hello all fellow Mac OS X Railers.
I''m just setting up a new MacBook from scratch.
Everything has gone very easily, so I decide to attempt
to install RMagick from scratch once again, something
that I''ve wrestled with in the past, finally punting and
going with a DarwinPorts ImageMagick install then direct
gem install of RMagick.
Well, I had no problems and have achieved
2006 May 16
7
svn-1.3.1 errors on intel mac on checkout
I just installed svn-1.3.1 from .dmg on an intel mac. I am getting ...
subversion/libsvn_wc/log.c:338: (apr_err=155009)
svn: In directory ''sr''
subversion/libsvn_subr/io.c:565: (apr_err=2)
svn: Can''t copy ''sr/.svn/tmp/text-base/README.svn-base'' to
''sr/README.tmp'': No such file or directory
Any one getting this? TIA for any help.
2006 Mar 15
7
rails on OS X 10.3.9 not working
Hello,
I''ve installed Ruby 1.8.4 via Darwinports, installed gem 0.8.11 too and
then installed Rails via gem. I''m using OS X 10.3.9.
When I now type rails in the terminal, the following lines appear:
# rails
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/values/time_zone.rb:12: undefined method `attr_reamer''
for TimeZone:Class
2004 Oct 19
9
News for OS X Users
Sorry things have gone silent on the release front, but I have some good
news: I''ve gotten wxruby-swig to build as a OS X framework. This has a
couple of ramifications
1) wxruby for the Mac will finally exactly like its Linux and PC
counterparts, menu bar and all.
2) Bundling wxruby applications becomes a lot easier.
3) The next binary installer should be able to support darwinports,