Displaying 20 results from an estimated 500 matches similar to: "Appending something to a Rails route?"
2006 Aug 09
2
Gruff gives font-related error
Hello Railslist,
I''m trying to get Gruff running on OSX Tiger (intel) with edge Rails.
I''ve installed ImageMagick, Rmagick, FreeType and all their
dependencies, or so I believe. (I''ve compiled them from source mostly,
following a recent tutorial for Rails and ImageMagick on Intel Macs)
While following the sample on the Gruff downloadpage (the one with the
fruit), Rails
2006 May 24
4
AR foreign key problem.
Hello Railslist,
(I''m using RadRails 0.6.3 on Windows XP with Ruby 1.8.4, Rails 1.1 and SQLite3)
I have two tables in the database: "locations" and "customers":
customers.sql
---
id INT PRIMARY KEY
name VARCHAR 255
address VARCHAR 255
postal_code VARCHAR 255
city VARCHAR 255
---
locations.sql
---
id INT PRIMARY KEY
postal_code TEXT
longitude FLOAT
latitude FLOAT
2006 Nov 04
1
acts_as_tree repeats
Hello Railslist,
I want to draw a simple single-table Acts_as_tree model.
I''ve read some articles about it and read the API docs, and now I''ve
got this running:
in controller I have:
---
def index
@pages = Page.find(:all)
end
---
in the model for Page I have ofcourse:
---
acts_as_tree :order => "position"
---
in the helper I have;
---
def
2005 Dec 16
6
Switchtower for production?
Hello,
The company that I work for will be developing a large webbased survey
(for a government institution) somewhere in Q1/Q2 of 2006. I''m
investigating the technological possibilities and Rails is certainly a
candidate. The survey application will have to perform under very high
peak load, and the exact specifications of the hardware are not known
at this point. I''m assuming
2006 Jul 12
2
(Re-)designing a CMS
Hello Rails-list,
I''m working on a CMS in Rails.
The company that I work for currently uses a CMS written in PHP, and I
want to mimick it in Rails, and improve along the way.
The PHP variant works with templates like this:
In the root of the webdir, there are the template files, named
cms_news.html for example.
This page contains custom tags, in the form of definitions and
2007 Mar 11
5
Mysql::Error #28000Access denied
I''m on MAC OSX and I set up my environment as described here:
http://hivelogic.com/narrative/articles/ruby_rails_lighttpd_mysql_tiger?status=301
This may be too old and I just realized that, but before I attempt
Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X:
http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
Okay, I purchased a book "Rails
2006 Oct 25
5
How to use Webrick server
I am using Webrick to start my rails application.
Instead of using http://localhost:3000, i want to access
http://www.domain.com.
How can i achieve this using Webrick Server ?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2006 Feb 16
1
HABTM -VS- belongs_to/has_many, for self-referential joins
Ok, David says on page 241 that sometimes a many-to-many relation with
attributes are better implemented as an actual model instead of using HABTM.
Well, I''ve got that situation and I can''t figure it out.
All of the examples in the book have HABTM examples between 2 different
tables, but I want to have a HABTM relation on 1 table with itself. (e.g.,
if I have a table Things,
2005 Dec 21
0
Webrick keeps caching
Hi Rails list,
I''ve just upgraded my Rails install from 0.14 to 1.0.0
I now start the server using this command:
script/server webrick -d
(i''ve tried adding -e development)
But changes in the code won''t show up in the application anymore.
Where should I look to turn off this caching or to actually turn on
development mode?
Thanks.
Gijs Nijholt
2010 Jan 29
4
simple captcha image not displaying
Attached is an image of my problem but here goes.
Installed RoR to run Raillist. I installed it per instructions and
everything seems to be working great except I can''t get my captcha
images to show
I am not sure what the problem is as I am a complete noob to RoR.
Any pointers towards a direction to fix would be greatly appreciated!
If you need to the site address is secondlist dot org.
2012 Feb 03
3
replicate rows
Hello,
I have a matrix of 17 rows and 20 columns. I want to replicate this matrix 20 times, but I only want to replicate the rows. How do I do that?
Kind regards / Met vriendelijke groet / Med venlig hilsen,
Dr. Gijs Schumacher
Postdoctoral Researcher
Department of Political Science and Public Management, University of Southern Denmark &
Department of Political Science, VU University
2006 Jan 22
6
SwitchTower with public key authentication?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
BEWARE: this is not a Rails question, but a SwitchTower question. I am asking
here because SwitchTower is usually employed with Rails.
I am developing what we may call a "distributed video player" in Ruby (this is
NOT a Rails application). It works this way: I have several boxes that play
videos and one server, where I store the
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
2006 Mar 28
1
acts_as_taggable plugin to tag multiple fields in a model
Hello,
Is it possible to tag multiple fields in a model using either
acts_as_taggable plugin or gem? If it is not possible out of the box, can
anyone provide pointers on how I would achieve something like that?
Say I have a ''Food'' model which has ''spices'' and ''healthiness'' attributes.
I want to be able to tag on both those fields. Is that
2004 Jul 08
3
How to pass strings to functions? [once once more, now With content I hope...]
Dear expeRts,
I fail to succesfully pass strings to functions. It comes down to the
observation that
> plot(someVariable,anotherVariable)
works fine, but
> x <- "someVariable"
> y <- "anotherVariable"
> plot(x,y)
does not.
Does this have something to do with the returned value of x being
/"someVariable"/ and not /someVariable/, i.e.
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or
acts_as_tree or acts_as_nested_set.
I am unable to decide among these. please could some one recommend from
their experience?
--
Posted via http://www.ruby-forum.com/.
2011 May 02
2
how to get row name using the which function
Dear All,
Probably a very basic question, but can't seem to work my way around it.
I want to which row has the maximum value. But what if the row names do not correspond with the row numbers. In the example below, you'll see that the max of example is row 4, but the name of row 4 is "9". How do I get R to return "9" as value, instead of 4.
example <-
2008 May 30
1
-4 / -ipv4 doesn't work
Hi,
I try to connect to a host that has IPv4 and IPv6, but IPv6 is currently
blocked by ACL's. My host also has IPv6 and IPv4. When I pass the -4 or
--ipv4 option to rsync, it doesn't pass it to ssh:
$ rsync -4 -r -v -v -v -v -l --del . SOMEUSER@SOMEHOST:SOMEPATH
cmd= machine=SOMEHOST user=SOMEUSER path=SOMEPATH
cmd[0]=ssh cmd[1]=-l cmd[2]=SOMEUSER cmd[3]=SOMEHOST cmd[4]=rsync
2004 Aug 10
4
Enduring LME confusion… or Psychologists and Mixed-Effects
Dear ExpeRts,
Suppose I have a typical psychological experiment that is a
within-subjects design with multiple crossed variables and a continuous
response variable. Subjects are considered a random effect. So I could model
> aov1 <- aov(resp~fact1*fact2+Error(subj/(fact1*fact2))
However, this only holds for orthogonal designs with equal numbers of
observation and no missing values.
2013 Dec 18
1
Symlinks when building R on windows
I think this is more suited for the devel mailing list than the help one.
I'm trying to build R on windows, With Rtools installed, and configure/make
in R-3.0.2 sources folder from a cygwin console.
I am stuck at the moment, because the build process tries create symlinks,
and gcc build fails because the opened files containe the metadata of the
not working symlink, and not the linked file.