Displaying 20 results from an estimated 700 matches similar to: "more questions: human_name"
2006 Jun 01
9
access model from controller
Hello,
Rather new to RoR, so I''m not sure about the terminology and such :-/ .
My question is: how could I know the model which is associated to a
controller?
For example:
- controller class is TestController, which is a subclass of
ApplicationController
- associated model class is Test
How could I write some code in a method of ApplicationController to
dermine the current
2005 Sep 14
3
mailbox corruption
Hello,
Here is the description of a problem we habe been having for some time.
Originally posted on the postfix-users mailing list, but no solution
found to date.
>>>> We have been having problems with our mail system for a couple of
>>>> months. Every now and then, some mailboxes get corrupted: a
>>>> half-truncated message, usually without headers, is at
2006 Jun 21
5
module and cache/restarting server
Hello,
It seems I need to restart webrick everytime I modify a module in order
for my modifications to be taken into account. Is this normal and is
there a workaround?
Regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348 Louvain-la-Neuve
Tel:
2006 Jul 12
12
pass hash as parameter
Hello,
How can I pass a hash as parameter from a template with url_for?
e.g. : if I have
test = { :a => "a", :b => "b" }
How can I pass that with my request? Is it possible to pass nested
hash''es to?
Right now,
url_for :action => :test, test
doesn''t seem to work.
Thank you,
--
2006 Jun 16
1
attributes and views
Hello,
I always have the same kind of design problem, which I am not sure how
to solve correctly:
- say I have a variable, "status", which I want to calculate once in my
controller, and access a couple of times in my view
- "status" variable initialization could happen in a subclass,
overriding the regular method for that
What I do now is using an instance variable
2005 Jul 01
1
bug: very strange behavior with pop3
Hello,
We have some strange problem which could be related to authentication here.
All our user info is in an openldap directory. We normally use
pam/getpwent in dovecot to access our user accounts, via
nss_ldap/pam_ldap, but we tried to connect directly to the ldap server,
with the very same results.
We have one user (out of 100) which just cannot use dovecot with pop3.
His
2006 Jun 01
1
call method of superclass
Hi again,
Is it possible to call a method of the superclass within a method with
the same name in the derived class? e.g. : call Test::list from
SubTest::list (SubTest being a subclass of Test)?
Best regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348
2006 Jul 05
19
associations question
Hello,
I have a People table and a Addresses table. A person can have one or
more addresses, but should at least have one, so there is a address_id
field in People.
Now, I would like to have a form to fill the name of a new person and
its address from the same place. I could use person.address.country, for
example (it works), but I would like to simply use person.country for
some reasons
2006 Jul 14
3
Accessing the Model class from Controller
Hi,
I wonder if there''s an easy way to access the associated Model class
from its Controller. Something that would allow me to write snippets
like the following:
class PeopleController < ApplicationController
def some_method
person_model_class =
self.some_method_to_retrieve_the_person_model_class()
end
end
Cheers,
Marco
--
Posted via
2006 Jun 09
2
How to mail decrypted password to user?
Hi,
I am using acts_as_athenticated plugin for my rails application. That
plugin is using "SHA1" algorithm to encrypt password & stroe it into
database. Now in future suppose user requsted his password through
email, hhow should I decrypt that password in my application & for
sending it through mail?
Please help me.
I am trying this since last 2 days. But still not
2006 Jun 09
0
bizarre problem
Hello,
I have following code in a helper:
def custom_ajax(link, options)
target = "target_" + options[:target_id]
loading = "loading_" + options[:target_id]
visible = "visible_" + options[:target_id]
#options[:url] = {:inline => 1 }.merge(options[:url])
test = {:inline => 1 }.merge(options[:url])
link_to_remote(
link,
{
2006 Jun 21
0
development / production
Hello again,
How to switch from development to production?
Regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348 Louvain-la-Neuve
Tel: +32-10-47.80.10
Fax: +32-10-47.21.80
----------------------------------------------------------------------
Mon calendrier
2006 Jun 09
12
Securing database from your provider?
Hi.
If i had a RoR application dealing with very reserved personal
informations about my customers, if my hosting provider would like to, i
guess it would be easy for him to steal the data by simply peeking the
username and password inside the database.yml file.
Is there a way to hide the database password from indiscrete eyes ?
Thanks,
Marcus Ob.
--
Posted via http://www.ruby-forum.com/.
2006 Sep 24
0
How to change human_name
Is there a way to change the value of human_name() for
a particular model attribute?
Say I want the human name for line_item to be "Items"
instead of "Line items".
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2009 Apr 05
2
Prohibit removing INBOX
Hello list,
I'm using dovecot 1.1.11 and I'm going to prohibit users to remove
their INBOX and some other directories in the mailbox root.
I used Access Control Lists (http://wiki.dovecot.org/ACL) to do this:
protocol imap {
mail_plugins = acl
}
plugin {
# With global ACLs in /etc/dovecot/acls/ directory:
acl = vfile:/etc/dovecot/acls
}
/etc/dovecot/acls/.DEFAULT:
owner
2015 Sep 08
3
Multiple vacation
Hi all
I'm using Dovecot 2.2.9 and I'm having problems configuring multiple
vacation actions.
The problem is that I'd like to have two different senders and two
different messages, selecting the correct case by the recipient email
address.
I mean, if someone writes me to my email address "to-address1 at example.com"
I'd like to answer from "from-address1 at
2006 Mar 26
2
Shared Columns in an STI
I have a an STI table which acts_as_tree, that has a large number of
classes/types. My common fields are:
id
parent_id
name
description
with 4 more text fields, I could cover most of my classes if I could
redefine the name of the field like this.
text1 AS address1
text2 AS address2
text3 AS zipcode
For one class and
text 1 AS model_number
text2 AS vendor
Is there a construct that will allow
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access
Google''s geocoding service using HTTP. Here''s the code I have so far:
require ''open-uri''
require ''rexml/document''
include REXML
url=''http://maps.google.com/maps/geo?''
address = ''q=1600 Amphitheatre Parkway Mountin View,CA''
address1 =
2009 Sep 23
5
Overriding AR read/write_attribute - Overridden write_attribute Is Never Called
Could someone explain this?
#config/initializers/ar_attributes.rb
module ActiveRecord
module AttributeMethods
alias_method :ar_read_attribute, :read_attribute
def read_attribute(attr_name)
p "read_override"
ar_read_attribute(attr_name)
end
alias_method :ar_write_attribute, :write_attribute
def write_attribute(attr_name, value)
2006 Oct 13
3
Validation errors in has_one/belongs_to relationships.
I have two objects, QuoteInput and Insured.
QuoteInput has one Insured and Insured belongs to QuoteInput.
I don''t understand what I''m seeing.
I assign an Insured to a QuoteInput. The Insured object has invalid
data.
I call save! on the quote input. QuoteInput has no validations.
I expect two things to happen - 1) an exception should be thrown,
indicating that there was a