Displaying 20 results from an estimated 8000 matches similar to: "Using LIKE"
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my
Votes, I have the create action and the corresponding create.js.erb,
and respond_to :html, :js, :xml in the controller. Heres the log when
I try and create a vote:
Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan
14 20:46:36 -0800 2011
Processing by VotesController#create as */*
Parameters:
2011 Apr 26
2
exception notifier not working on production
I''m using Rails 3 and installed exception notifier as a gem. It works
perfectly in development, but for some reason it isn''t sending e-mails
in production. When I check the logs, I don''t see any mention of my
app trying to send an e-mail, but running rake middleware shows that
it is loaded. I''m really confused, why is this happening?
--
You received this
2009 Mar 15
3
Capistrano deploy errors
Hi, when I do cap deploy:cold I get this error:
rake aborted!
undefined local variable or method `acts_as_commentable'' for #<Class:
0x7fa1c34a2f10>
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:1833:in `method_missing_without_paginate''
/usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.8/lib/
will_paginate/finder.rb:170:in
2011 Sep 09
2
Manhattan Plot
To whom it may concern:
My name is Jillian Weinfeld. I am currently and undergraduate student at New York University and working at Mount Sinai School of Medicine doing research with epilepsy patients.
At the moment I am creating a manhattan plot with my data set. After reading many forums and such, I have appropriately plotted my data, however, I wanted to see how I can change the colors of the
2006 Nov 06
21
acts_as_ferret and associations
I have the following models:
class Book < ActiveRecord::Base
acts_as_ferret
belongs_to :author
end
class Author < ActiveRecord::Base
has_many :books
end
and in the controller:
def search
if params[:query]
@query = params[:query]
@total, @books = Book.full_text_search(@query, :page =>
(params[:page]||1))
@pages =
2009 Jan 02
5
Very odd NoMethodError/stack overflow....
I''m getting this very weird error and I can''t figure out what the
problem is. I''m using acts_as_commentable. Basically, I have a partial
with this code in it:
<div id="<%= ''#{comment.commentable_type}_comment_#
{comment.commentable_id}'' %>" class="comment">
<dl>
<dt><%= link_to comment.user.login,
2010 Mar 13
4
Creating images without X11
Dear Colleagues,
We are attempting to create trees using R with our Ruby on Rails
application. However, we are running into a problem involving the
creation of the graphic. We would like them to be in either jpg or png
format so that users can save, but due to a lack of control over our
sever we are unable to start X11 server. Is there a way to create
these images without using X11 server?
2006 Aug 04
4
cannot convert String into Integer
Hi, I''m trying to implement a live search that supports searching for
multiple words. So for example, if I type "ruby rails" in the search
field, I would return results that have either the word "ruby" in them
or the word "rails" in them. However, this is just a background as to
what the following code is trying to do and might not even be needed to
fix
2010 Mar 13
3
(no subject)
Dear Colleagues,
We are attempting to create trees using R with our Ruby on Rails
application. However, we are running into a problem involving the
creation of the graphic. We would like them to be in either jpg or png
format so that users can save, but due to a lack of control over our
sever we are unable to start X11 server. Is there a way to create
these images without using X11 server?
2009 Dec 05
4
paste adjacent elements matching string
Hi all,
I would like to combine elements of a vector:
vec <- c("astring", "b", "cstring", "d", "e")
> vec
[1] "astring" "b" "cstring" "d" "e"
such that for every element that contains "string" at the end, it is
combined with the next element, so that I get this:
2006 May 03
2
grouped output
hello,
Suppose I have a table that looks like this:
center name email
Health Jon jon@test.com
Health Bob bob@test.com
Admin Jane jan@test.com
Admin Jill jill@test.com
I would like the output to look like this:
Health
Jon jon@test.com
Bob bob@test.com
Admin
Jane jan@test.com
Jill jill@test.com
when i using cold fusion, this was easy via a tag called cfoutput.
when i was using java, this was
2009 Aug 12
4
paste first row string onto every string in column
Hi,
I am trying to edit a data frame such that the string in the first line is
appended onto the beginning of each element in the subsequent rows. The data
looks like this:
> df
V1 V2 V3 V4
1 DPA1* DPA1* DPB1* DPB1*
2 0103 0104 0401 0601
3 0103 0103 0301 0402
.
.
and what I want is this:
>dfnew
V1 V2 V3 V4
1 DPA1* DPA1* DPB1* DPB1*
2 DPA1*0103
2005 Nov 19
14
FULLTEXT search in MySQL on rails
I tried adding a FULLTEXT search index to a table of mine in MySQL,
only to discover that the InnoDB table format doesn''t seem to support
this feature. Switching to the MyISAM table type seemed to work, but
I seem to have some recollection that ActiveRecord transactions aren''t
fully atomic on MyISAM tables. Is this true or am I just remembering
wrong? If so, does anyone have
2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation
method .mock, which returns the original mock associated with an
expectation.
It looks really handy for writing nice all-in-one mocks like:
mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock
So I started playing around with mocha and found I could actually
already do this!
2009 Oct 05
3
how to have 'match' ignore no-matches
Hi all,
I think this is a very basic question, but I'm new to this so please bear
with me.
I'm using match to translate elements of a data frame using a lookup table.
If the content of a particular cell is not found in the lookup table, the
function returns NA. I'm wondering how I can just ignore those cells, and
return the original contents if no match is found in the lookup table.
2004 Jun 03
2
Force user
Hello list
The Samba Howto Collection repeatedly asserts that by setting the sticky
bit on directories any files created in those directories will be created
with the owner set to that of the directory (for example, see
http://samba.mirror.ac.uk/samba/docs/man/howto/AccessControls.html#id2541262).
This has never worked for me. Files created inherit the group of the
directory, but not the owner.
2003 Jul 28
5
hi
Guess what
I have no clue what i am doing/ meant to do with R. i have just begun statistics for uni and all commands don't seem to work, they say syntax error, we are meant to put a hist.r in but ? please help, step by step, to use this program i would turn it on (it comes up rgui) is this wrong, have i put the wrong bit on it?
Please help, I am so glad there is an R help
Thankyou
jill
2008 May 16
1
symbolic linking
I have a number directories under /opt on computer jack. I want some (not all)
of them to appear in /opt on computer jill.
I have the /opt directory on jack mounted on jill under /mnt/jack
If I go into the /opt directory on jill and do this:
ln -s /mnt/jack/opt/files .
I get /opt/files/files on jill. What I want is /opt/files and I can't see what
I'm doing wrong.
--
MELVILLE
2004 Feb 18
1
Preview Samba-3 by Example book
Hi All,
I know there has been a lot of interest in John Terpstra's upcoming book,
"Samba-3 by Example: Practical Exercises to Successful Deployment." The book
is scheduled to print end of March and can be found at local bookstores by
early April.
In the meantime, John will be giving a talk at the BYU UNIX User's Group
tomorrow, Thursday, February 19th at 8PM, where he will be
2006 Mar 04
2
Using Migrations to Build a MySQL FULLTEXT index?
Can anyone point me to the proper syntax to build a FULLTEXT MySQL
index via migrations?
I''m really liking these things, and don''t want to step back into the
world of manual intervention.