Displaying 20 results from an estimated 3000 matches similar to: "Subversion and tmp directory in Rails 1.1 project"
2006 May 08
6
how to make field in model immutable after create
Hello everyone!
I want to have login field in User model which is set only once (on
create), and then it should fail validation if the value is changed.
How can I do this? I dig around for validation and tried
def after_validation_on_update
unless User.find_by_login(:login)
errors.add(:login, "is immutable. You can''t change it")
end
end
in model, but somewhat it
2006 Apr 14
2
Puzzled with filters
Hello everyone!
I''m trying to create an after filter for all my actions in all
controllers. I put it in application controller (application.rb).
class ApplicationController < ActionController::Base
after_filter :tidyit
def tidyit
xxxx # syntax error - intentionally
end
end
I have a Example (example_controller.rb) controller with index action.
class
2006 Mar 20
5
Google AdSense question to Rails community
Hello everyone!
I''m not sure if it''s right place to ask, but what is your experience
with google adsense? I plan to implement free web service for
community and would like to cover hosting costs. Is adsense worth the
hassle?
olegf
2006 Apr 13
3
Offsite Job
Hello
I am looking for a RoR developer to work from home/their location. I
would require 20-30 hrs of assistance every week. Interested developers
may kindly send your resume to nakshsys@gmail.com with their hourly
rate.
Best
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
1
how do I test links in templates?
Hello everyone!
Sorry, if it''s stupid question, but I can''t figure out how to do this.
I have a set of statements, for example, ''login page should have a
link to register new user'' and ''login page should have a link to
password recovery''. How do I transform it into tests? Where it should
go? It does not look like functional tests or
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this
is possible, but i cant seem to find how to do this, nor any example code
for this.
I would appreciate if someone could point me to some info or just give me an
explanation.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone!
I''ve noticed, that the book uses double quotes almost everywhere. It is like
<%= javascript_include_tag "prototype" %>
I''ve checked the "programming ruby, 2ed" book and found that double
quotes are most suited when escape sequences and substitutions are
required. Isn''t it more semantically correct to write this code like
2006 Mar 19
2
How to create a proper name for the diff for the RoR patch?
Hello,
http://dev.rubyonrails.org/wiki suggests to:
Create a patch with your changes: svn diff > my_properly_named_patch.diff
but how this proper name looks like?
olegf
2005 Dec 25
2
Caching of models?
Hello, people!
I have a problem. I googled, asked for help on IRC. I can''t find an
answer. Suppose I have model Cart (from "Agile Web Development with
Rails"). I added call to logger.warn("Some warning") to one of it''s
methods. It fails with NameError, because ''logger'' is unknown to
model.
undefined local variable or method
2006 Feb 22
5
svn externals and Edge Rails
Hi all:
I am considering using edge rails so I can use join tables. I want to
use svn:externals to manage edge rails, however I want to understand
it more before I go and set everything up. so everytime I commit my
app it will pull the most recent version of rails from the svn
repository, right? What if the current version of rails is unstable,
is there a way to rollback edgerails and NOT my app?
2006 Jul 13
3
Capistrano / developing on win32 / deplyoying on Linux
Hi,
I''m new at rails and am in the midst of deploying my first app to a test
server. The app was developed on windows. I used Capistrano to deploy,
and found a few issues:
1) I must chmod 755 dispatch.cgi each time I deploy
2) script/parse/reaper also doesn''t have the executable attributes so
the deployment fails.
3) database.yml as checked out from svn isn''t
2006 Jan 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m
trying to move into the world of open source, but I don''t have a good roadmap.
I''m starting to develop a Rails-based product and I want to have the option to
distribute it to non-hosted customers. So I''ve said all that to say this... I
want to learn how to setup linux and
2006 May 19
1
flickr like DST timezone management
Hello everyone
I wonder if anyone can point me to the library for timezone management
with DST support, which has timezones, like flickr has. I know that
there is TZInfo, but it''s a bit different for it has huge list of
available timezones in ''Continent/City'' format. I would like my
application to have timezones list more like on flickr (or windows
regional settings) -
2010 Nov 09
2
new column from column in another df
If I have a data frame where a species occupies several rows with different
phases such as (both col's ar factors):
species,phase
Populus tremula,1
Populus tremula,2
Populus tremula,3
Calluna vulgaris,1
Calluna vulgaris,2
Betula alba,1
Betula alba,2
Betula alba,3
Primula veris,1
Primula veris,2
and another df where each species only have one row:
species,growth_form
Populus tremula,tree
Acer
2006 Apr 04
8
very bold internet explorer only website
Hello everyone,
It is offtopic, but i''m so surprised :|
I was looking for some filipino martial arts videos through google
video, and came to this link
http://redcornerboxing.net/
I use Firefox 1.5 on windows.
I never seen *such* bold IE only website in my life.
olegf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ie_must_die.PNG
Type: image/png
2011 Feb 02
3
reshape data, adding rows to dataframe
Hello everyone,
I have a data set like this:
> head( fish_transect)
ID_TRANSECT ID_PROJECT DE_ZONE DE_LOCALITY DE_SECTOR MES
1 42 MB Tarragona Creixell Control I 9
2 42 MB Tarragona Creixell Control I 9
3 42 MB Tarragona Creixell Control I 9
4 42 MB Tarragona Creixell Control I 9
5 42
2005 Jul 13
2
mijail- Multiple IP's in a Jail
I have searched around the lists and Google and found this
HYPERLINK
"http://people.freebsd.org/~pjd/patches/jail_2004120901.patch"http://people.
freebsd.org/~pjd/patches/jail_2004120901.patch
I was wondering if anyone know of a multiple IP patch that works with
FreeBSD 5.4
I really do not understand why this is not included in the standard jail
I mean sure jail is handy for
2009 Jun 23
6
network usage gathering
I''ve run into a problem gathering usage for my xen virtual systems. With my
old model I used to gather all network usage via my cisco devices using the
the counters for each port. Each system had it''s own port on the switch, and
I tracked network usage accordingly. Now that I''m using xen for virtual
systems, and multiple vm''s share the same switch port,
2012 Sep 10
2
how to create a segplot in black and white?
Hi to all
I hope you can help me.
# I'm trying to plot the following ratio data with standard error bars
(horizontal).
ratioBiomass <- c(1.327, 0.865, 1.900, 0.992, 1.469, 1.381, 1.230,1.269,
2.411, 1.288, 1.861, 0.714, 1.341, 1.362, 1.065, 2.374)
SEratio <- c(19.28, 5.04, 0.01, 0.01, 0.90, 0.02, 0.002, 11.37,
0.004, 0.29, 0.003, 0.13, 0.21, 0.52, 1.66, 14.57)
Species <-
2011 Jan 19
2
count of factors
Hello everyone,
I have a data set like this:
> head( fish_transect)
ID_TRANSECT ID_PROJECT DE_ZONE DE_LOCALITY DE_SECTOR MES
1 42 MB Tarragona Creixell Control I 9
2 42 MB Tarragona Creixell Control I 9
3 42 MB Tarragona Creixell Control I 9
4 42 MB Tarragona Creixell Control I 9
5 42