Displaying 20 results from an estimated 4000 matches similar to: "Validation - set focus"
2009 Apr 06
9
setup method in functional tests and instance variables
I have the following in my functional test file.
class UserControllerTest < ActionController::TestCase
fixtures :users
def setup
@controller = UserController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@invalid_user = user(:invalid_user)
@valid_user = users(:valid_user)
end
def test_login_success
2009 Mar 31
3
Accept POST data from external source?
Ok, this is harder than I thought. I''ve got a hunk of XML coming in
from an entirely external source that I do not control (but another
department in my company does, so it''s not like a giant security hole).
I was hoping to just have them POST their data to me, and then I''d read
the raw stream and parse it.
I''m sure folks know what I ran into -- Invalid
2009 Mar 23
6
PDFs prawn gem freeze into the app...
I was having great success with creating PDFs with prawn, I followed
Ryan Bates latest screencast. All good.
Trouble is when i come to deploy the app on my webhost I ran into
trouble.
Rails 2.3 app.
I did, "sudo rake gem unpack prawn" to freeze it in.
I put the app on my webhost but it won''t start, some error saying it
can''t find prawn.
Any ideas? (summary: works
2009 Mar 26
2
send_file using AJAX
I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file... how do I fix this?
Regards,
Sudhindra
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2009 Mar 17
1
Caching in Rails
I have a page that requires a lot of DB access to create a section of
it, but that section does not change very often. I know how to cache
the fragment in the view, but the db is still accessed in the
controller. I watched the railscasts on fragment caching and he does
it by moving the logic to the model. Is that the only way to do it?
The part of the page that changes on every display is the
2009 Mar 10
5
onsubmit for remote_form_for not working properly
I want to use onsubmit for a form validation using javascript on
remote_form_for
for this i am doing something like this
<% remote_form_for :timesheet, @timesheet, :url =>{:action =>
''report_user''}, :html => {:onsubmit=>"return ValidateDate();" } do |f|
%>
// Form elements here
<% end %>
but it not works well. if condition return false
2020 May 29
2
LLVM Support needed
I wanted confirm answer from you guys.
Request you to provide authentic information on this.
Best Regards / Mit freundlichen Grüßen
Minal Kulkarni
Knorr Bremse Technology Center India
Survey No.276, Village Mann, Hinjewadi, Phase II, Tal.Mulshi,
Pune - 411 057. Maharashtra , India.
Phone: +91 9028098122
Mobile:
mailto:minal.kulkarni at knorr-bremse.com
2020 May 28
2
LLVM Support needed
Hello Dear Team,
I wanted to know in which version of LLVM Tricore architecture is supported.
I have LLVM 2.8 with me which has no support for Tricore.
Basically I wanted to add Aurix target support.
Could you please help me.
Best Regards / Mit freundlichen Grüßen
Minal Kulkarni
Knorr Bremse Technology Center India
Survey No.276, Village Mann, Hinjewadi, Phase II, Tal.Mulshi,
Pune - 411
2003 Oct 31
1
What may be causing these errors?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
knorr smbd[5439]: [2003/10/31 10:27:02, 0]
lib/util_sock.c:get_socket_addr(919)
knorr smbd[5439]: getpeername failed. Error was Transport endpoint is
not connected
knorr smbd[5439]: [2003/10/31 10:27:02, 0]
lib/util_sock.c:write_socket_data(388)
knorr smbd[5439]: write_socket_data: write failure. Error = Connection
reset by peer
knorr smbd[5439]:
2007 May 31
28
Another attempt for a succinct model validation DSL
On 5/28/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> The behaviour you''re trying to describe is that the User should
> require that passwords bear certain qualities - in this case a length
> between 5 and 40. So you need to ask yourself how the User should
> behave when this requirement is violated, and then specify that it
> behaves that way.
>
>
2005 Oct 31
5
zombie domains
Hi,
How can I figure why some domain is still in zombie state, like these ones:
master-xen root /vm/ttylinux# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 574 1 r----- 90.5
Zombie-small-11 28 0 1 ---s-d 0.9
Zombie-small-17 34 0 1 ---s-d
2005 Nov 17
5
[DOC] Update item on FAQ
It''s not quite clear how to go about this so hopefully whoever maintains
the FAQ is on this list.
As part of closing bug #156, it would be nice to add a sentence on item
4.8 (The initrd that came with my distro does not...) to include the
following sentences:
"Some distros (notably SLES9) have a mkinitrd that adds garbage to the
end of the initrd. These initrds will not work
2010 Feb 24
0
Attachment fu file path
Hi I am using attachment fu plugin for uploading data.
say : User has_many :photos
I wanted to save the uploaded photo in the path as follows.
/files/<user_id>/photos/1.jpg - while uploading first photo
/files/<user_id>/photos/2.jpg - while uploading second photo
1) Is there any way to make a folder name with user id ?
2) Is there any way to rename the file in sequential order ?
2007 Apr 18
2
[patch] asm/i386/kernel/paravirt.c buildfix
asm/i386/kernel/paravirt.c buildfix.
drop apic_* duplicates which are defined in asm/paravirt.h
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
arch/i386/kernel/paravirt.c | 14 --------------
1 file changed, 14 deletions(-)
Index: paravirt-2.6.19-hg686/arch/i386/kernel/paravirt.c
===================================================================
---
2007 Apr 18
2
[patch] asm/i386/kernel/paravirt.c buildfix
asm/i386/kernel/paravirt.c buildfix.
drop apic_* duplicates which are defined in asm/paravirt.h
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
arch/i386/kernel/paravirt.c | 14 --------------
1 file changed, 14 deletions(-)
Index: paravirt-2.6.19-hg686/arch/i386/kernel/paravirt.c
===================================================================
---
2006 Jul 07
3
Credit Card validation using rails? can i do it on rails?
help me with this one, i need any tutorials regarding this credit card
validator
--
Posted via http://www.ruby-forum.com/.
2005 Dec 21
3
[patch, rfc] put IP addresses into xenstore
Hi,
$subject says pretty much all, this patch updates netfront and makes it
store the network addresses of the interfaces in xenstore, so it''s much
easier to figure what IP some virtual machine has and (for example) ssh
into it.
comments?
Gerd
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
2005 May 30
24
stable / unstable parallel install?
Hi,
Is there some easy way to install both 2.x and unstable xen
tools at the same machine? Seems /usr is hardcoded everythere
in the tools Makefiles, looks like there is no easy way to put
them to different paths (say, prefix /opt/xen2 and /opt/xen3)
:-/
Gerd
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all,
I feel like I''m missing something really easy and I''m just not seeing
it.
I''m using the restful_authentication plugin and have a User model. Uesr
has_many :things and Thing belongs_to :user.
That''s it.
I did a "script/generate rspec_scaffold thing" to generate all the
necessary bits. The "rake db:migrate" to create the db.
At
2009 Jun 14
5
Partials views and instance variables go nil
Hi everyone!
Model: http://pastie.org/511290
Controller: http://pastie.org/511285
View new: http://pastie.org/511286
View _form: http://pastie.org/511284
When I hit submit button there''s an error for usuarios(users in
portuguese) instance. It does not seems to save usuarios even though it
seems to be posted by the form.
Error: http://pastie.org/511292
Need some help here guys plz
--