Displaying 20 results from an estimated 2000 matches similar to: "Javascript Confirm for Form Value"
2009 Nov 20
3
Ensuring that foreign key is valid
I am trying to set up a validation in a model to ensure that a record
can''t be saved unless the foreign key it belongs_to is a valid record.
My model says:
class Admin < ActiveRecord::Base
validates_presence_of :user_id
validates_numericality_of :user_id
validates_uniqueness_of :user_id
validates_associated :user
belongs_to :user
end
but I can still create an admin
2009 Nov 17
2
rake db:seed with authlogic fails to populate users
I have a db/seeds.rb file that I want to load, but while the rest of the
seeds file works fine, nothing is ever populated in :users. I just fails
silently, so I can''t figure out what exactly is causing the problem.
I have authlogic installed into the user.rb model with
acts_as_authentic. I''m sure that''s part of the problem, but I''m not sure
that manually
2009 Nov 28
1
user management in ROR
Hi,
I am newbie for ROR and designing user management system, Which
includes all features including register , Profile of user , Profile
view of user, Inbox,Mails, .Please suugest some useful code links for
the same . and if you have any code for the same please help me. I
only create user registration system, Thanks in advance.
--
You received this message because you are subscribed to the
2009 Dec 02
14
root_path and root_url undefined
Hi all,
I''ve just started working on another RoR project after a couple of months
away. I''m having trouble with named routes, specifically root_*
In previous apps I''ve used root_path and root_url without any problems, but
in this project (2.3.2 - the same as my last project where I used it) it
comes up undefined.
I''ve double and triple checking my routes.rb,
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys,
This is the final list of the new maintainers of each plugin.
We need two more things to do:
First please the owners of the repos add the rest of the maintainers.
Second I will add a note on each rails/plugin mentioning this repos updates.
So from now on, if someone else is interested in helping/contributing
please send a message to the appropriate repo owner.
verification
2007 Feb 13
3
Error installing ROR on Ubuntu
Hi, I''m trying to install Ruby On Rails on Ubuntu 6.06, running on a AMD
Turion64.
I installed the ruby interpreter, RubyGems and wrote:
*gem install rails --include-dependencies
*but I''m receiving the following error message:
ERROR: While executing gem ... (Gem::InstallError)
gzip error installing /usr/local/lib/ruby/gems/1.8/cache/activesupport-
1.4.1.gem
It seems
2006 Mar 07
2
ipw can not work in adhoc mode
See atttachment.
I have already submit this bug via "report a bug" in Nov last year, but
no reply, and the problem still exist in stable-6 now.
Any one who knows how to solve this problem ?
Thanks...
-------------- next part --------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2005 Jun 09
3
Pickup problem
Hi,
when i use the *8 for the call pickup the call i fetch is directly
connected and i can't see the callers number.
What i want is that the call in the first rings at my phone and in the
second i can see the callers number.
I am using a polycom 500 ip phone. Is this a special polycom problem?
Regards,
Kib
2006 Jun 19
1
Asterisk 1.2.9 cli "-x" doesn't flush?
We have a script which executes "asterisk -n -r -x ....." periodically
against the running server, to check the status of a few things, and
pipe the output to a file.
With prior versions of Asterisk this worked fine, but having just
upgraded to 1.2.9, we are finding that if the output is lengthy, then
Asterisk seems to terminate before fully flushing stdout.
Is this a known bug, is
2007 Oct 23
6
what''s the maximum of the runinterval
hi,all
I want the puppetd run in daemon only run by the puppetrun
trigger, not schedule run .
so how can do this ? what''s the maximum of the runinterval ? I want
change this option to do this. Please help me .
--
Huang Mingyou
2006 Jun 19
2
show queue ... Invalid
Hi!
I've added member to a queue like this, from queues.conf:
member => SIP/1070@peername
It works OK. But, after restaring I see in show queue that
Members:
SIP/1070@peername (Invalid) ...
What does it mean? Why is it Invalid? BTW, reload command fixes it, so
the member receives queue calls.
Thanks!
PS. 1.2.9.1
--
DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet
2007 Nov 13
2
new to puppet - can puppet push its content to remote servers?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I was made aware of puppet a few weeks ago and I really like the way
things are working.
What I liked at cfengine was the capability to push content from the
central server to any node. There was no need to open a port from DMZ or
any other remote system to the central server.
Is there a similar way within puppet?
How is this solved by other
2010 Aug 19
3
Modules review
Hello,
i have written some modules for Puppet and would be thankful, if someone
could take a look for quality enhancements.
http://194.94.79.17/hotkey/puppet.tar.gz
The only nasty part is, that i have defined some global variables at the
site.pp, which i am using at several templates.
And i am looking for a solution to collect the hostnames and ipaddresses
of all connected nodes, without
2008 Oct 01
5
Xm Create Image Path
All,
Is is possible for xm create foo.cfg to traverse a symlink to access the foo.img. Here''s an example config and the resulting error..
---
name = "jim"
memory = "512"
disk = [ ''phy:/dev/VolGroup00/foo,xvda,r'',
''tap:aio:/home/fred/local/jim/build/foo_swap.img,xvdd,w'',
2009 Aug 04
6
question on managing multiple boxes
How do admins handle a situation with many boxes like 50 for example.
If I wish to tell 50 boxes to run a handful of commands - how is that done?
(I mean without actually logging into 1,2,3,4...X and executing the
commands)
Thanks,
Jerry
2011 Dec 01
3
FIML with missing data in sem package
Is there a way to use full information maximum likelihood (FIML) to
estimate missing data in the sem package? For example, suppose I have a
dataset with complete information on X1-X3, but missing data (MAR) on X4.
Is there a way to use FIML in this case? I know lavaan and openmx allow you
to do it, but I couldn't find anything in the documentation for the sem
package. Thanks!
--
Dustin Fife
2008 Mar 30
0
javascript confirm function in FBJS
I''d like to add the :confirm option in the link_to_remote and replace
the missing confirm function with Facebook''s Dialogs.
function confirm(text) {
dlg = new Dialog(Dialog.DIALOG_CONTEXTUAL).showChoice(''Confirm
Request'', text , ''Yes'', ''No'');
dlg.onconfirm = function() { return true; };
dlg.oncancel = function() { return
2007 Nov 21
0
Add Javascript to :confirm in form submit
I want to have some logic in my :confirm message, so that if the user
enters some illegal data, it will notify directly when clicking on
submit, and doesn''t have to go through the server.
How can I add my Javascript code to the Rails :confirm attribute?
Can I do that with AJAX forms?
Thanks,
Helzer
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2005 Apr 04
15
Two Interface Setup + router problems II
Hey all, A while ago today I posted about not being able to get my two
interface setup working with a router (di 652 wireless/wired). I
recieved help from Tom and got everything in the router turned off and
set it up as a switch rather then a rouiter, this still never
corrected my problems. Use tcpdump I see there is alot of traffic, but
as soon as I dhcpcd eth1 (local) I loose all outside access
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All,
I''m trying to use a form to upload a photo that I will save using
attachment_fu. I''m very new to Facebookr so I apologize if this is covered
somewhere, but I''m kind of stumped.
Here''s what I''m doing now:
<% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id =>
params[:id] }, :html => {