Displaying 20 results from an estimated 400 matches similar to: ""Remembering" link to redirect to after logging in"
2006 Jan 13
5
Form field naming semantics question
Hi,
I have a question today regarding how the various form elements in
_form.rhtml are named.
I understand that for a database table "persons" with a column headed by
"name", then in _form.rhtml it will probably be like:
<p><label for="person_name">Name><br/>
<%= text_field ''person'', ''name''
2006 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys,
I have been working on a form that would use javascript to validate the
data before submitting it, and from my view.rhtml I have a statement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails thinks it is a parameter instead of an option, so
2006 Jan 17
2
Instant Rails request lags >4 sec
Hello RoR folks,
I am using Instant Rails and a small app that currently uses scaffolding
for CRUD on just one table with 7 attributes. I am not shure wether
scaffolding slows down the app that much but I have a time lag for every
request with above 4 sec. The preinstalled apps like Type are running
damn fast, which is not the case for my stuff.
Any help on this would be great
Thanks,
RTG
--
2006 Mar 23
1
Implementing a model with logging?
Hi,
I''ve been trying to work out a model (let''s say a StudentRecord) which
has a number of attributes, and the key thing I''m trying to do here is
to implement it such that you can actually view modifications made over
time by various users (think of it as a wikipedia style of logging).
Is there some provision in rails that''d provide this functionality for
2006 Mar 24
1
Modifying a session variable from a different process?
Hi,
I''ve implemented a log in session "thing" that essentially works by
holding the model of the logged in user in a session variable, like
this:
session[:user] = user
However let''s say at this point in time, should an administrator of the
system decide to revoke this user''s account, the session variable for
that currently logged in user is still valid,
2006 Jan 12
1
Does rails support method overloading?
I''ve tried to have 2 methods of the same name (but with different
parameter signatures) and it always seems like the later declaration
tends to win out, does this mean that ruby does not support overloading?
If so what aboutt the .new method? You can either call it as .new (with
nothing) or .new(hash variable). Is it possible to override a specific
instance of the zero parameter
2006 Jan 14
2
Why can''t I changed the _session_id cookie?
Hi,
I noticed that there is a cookie set by my rails scaffold that contains
a 32 character hash code in it, but when I tried to change its value
using Cookies[:_session_id], nothing happened, it stays the same!
How am I supposed to change the session_id?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 04
1
Error when using form helper and child objects
Hi,
This is one problem that has gotten me stumped for quite a while. I have
an Item that has_many :DeliveryMethod, and what I seek to achieve is to
create a form that''d let me create an Item, as well as its
DeliveryMethods in 1 single form.
And so I tried something like:
<%= text_field_tag ''Item[DeliveryMethod][price]'', @Item.DeliveryMethod
?
2006 Jan 18
22
Creating multiple child objects from the same form
I''ve been digging into rails, but this one question has been a two day
stumper. I''ve got a question/answer model that I''m trying to work out.
Each question has multiple answers (they''re more like choices, it
doesn''t matter whether they''re right or wrong), and I''d like to have the
question creation form also have multiple fields in
2006 Feb 03
7
how to add multiple new records from one form
I''m trying to provide our customers with a page where they can add up to
20 items to their cart in one form. The form simply has 20 rows with
each row containing a text input for product code and a text input for
quantity.
I''ve tried having the controller create an array that has an object for
each row by looping through something like:
@new_items[1] = Cart.new
and the
2007 Sep 24
3
CallerID problem Asterisk 1.4.2
When receiving inbound calls from a Vonage Softphone extension, I'm unable
to view/maniupulate calledid data. but it shows up in the CDR records and on
called handsets.. any ideas?
exten => asda,n,NoOp(callerID is ${CALLERID})
exten => asda,n,NoOp(CallerID is ${CALLERIDNAME})
exten => asda,n,NoOp(CallerID is ${CALLERIDNUM})
-- Executing [asd at pstn-in:2]
2023 Jul 26
2
Rename Computer on Domain
I can report that the computer renaming worked.
As it turned out, only the cn was incorrect ...
ldbsearch -H ldap://DC1 -UAdministrator 'CN=DT06'
dn: CN=DT06,OU=Desktops,OU=Computers,DC=domain,DC=com
objectClass: computer
cn: DT06
operatingSystem: Windows 10 Pro
displayName: WH23$
sAMAccountName: WH23$
... so a simple LDAP rename worked ...
ldbrename -H ldap://DC1 -UAdministrator
2008 Jun 11
2
Mounting Samba Share using linux login
Windows users are able to mount samba share using windows. But for
linux user, we need to create credentials file, to mount samba share
e.g:
//servername/file_store /home/user/Desktop/file_storage smbfs
credentials=/root/.smbcredentials
Is it possbile to change the credentials to something like windows
users (for example credentials=unix user) so as the mounted share
would depend on who login
2006 Mar 14
6
How to provide 2 actions to a form?
Hi,
I have a form in rhtml. Now I have 2 buttons indside that form. Clicking
on the first button action will be ''create'' & on second button action
will be ''delete''. How to do this?
Thanx
Prash
--
Posted via http://www.ruby-forum.com/.
2010 May 18
2
Example of command ". / Setup / provision"
Hello
Are that someone has an example of the command "provision" that he made himself ?
Because in the "HOWTO" is set "- realm = samdom.example.com - domain = SAMDOM"
but what corresponds "SAMDOM" Because the domain is "example.com" no ?
Thanks
2004 May 11
2
ldap replication
Hello,
I have two ldapservers with Samba PDC and BDC. I started with the PDC i
use Suse 9.0 with ldap "out of the box" and Samba 3.0.2a. Everything is
working fine with only the PDC running. Now i configured replication. In
my slapd.conf file on the master server i added the following lines
#permission
access to * by dn="cn=repl,dc=felix,dc=local" write
# database definition
2009 Apr 13
5
HP Laserjet Printer Installation
Hi all,
I have a very good query related to printer sharing using samba. Following
is the scenario...
I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5.
Shared it using samba. Used winbind protocol to integrate linux with
windows AD 2003. Now i am able to see printer in Active directory as well
as linux computer account in AD. But unable to set option
lpadmin -p printer
2015 Jan 26
4
imap-login: Fatal: pipe() failed: Too many open files
Hi
I keep on getting errors and can't connect/login to Dovecot. I did my
research but unfortunately without success. It is for sure not ulimit
because ulimit is set to unlimited per default already. Still , it
complains about "Too many open files" but this is a test system and the
service dovecot and postfix have just been started. No one except me is
testing on this system.
2012 Jan 22
4
how to save the R script itself into a rData file?
Hi all,
As a part of work flow, I do a lot of experiments and save all my results
into rData file...
i.e. at the end of all my experiments, I do
"save.image("experiment_name_with_series_number.rData")"...
However, some times even with the rData files, I cannot remember the
context where these data files were generated.
Of course, I can make the R data file names and the R
2011 Jul 22
2
Mario Forever incapable of remembering keymap
Mario Forever (versions listed here (http://appdb.winehq.org/objectManager.php?sClass=application&iId=2363) and others) now load with wine, however, as soon as you select NEW GAME the thing forgets all assigned keys.
In the main menu, you can go to OPTIONS, and see that all commands are EMPTY (no key assigned). If you assign keys, leave the screen (but don't start a new game) and return