Displaying 20 results from an estimated 2000 matches similar to: "Getting model class by string"
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 Feb 09
4
Ruby 1.8.4 trouble
Hi!
The ruby installation on my FreeBSD-6 box have been upgraded from
1.8.2 to 1.8.4 by accident. And now all my rails have stopped working.
I can''t produce any cool debug info since I have none. running script/
server just coredumps. Running the sites through apache isn''t an
option since apache won''t start (get lots of these in my log: [Thu
Feb 09 10:38:19
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 25
11
Executing Ruby code that is inside a string
I would like to put Ruby code inside a string, between <%= %> tags, and
have the code inside the tags executed when the string is displayed. Is
this possible?
--
Posted via http://www.ruby-forum.com/.
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
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my
controller, all the other actions use the application.rhtml layout, so
what i''m doing is ...
class SomeController < ApplicationController
layout "simple", :only=> :some_action
......
end
and the "simple" layout is applied to all the actions, can someone
please give me a hint?
2006 Aug 14
8
How search engine friendly are RoR sites?
I am a total RoR virgin, and took my first steps this weekend into the
Ruby world. A lot of sites I create need to be as SEO friendly as
possible, particularly for google. Before I delve any further, can
anyone tell me how friendly the dynamic URLs or if there is the usual
rewrite mod for rugby?
Thanks
Mike
--
Posted via http://www.ruby-forum.com/.
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
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc)
and I would like to redirect them back to the last page they were at
before calling that action. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 06
2
replace unkown action with 404
is there a way to replace unkown action error with a pretty 404 page ?
I set the ErrorDocument 404 in .htaccess, however when someong goes to
http://www.mysite.com/bogus i would like it to show a 404 error instead of
just "Uknown action".
Is this possible with a rescue or something?
adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 11
3
sanitize dangers
I''ve noticed that it is possible to pass javascript unaltered through
the sanitize function using CSS. For example:
sanitize( "<style
type=''text/css''>body{background-image:url(''javascript:window.alert(1)'')
}</style>" )
IE will execute the javascript. Firefox will not. I haven''t tried it
with any other browsers.
2006 Feb 25
2
A Couple of Questions
Hi All,
I have been using Ruby and Rails for only a few short days and I am
loving it so far. I have a couple of questions relating to a specific
project I am working.
1. I am wondering about sessions expiring after a set period of in
activity and what would be the easiest way to set it up.
2. I would like to be able to users on the system. Each of these users
has a login of there own. Each
2006 May 14
6
file and directory layout below app/models
Hiall,
Is it possible to organize my model files below app/models into
subfolders? E.g. I would like to put admin related models into their
own subfolder. This kind of structuring works for controllers and
views (scaffolding creates the right subfolder-model mappings), but
app/models always stays flat. I''d really like to be able to group my
code into logical, well packages :-) Yes, I
2007 Feb 23
2
how to remove spaces from phone number
Hi,
I need to allow login based on the phone number. During the signup they
can give the number in any format with spaces, slash or (). But for
storing in database and then during login to compare I just want the 10
digit number. How can I remove the special char from phone number before
storing to db ?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jan 17
5
simple question
How do I pass parameters from one controller to another during
redirect_to command? I want to pass both model and non-model objects.
The solution I use is via session, but I rather pass it as parameters to
the redirect_to
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jan 11
2
Wiki Home Page Has Spam Links
It seems the wiki-spam bot has been at work again. There are numerous
hidden links toward the top of the page that might be better gardened
out right away, if you know what I mean ;-|
--
Posted via http://www.ruby-forum.com/.
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