Displaying 20 results from an estimated 300 matches similar to: "RailsTidy: validates your HTML"
2006 Feb 17
5
getting old values
Hi all,
I''ve add :before_update event to my model
Before updating a record I want to check if new attributes differ to old attr.
My question is how to retrieve old attributes in :before_update event ?
thanks
--
gratis egold 1$ http://shegold.com/
2006 Jun 01
5
History plugin
Hello,
I felt annoyed enough when having to redirect user back to their
previous location in a hackish way that I wrote this plugin.
It avoids storing POST and Ajax request. It also has a facility to
specify actions not to store in the history.
If you are interested, it''s there:
http://blog.cosinux.org/pages/rails-history
See you all,
Damien
--
Damien MERENNE
2006 Feb 13
2
Do I need separate file for each model
Hi,
I have some models in a file named genel. When I try to use one of the classes in my controller rails raises an error telling classname.rb is not forund even the file is required already.
require "genel"
require "hesaplar"
class HesaplarController < ApplicationController
def yeni_firma
@emlak_firmasi = EmlakFirmasi.new
@sehirler = Sehir.find_all
end
2006 Feb 13
1
master and slave issue.
hi all.
i have a model called "Comment":
#---------------------------------------------------------
class Comment < ActiveRecord::Base
def read
...
end
def write
...
end
end
#---------------------------------------------------------
i want "read" connect to slave server and "write" connect to master
server
any ideas?
all regards.
--
Posted via
2007 Jul 31
1
RXML: <ruby:put expr="1+2"/>
Hello
railers,
I''ve always been annoyed by the fact that ERB doesn''t respect XML
specs.
As I mostly write XHTML, I''m trying to write a renderer using only
valid
XML files. Here is an example of a file so you get the feeling of
what
it''s going to
do:
<?xml version="1.0" encoding="utf-8"?
>
<html
2006 Feb 06
2
how do i reload a module in the vendor directory?
This seems like a fairly straight forward question. I have code in the
vendor directory.
Any modifications that I make to the code are not respected. My rails app
is in development mode so I would expect any require ''code'' to be
re-parsed. But this is not occuring... How so? I have a test to post if I
need to, but I get the feeling that I am just missing something simple. I
2006 Jun 07
1
railstidy
Hi there,
anyone had any trouble with railstidy?
I''m using it on 1.1.2 just to tidy my output and I get a server error everytime, but the only log message I get is:
FastCGI: incomplete headers (0 bytes) received from server "/var/rails/dev/public/dispatch.fcgi"
I have:
after_filter :tidy
def tidy
RailsTidy.filter(response)
end
...in my application.rb and I can get
2006 Feb 13
1
Component or plugin
Hi!
I have been learning rails for a couple of week now.
Mostly i''ve worked on a authorize/roles system and now i go to the
point that i want to separate it from en rest of my application to
share it with others and to use it in other projects.
It is a quite simple system that i implement using before_filter.
My vision is to separate the authorize methods and even some basic
2006 May 22
4
naming convention for bridge tables.
I read somewhere that the correct naming of bridge tables is in alpha order.
For example. I have two tables:
houses, and colors.
If I want to create a bridge table to associate colors with houses, I would
name the table:
colors_houses
The associations work fine.
But, if I have a table named: track_houses.
Building a bridge table called: colors_track_houses, gives me model
associaton errors.
2006 Feb 14
8
Best Practices For back/cancel/return button
Are there any best practices for implementing a back/cancel/return
button... even when the page you want to return people too is 2 pages
back (when people submit form and then want to return)?
Thanks :-)
Your Friend,
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
2006 Dec 02
0
has_and_belongs_to_many and finder_sql options
Hello everybody,
I''ve been hit by the bug described at
http://dev.rubyonrails.org/ticket/1732
Is there any reason why the patch is still not included in trunk ? The
patch seem simple enough.
Regards,
--
Damien Merenne
http://blog.cosinux.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Jan 17
0
SwitchTower and Bazaar-ng
Hello,
I tested switchtower and saw it lacked bazaar-ng support. I''ve added
support for it to switchtower. It "works for me" but has not been very
much tested. You can find it on my blog at
http://www.cosinux.org/blogs/dam/articles/2006/01/17/bazaar-ng-and-switchtower
I hope this will be useful to somebody. Any comments are welcome.
Bye
Dam
2006 Nov 15
2
Replay mail to test MTA + filtering
Hi All,
My kit : Centos4.4 + Postfix + SA + ClamAV (not that its relevant)
General question - Does anyone know of a product which can take a folder
/ mbox
of mail (spam, ham, virus infected stuff, scam mail and hoaxes) and
"replay" it back
against a test server to determine the servers ability to filter?
I have looked at some low level (IP) packet replayers, but i cant really
find
2006 Feb 19
2
SwitchTower 1.0.0
SwitchTower is a utility that can execute commands in parallel on
multiple servers. It allows you to define tasks, which can include
commands that are executed on the servers. You can also define roles
for your servers, and then specify that certain tasks apply only to
certain roles.
Manual: http://manuals.rubyonrails.org/read/book/17
Project:
2006 Feb 14
3
Ruby equivalent to PHP Beautify?
Hi all,
I am working on a project in Rails for my senior seminar
class. I am fairly new to Rails but I have done a major
project, so I know a little. The one thing I cannot find
however is a way to make the html code that is output
look any cleaner. So, I was wondering if there was a
function/library/extension that worked like PHP
beautify. Thanks for your input in this matter. I am sure
I will
2006 Feb 15
5
Formating @content_for_layout
Hi all, I sent a message earlier, so forgive me if you have already
read this (I got some cryptic message in German about how my
e-mail was not read?). Anyway, I was just wondering if there was
any way to format the html that is output using
<%= @content_for_layout %>
I want to use something like the PHP Beautify. I guess I could
write my own, but I was hoping that Rails already had
2013 Sep 02
1
R dataframe and looping help
HI,
You may try this:
dat1<- read.table(text="
CustID TripDate Store Bread Butter Milk Eggs
1 2-Jan-12 a 2 0 2 1
1 6-Jan-12 c 0 3 3 0
1 9-Jan-12 a 3 3 0 0
1 31-Mar-13 a 3 0 0 0
2 31-Aug-12 a 0 3 3 0
2 24-Sep-12 a 3 3 0 0
2 25-Sep-12 b 3 0 0 0
",sep="",header=TRUE,stringsAsFactors=FALSE)
dat2<- dat1[,-c(1:3)]
res<- lapply(seq_len(ncol(dat2)),function(i)
2012 Mar 18
2
word frequency count
Hi:
I have a dataframe containing comma seperated group of words such as
milk,bread
bread,butter
beer,diaper
beer,diaper
milk,bread
beer,diaper
I want to output the frequency of occurrence of comma separated words
for each row and collapse duplicate rows, to make the output as shown
in the following dataframe:
milk,bread 2
bread,butter 1
beer,diaper 3
milk,bread 2
Thanks for help!
deb
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here:
http://dev.rubyonrails.org/changeset/4010
--
Posted via http://www.ruby-forum.com/.
2010 Aug 03
4
why does btrfs pronounce "butter-eff-ess"?
As far as I know, btrfs comes from "btree file system", but why does
btrfs pronounce "butter-eff-ess"?
--
Wang Shaoyan
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html