Displaying 20 results from an estimated 3000 matches similar to: "link_to_remote (AJAX) and tables: IE issues, validation?"
2006 Jan 05
8
Repost - Do dynamic finders work with legacy schemas?
Hello everyone,
I have another question related to a legacy schema I am working with.
Do dynamic finders work with legacy schemas in general? The schema I am
working with uses hungarian prefixes for column names. For example fOpen is
0 if a bug is closed and 1 if it is open (type smallint). When I try @bugs
= Bug.find_all_by_fOpen(1), I get the following exception:
undefined method
2006 May 09
2
[Prototype] Why doesn''t calling submit() on a form result in the execution of the onsubmit event handler?
Hi,
Is it normal that a call to $(''some_form'').submit() doesn''t result in the
execution of an onsubmit event handler on ''some_form''?
Thanks,
- Rowan
--
Morality is usually taught by the immoral.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Dec 27
4
Using mocks
Hi,
What's the purpose of test/mocks? I couldn't quite complete the Wiki
entry on this because all the information I _could_ find was in the
readme.
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 15
2
Checking the existance of a NOT NULL constraint from Active Record
Hi,
I'd like to check the existance of a NOT NULL constraint for a given
attribute using ActiveRecord. Is this possible or do I have to
painstakingly query the information_schema myself? I need this for
some reflection in a custom association.
Thanks,
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
2006 Jan 06
4
Are migrations executed within a transaction?
Hi all,
Can I safely assume that each migration is excuted within a
transaction, so that''s it''s safe to have migrations executing failing
statements?
Thanks,
- Rowan
--
Morality is usually taught by the immoral.
2006 Jan 03
3
SwitchTower and Subversion branches
I''m working on a Rails project that needs to be deployed in the near
future. To enable prompt responses to bug reports, me and my coding
partner were thinking to use the following SVN repository
lay-out/policy.
We''re using trunk/ for our main-line development. Whenever we deploy
something from our trunk, we first want to make a branch (e.g.
branches/1.x) and then derive a tag
2006 Jan 05
1
How to freeze SwitchTower
Hi all,
I''m wondering if "rake freeze_gems" will freeze SwitchTower as well.
If it doesn''t, I could try to modify the rake task at [1] to freeze
extra gems such as switchtower into vendor/ (the rake task at [1]
freezes gems into lib/ which I disagree with).
Is there anyone else actually using a "frozen" SwitchTower? If so,
what did you do to freeze it with a
2006 Feb 23
1
Ajax, validation, flash messages & redirects...
Hi everyone,
I''m working on an file upload page that uses an ajax progress bar
(http://sean.treadway.info/demo/upload/). I''ve also got validation on
the uploads (must be a certain file size/mime type etc). When uploads
pass validation - all is dandy. But when they fail - I can''t work out
how to redisplay the form with the flash error messages (that normally
appear
2005 Jun 30
2
Find by ID plus conditions -> ActiveRecord::RecordNotFound
Hi
I''m trying to understand the AR find facilities, described here:
http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000650
I have a list of ids that I want to retrieve, but have a condition that
should restrict the list returned:
return self.find(
noteids,
:conditions => [ "(private = 0 OR (private = 1 AND user_id = ?))", userid]
)
According to the
2005 Jun 29
3
Setting the value of a primary key field
I have a table that is to hold all ISO 639 language codes: alpha3t, alpha3b,
alpha2, that bunch. It also (indirectly) holds language names, but
that''s off-topic.
alpha3t is the primary key, so I''ve told Active Record about this by saying
set_primary_key "alpha3t" within the Language model. (Don''t try to call your
models things like ISO639 (won''t work
2006 Apr 08
4
Calling validates_inclusion_of out of default namespace
Hi,
I''m trying to run the "validates_inclusion_of" method in a before_save hook,
because the range is dependant on the related data. But I can''t figure out how
to call it. When calling it normally, it says it can''t find it.
I''ve tried several combinations like
"ActiveRecord::Validations.validates_inclusion_of", but I can''t seem to
2006 Jan 24
3
AJAX Preview & Edit Page Problem
I''m new to RoR and have started building my first application.
I''m building an account sign-up controller and I have two questions:
1. What is the best way to pass form params between methods in my
sign-up controller? The solution I''m using seems too hacky and there''s
got to be a something more elegant. I''m instantiating User.new to
capture the
1999 Dec 16
3
Samab and init.d
Is it better to start Samba using in initd, or to use the script, much like
the one provided by SuSE. ?? so far I have used the script, but I don't
like the fact of having to start samba manually. I would much prefer to
see it run as a service. just to confirm all it really involves is starting
smbd and nmbd
Rowan [TSS]
Gerber Scientific Products
http://www.gspinc.com
2000 Jan 19
2
Samba and /etc/shadow.
Dear mailing-list!
I have Samba 2.0.6 on a Redhat 6.1 linux box.
How can I make samba use the /etc/shadow file
for authenticating users?
Reading the archives I assumed there should be
a compile-time option I should set, but I found
no such option.
Regards
--
Shahin Merat, Dept. of gastroenterology,
Shariati Hospital, N Kargar st., Tehran, Iran
merat@ams.ac.ir / merats@sums.ac.ir
2018 Jul 10
4
Dovecot on CentOS 7
I guess I've been lucky. My Red Hat server I built in 2003 finally gave up
the ghost yesterday. Fifteen years with almost zero problems running
7x24. Now I'm trying to build a basic server to host my e-mail using
CentOS 7, Sendmail and Dovecot. Server is running great as are Sendmail
and Dovecot but Dovecot only allows connections from the CentOS 127.0.0.1.
I can telnet localhost pop3
2005 Aug 15
2
Newbie rendering problem
Hi
On every list request i render an item partial through a collection of
items. the item table has 3 columns namely name,anotherName and id. the
item partial looks like
<%@item=item%>
<%= error_messages_for(:item) %>
<tr id="<%=item.id%>">
<% for column in Item.content_columns %>
<td><%=h item.send(column.name) %></td>
<%
2006 Jun 26
2
RailsConf DVD ?
Hi All,
I saw spurious mentions on a few blogs of a DVD being made available of
RailsConf presentations. However none seemed to have a who/what/when/where
attached to them, thus might just be pure speculation. Anyone know of an
official source/effort being made for a DVD?
Would be well keen for copy if one is to be made available....
Cheers
Rowan
---
http://raili.st/
-------------- next part
2012 Mar 18
1
Having difficulties installing r commander
Hi,
I have recently installed R on my mac and am trying to install R commander.
When I type:
install.packages("Rcmdr",dependencies=TRUE)
the following message appears
I have also tried installing commander via the package installer window.
When I do this a large number of error messages (over 50) appear. They are
mainly saying that certain dependencies are not available, or that they
2006 Aug 17
2
link_to_remote question
I''m using link_to_remote to call a method that deletes an item
<%= link_to_remote " [delete]", :url => { :controller => ''user_admin'',
:action => ''employee_type_delete'',
:id => employee_type.id
}
2006 Mar 09
5
link_to_remote id or class
Can anyone out there tell me how to add a class or id property to a
link using link_to_remote? I''ve been banging my head on this for far
too long.
Thanks
Clint