Displaying 20 results from an estimated 10000 matches similar to: "Stripping out non-word characters?"
2006 Jan 27
10
html special characters. h() failure.
I was trying to convert a some text with the (r) character it so it
replaced character \xAE with ®
h(@item.description) didn''t do anything. I need to use
@item.description.grep(/\xAE/,''®'') for it to work.
I think the h() function should be able to do all the codes that are
available.
Regards Neil.
2006 Mar 01
9
ajax doesn''t show at the right place
Hi,
I use link_to_remote to create a link to trigger an
ajax, things work fine, a new rhtml is created,
however, the newly created rhtml doesn''t replace my
old zone, it shows instead on top of my old
zone...Does someone know why???
my code is like
<table>
<tr><td colspan="2"><a href="#" onclick="new
Ajax.Updater(''zone1'',
2006 Feb 07
3
ActiveRecord for kirbybase?
I''ve found vague mentions of various attempts at creating an ActiveRecord adapter for the KirbyBase pure Ruby DBMS, but
nothing which looks like it''s actually working. Anyone know of such an adapter that is functional and available?
b
2006 Jan 30
5
url for image in css
Hi,
I''d like to call a background image for every item in a list. Something like
div#nav li.submenu {background: url(dropmenu.gif) 95% 50% no-repeat;}
the image is in public/images/dropmenu.gif
Thanks,
Peter
2006 Jun 03
2
looking for radrails devs
I just got an email update on a radrails bug that I submitted a while back...
Unfortunately, it''s just stupid spammers.
So, I tried to go to the radrails trac to delete the spam or at least report it, and their
trac is puking python errors (including environment information) all over the page! I
can''t seem to get to any pages with any contact info, so I''m trying
2006 Jan 31
5
Rails auth systems using LDAP?
Hi everyone,
Are there any Rails systems that are either:
* Easily extensible to use a different auth store?
* Use LDAP out of the box?
Thanks,
Sean
2006 Feb 12
9
CSS in Views
How can I link to a CSS file in one of my view files?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 24
14
engines
This page:
http://www.rails-engines.org/download
makes it sound like SVN is optional for using engines, but when I try to run the second
command ("ruby script/plugin install engines"), I get the NoMethodError on nil as
described in the second issue reported here:
http://www.rails-engines.org/wiki/pages/Engines+plugin%3A+Known+Issues
So, which is it? Do I have to have SVN installed
2006 Feb 17
2
validate uniqueness of two fields
I have Proposals and Members and Members can vote for a proposal only once.
So, I have "Vote belongs_to :member, :proposal", but to make sure a member only votes
once, I want to make sure that there isn''t a vote in the db with that member_id and
proposal_id. I can just put the appropriate find in a vote.valid? but I wanted to make
sure I wasn''t missing a nice rails
2005 Jun 12
2
delete "-character from strings in matrix
Hi!
I have strings where occasionally some "-chars occur.
How can I delete these chars?
I tried it with gsub but using "" as replace does not
work.
Thanks a lot for any hint!
Regards,
Werner
2006 Feb 03
6
Rails from the command line
I have controller that processes data in one table and puts results in
another. Now that its'' working, I would like to be able to run it from the
command line ( read: windows batch file). How can this be done?
It will be installed on a Windows box with InstantRails1.0, (if that
matters).
I will be doing more processes like this, so this is a good opportunity to
get it right.
--
Best
2006 May 11
7
Rails in Dr. Dobbs Journal ?
Hi,
I''ve read that Dr. Dobbs Journal''s last issue has a cover article about
Rails titled "Ruby On Rails - Java''s Successor?". Can''t find anything
about it in http://www.ddj.com
Does someone have the paper edition and can confirm that, and tell
how the article looks like, and so on.
Thanks,
-- Jean-Fran?ois.
--
? la renverse.
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2006 May 08
7
How to get difference between two dates in days???
Hi,
I want to calculate difference between Current date & previous date
(stored in database). The difference should be in days. Hhow to do
that??
PLs tell me.
Thanx in advance.
Prash
--
Posted via http://www.ruby-forum.com/.
2006 Feb 08
5
Regular Expression Question
I have looked through the Ruby Pickaxe book as well as done a search
but can''t figure out how to validate the format of a field. The field
I want to validate is a credit card expiration date field. Based on
our user study (going around the office and asking everyone the way
they like to fill out that particular field type) everyone prefers
the following format in one field:
2006 Feb 05
16
script/plugin install fails
Running script/plugin install
svn://rubyforge.org/var/svn/laszlo-plugin/tags/openlaszlo fails,
returning the help information for the "export" command:
export: Create an unversioned copy of a tree.
usage: 1. export [-r REV] URL [PATH]
2. export [-r REV] PATH1 [PATH2]
etc...
Has anyone encountered this before?
System info:
Mac OS 10.4.4.
ruby 1.8.2 (2004-12-25)
svn, version
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page
says to put "before_filter :login_required" in the user (my "user" is "member") controller
or in ApplicationController. However, wherever I put it I get NoMethodError.
The rest of the SHLG stuff seems to be working... or at least I could get to the signup
page, register, and
2006 Feb 19
4
Multiple Characters Negate Using Regexp
Dear experts,
I am trying to build a regular expression to filter out anything between <script ... > and </script> tags where I can specify something using negate class to exclude more than one character in sequence.
I tried:
originalresponse.gsub(/<script([^>]+)>([^<]+)?<\/script>/,'''')
but obviously if the script has the
2007 Jan 17
4
Memory leak with character arrays?
Hi -
When I'm trying to read in a text file into a labeled character array,
the memory stamp/footprint of R will exceed 4 gigs or more. I've seen
this behavior on Mac OS X, Linux for AMD_64 and X86_64., and the R
versions are 2.4, 2.4 and 2.2, respectively. So, it would seem that
this is platform and R version independant.
The file that I'm reading contains the upstream regions
2006 Mar 14
3
specifying table type
I''ve been creating my tables using the command line approach Dave advocates in AWD. I just noticed that they''re being created as MyISAM-type tables. I remember reading (but not where) that I should be creating these as InnoDB-type tables. So, two questions...
1) Is the table type important? (a "why" component to the answer would be nice too ;-) )
2) If so, is