Displaying 20 results from an estimated 5000 matches similar to: "About Error handler"
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity
post=County.new(:name=>"myname",:description=>"mydesc")
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
<false> is not true.
what does it say i cannot under stand
please help
--
Karthik.k
Mobile -
2009 Jul 29
6
Doubt in nil object with ajax
hi this is my htnl
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<%= form_tag nil, { :id => ''search_form'' } %>
<%= text_field ''recipe'', ''name'' %>
<%= end_form_tag %>
<div id="recipe">
</div>
<%= observe_form :search_form, :frequency =>
2009 Aug 24
3
ActivRecord APIs for DB transactions
Hi guys
Can i get some reference for studying all ActivRecord API related to
DB transactions.
--
Karthik.k
Mobile - +91-9894991640
2006 May 17
6
ActiveRecord#to_param
Hello,
to implement some some kind of optimistic locking, I want to build a
view, where an object is displayed together with a link containing the
data of the displayed object. My first try looked something like
<%= object.object_discription %>
<%= link_to "action", :action => "take_action", :data => object %>
this won''t work because object is of
2009 Aug 28
4
InvalidAuthenticityToken
Hi guys
What does the below line says
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
-e:2:in `load''
-e:2
Please guide me
--
Karthik.k
Mobile - +91-9894991640
2006 Apr 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All,
Apache 2/FastCGI on Linux
My fastcgi config. file is set up to run the "test" RAILS_ENV.
When I go to access a view associated with a particular controller, I
keep getting a ENOENT (file not found) error on a custom config. file
that I am attempting to load.
What I can''t figure out is why it can''t find the file.
Here''s the code that loads it in my
2010 Sep 23
7
errors.add, setting the whole message
Hi all. I have an attribute, job_role_id_short, that is being set in a
form. This field has a custom validation on it, which does this if it
fails:
self.errors.add(:job_role_id_short, "cannot be blank")
I want to add the error onto the attribute, so that the form builder
will wrap the field in a fieldWithErrors div. However, the error it
generates says "Job Role Short cannot
2003 Sep 23
1
smbclient write default to stderr?
Hi
I have problem with smbclient in samba3 rc2, rc4.
When I start tar backup with it:
smbclient //comp-32/volume pass -U user -d0 -Tc /dev/tape0 > /dev/null
[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
directory \Kart-32\
[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
directory \Kart-32\mairs\
[2003/09/23 08:27:46, 0]
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up
the thread, so I''m starting over.
I''m trying to built a document upload system. The system has a main
Document model with different subclasses for different types of documents.
With the code below, if I attempt to create a Document, it works fine, but
if I attempt to use one of the subclasses, I
2008 Jan 18
2
NameError when using alias_method -- but method exists?
Hello Rubyists,
I am a bit stumped here. I want to extend the ''load_file'' method in the
YAML module. Following along with the PickAxe example of making old
methods do new things, I try this in irb:
>> module YAML
>> alias_method :orig_load_f, :load_file
>> def load_file(*args)
>> contents = orig_load_f(*args)
>>
2016 Aug 02
29
[Bug 97192] New: SuperTuxkart graphic errors [NVE4 - GK104]
https://bugs.freedesktop.org/show_bug.cgi?id=97192
Bug ID: 97192
Summary: SuperTuxkart graphic errors [NVE4 - GK104]
Product: Mesa
Version: unspecified
Hardware: x86-64 (AMD64)
OS: other
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
Assignee:
2014 Oct 12
5
Help with xapian
Hi,
I am unable to build the letor module. I am generating the configure file
using autoconf. The configure file generated is throwing the error
./configure: line 2057: syntax error near unexpected token `1.10.1'
./configure: line 2057: `AM_INIT_AUTOMAKE(1.10.1 -Wportability tar-ustar)`
I am not too sure what to do with this. Need help with this.
Thank You
Regards
Karthik
On Mon, Sep 29,
2009 Sep 03
12
paperclip is not saving the files
Hi all,
I''ve installed paperclips but
paperclip is not saving the files
my model has
has_attached_file :attachment,:styles => { :medium => "300x300>",
:thumb => "100x100>" }
and i have db migration as
class AddAttachmentToPolicies < ActiveRecord::Migration
def self.up
add_column :policies,
2011 Feb 06
1
Psych can't load LaTeX entities file
Hi there,
I wanted to use RedCloth with my RubyOnRails 3 application, but it seems
that RoR uses 1.9.2''s Psych by default as the YAML parser if available,
and Psych fails to load the LaTeX entities file:
====================================================================
#ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
irb(main):001:0> Dir.pwd
=>
2012 Nov 06
19
puppet failing to run
I am getting this error after installing puppet with gem
$ gem install puppet
Fetching: facter-1.6.14.gem (100%)
Fetching: puppet-3.0.1.gem (100%)
Successfully installed facter-1.6.14
Successfully installed puppet-3.0.1
2 gems installed
Installing ri documentation for facter-1.6.14...
Installing ri documentation for puppet-3.0.1...
Installing RDoc documentation for facter-1.6.14...
Installing
2006 Apr 11
2
class level "static" code in controller object not working
All,
I have the following code that I put in my controller which I am using
to initialize some static data. Note that it is not contained with a
method of any kind.
puts "test"
config = YAML.load_file("config/config.yml") if config.nil?
Dir.mkdir(config[''html_upload_folder'']) unless
File.exist?(config[''html_upload_folder''])
I
2014 Sep 29
2
Help with xapian
Hi,
I have started getting a hang of the xapian codebase. I think I would like
to try my hands on the letor module of xapian. Could you please suggest
some free data set for the training and testing of letor features. I am not
able to get the INEX data set from anywhere (the one mentioned by parth
gupta in his GSOC 2011 projecct.
Regards
Karthik
On Mon, Sep 22, 2014 at 4:23 PM, Olly Betts
2018 Mar 14
2
Can't heal a volume: "Please check if all brick processes are running."
On Wed, Mar 14, 2018 at 3:36 PM, Anatoliy Dmytriyev <tolid at tolid.eu.org>
wrote:
> Hi Karthik,
>
>
> Thanks a lot for the explanation.
>
> Does it mean a distributed volume health can be checked only by "gluster
> volume status " command?
>
Yes. I am not aware of any other command which can give the status of plain
distribute volume which is similar to
2018 Mar 14
0
Can't heal a volume: "Please check if all brick processes are running."
On Wed, Mar 14, 2018 at 5:42 PM, Karthik Subrahmanya <ksubrahm at redhat.com>
wrote:
>
>
> On Wed, Mar 14, 2018 at 3:36 PM, Anatoliy Dmytriyev <tolid at tolid.eu.org>
> wrote:
>
>> Hi Karthik,
>>
>>
>> Thanks a lot for the explanation.
>>
>> Does it mean a distributed volume health can be checked only by "gluster
>> volume
2014 Feb 25
2
GSoC 2014
Hi,
I am C Karthik Iyer, a 3rd year B Tech student at NITK Surathkal. I am
interested in working on projects on Information Retrieval and Machine
Learning. I've had previous experience on working on projects regarding
Question Answering Systems.
I have a project idea which includes both IR and ML but i dont know how
feasible the idea is. Could you guys say when will you be available