Displaying 20 results from an estimated 10000 matches similar to: "selectively disabling parameter logging in controllers"
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of
fixture loading when I came across this:
http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html
This got me looking deeper into rails and I noticed that
db:fixtures:load calls Fixtures.create_fixtures once for each fixture
file. However, Fixtures.create_fixtures is capable of taking multiple
files and also handle the
2006 Jan 10
3
Serving lots of images to only registred users
Hello guys,
I am building a photo website and I have some questions before I really
start programming the site.
My system will be Debian + lighttpd + mysql +fastcgi + ImageMagick
I plan to use file_column for image handling/verification and thumbnail
creation.
My question is;
I need to store images in a place outside of webroot so only registered
members can see them. To serve them secure
2006 May 22
4
How to check an input String is a number or not in ruby?
How to check an input String is a number or not in ruby?
Thanks in advance,
Joshua
--
Posted via http://www.ruby-forum.com/.
2007 Dec 01
10
Fixtures Cleanup
All,
I''ve been playing a bit with some patches to make the fixture loading
and management code a little bit easier to maintain. If I were to
start chopping out features, how would you feel about losing:
Fixture instantiation,
Old school single-file fixtures,
CSV fixtures,
The ability to specify a subset of fixtures (everything''s always
loaded instead),
The ability to
2006 May 08
8
enforcing special behavior of child rows in HABTM
Hi,
I have a scenario where a doctor can have one or more specialties.
For each doctor, one and only one of her specialties can be designated
as primary.
So I have tables called doctors, specialties, and doctors_specialties,
the last of which has a boolean is_primary column.
The doctor model class specifies that:
has_and_belongs_to_many :specialties
I want to enforce, at the lowest possible
2006 Feb 15
5
strange behavior with has_many and size
Here is a "ruby script/console" session verbatim which will explain the
problem. Bear in mind that nothing is changing the database behind the
scenes at any time. topics is a has_many relationship of Sponsor.
>> s = Sponsor.find(3)
=> #<Sponsor:0x22fd804 @attributes={...
>> s.topics.size
=> 1
>> l = s.topics
=> [#<Topic:0x22d3fa4 @attributes={...
2006 Feb 15
5
dispatch.cgi error affecting specific browsers
I have a rails app that is accessed through Apache 2 (just using cgi
now; will add fastcgi later when everything is working).
The app works fine with some os/browser combos at my work site:
windows/IE
Mac/safari
Mac/firefox
Linux/firefox
But it fails on windows/firefox and my colleague''s (at a different site)
mac/safari (we are running the same os version and version of safari)
The
2006 Jul 19
4
Using Application.rhtml as layout for all controllers
I put my nav system in application layout. that way any controller
loading will have the nav system. I have one problem though - the <%=
yield %> is in the body, so how would my controllers specify other css
files?
my application layout would look like this:
<html>
<head>
title
css include
javascript include
</head>
<body>
nav system
<%=yield%>
2005 Nov 21
5
Error: Error creating domain: (22, ''Invalid argument'')
Hi there
I get the following error message when i try to "xm create <domid>"
Error: Error creating domain: (22, ''Invalid argument'')
I have included everything i can think of
Thanks
The DomU config is
kernel = "/boot/vmlinuz-2.6.12-xenU"
ramdisk = "/boot/initrd-2.6.12.6-xenU.img"
memory = 128
name = "xen01"
nics=1
disk = [
2005 Dec 17
10
need some tips for applying patches
I am working with a legacy database that does not always follow the
conventions for table names, primary key and foreign key column names,
and join table names.
This is no problem in my application code because Rails allows me to
override the defaults. However it is making unit testing next to
impossible because fixtures will still try and insert data into the
wrong tables.
Changing the
2006 Feb 09
1
Shapefiles
Dear List,
I have examined the sp, maptools, and shapefiles packages (Windows) but
cannot seem to figure out a solution for writing shapefiles for 'curvy
shapes'. The scenario is that I generate a series of polygons, circles, and
ellipses on a plot and would like to convert them to shapefiles. Since the
circles and ellipses are do not return a coordinate list during the plotting
2005 May 30
1
Unique arrangements of a vector
Dear List,
Running on a PC (Windows 2000) with 256 MB RAM, Version R1.9.1
I have a relatively simple problem, which I can solve for relatively small
datasets, but run into difficulties with larger ones. I believe that my
approach is a hack rather than something elegant and I was hoping that
somebody on this list might help me improve my code. Basically, given a
vector of values (e.g.,
2011 Sep 20
1
Boxplots from 4 dimensional array
Hello list members,
I am working with simulated data for landscape pattern analysis. I have
1000 replicates of binary (2 colour) gridded landscapes at each combination
of 9 levels of class proportion and 11 levels of spatial autocorrelation.
The results are stored in an array as follows:
> dim(surfaces)
[1] 38 9 11 1000
The dimensions are defined as follows:
[x,,,] 1:38, integers
2006 May 25
1
Building Libraries
Dear List,
I have just compiled my first R library for submission to CRAN; however, I
have a tiny problem with 'R CMD check' that is holding me back. I have read
extensively the PDF document on Writing R Extensions and the 'Making R
Packages Under Windows' tutorial by P. Rossi. All functions are given in R
code (no C/C++/Fortran) with two very simple demonstration datasets. My
2023 Aug 31
1
Need help with idmap-configuration
Hi,
I'm migrating a samba3-server that is used both
as a NT4-DC and a filesver into a pair of samba4
servers, one should become the new AD-DC and the
other one should be the new fileserver.
The new AD-DC seems to work fine. I created all
local unix users and unix groups on the new AD-DC
before I started the classic upgrade and deleted
all of them after the update was finished. That
way the
2015 Jan 13
2
R CMD build looking for texi2dvi in the wrong place (R-devel)
----- Original Message -----
> From: "Simon Urbanek" <simon.urbanek at r-project.org>
> To: "Dan Tenenbaum" <dtenenba at fredhutch.org>
> Cc: "R-devel" <r-devel at r-project.org>
> Sent: Monday, January 12, 2015 5:50:35 PM
> Subject: Re: [Rd] R CMD build looking for texi2dvi in the wrong place (R-devel)
>
> Dan,
>
> On
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello.
I spent an hour or three chasing down a desired effect that mootools
implements, namely the simulation of onmouseleave and onmouseenter
events.
Why?
Lets say you have a Menu. A ul element that contains many li elements.
If you want to have a function (maybe an effect) fire when the mouse
moves outside of the ul, you are out of luck. Observe the mouseout
function like so:
2015 Mar 11
2
Notes on building a gcc toolchain for Rtools (but not multilib)
On 10/03/2015 3:17 PM, Duncan Murdoch wrote:
> On 10/03/2015 2:56 PM, Dan Tenenbaum wrote:
> >
> >
> > ----- Original Message -----
> >> From: "Duncan Murdoch" <murdoch.duncan at gmail.com>
> >> To: "Dan Tenenbaum" <dtenenba at fredhutch.org>
> >> Cc: "Hsiu-Khuern Tang" <tangoh at gmail.com>, r-devel at
2007 Jul 18
3
immediate Descendants not working in IE
Hi, im currently styling a menu using a java script effect which hides
the nested submenus on load, and also shows/hides them on mouseover.
It is working in firefox, using ...
var ul = $("nav").getElementsByTagName("ul")[0];
var lis = ul.immediateDescendants();
I then loop through lis to initially hide all the submenus. This works
fine in firefox, but not in IE. The sub
2012 Jun 19
4
GUI rails debugger
Hello,
Somewhat new to rails here. But have used Ruby for years and thus have used
ruby-debug before with success. My years of gdb experience were helpful.
I like how rails development is easy to do with Vim and command line. They
only time I yearn for a GUI tool is when debugging. I do MS MVC dev at
work, and VS is nice for debugging, even if I am not nuts about the rest of
it. Anyone