similar to: access model from controller

Displaying 20 results from an estimated 400 matches similar to: "access model from controller"

2006 Jun 01
3
more questions: human_name
One more question: Is there some way to set the human_name of a column? e.g.: human_name for column address1 shouldn''t be Address1 but "Address, line 1". If not, should I make a hash with my custom names? Best regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA
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 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 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 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 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
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 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 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/.
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 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
2012 Sep 05
2
DNAT issue
Hi, Sorry, not an experienced shorewall user, this is my first basic setup. This starts to drive me crazy. I wanted to use DNAT to forward port 33890 to an internal machine (windows) port 3389. To reach my workstation when I''m not home. In my rules : DNAT:debug net loc:192.168.0.11:3389 tcp 33890 - pub.lic.ip.add #SECTION BLACKLIST #well known port scans DROP net
2013 Jul 26
2
dovecot-lda not logging if dovecot runs under daemontools
Hello all, I have dovecot running under daemontools and I can't see dovecot-lda in action when I read the logs. I've set the logs to /dev/stderr because daemontools redirects /dev/stderr to /var/log/dovecot/current. The dovecot server works fine and I know that dovecot-lda is actually doing the delivery, because the sieve facility is working as well. I can get lda log working -but
2015 Aug 13
2
sieve-filter failure problems
I use sieve-filter for postprocessing misclassified mail. For false positives I use the following script: require [ "variables", "include", "fileinto" ]; global [ "FORCENOSPAM", "ext", "ext1" ]; set "FORCENOSPAM" "YES"; fileinto "JUNK-PRENOUCE"; if header :matches "Delivered-To"
2015 Aug 07
2
pigeonhole/lda accessing -m folder
Hi all, anybody knows, if there is a way to acces the folder from a call like this deovecot-lda -m destfolder from within a sieve script? thx in advance matze
2003 Jul 09
3
/var error
Hello there, I have some problem with my filesystem. #df -h ... /dev/da0s1e 288M 265M -208.0K 100% /var ... #du -h /var .. 19M /var .. Does anybody has an idea what Im supposed to do? Thank you. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
2003 Jun 13
2
exact difference between RELENG_4, RELENG_4_5 . . . RELENG_4_8
Read the documentation on the meaning of the various 4.X tags, and am not sure what is meant by this: "The release branch for FreeBSD-4.6 and FreeBSD-4.6.2, used only for security advisories and other seriously critical fixes." Similar descriptions are used for the other RELENG_4_X tags. If I specify RELENG_4 will cvsup also include RELENG_4_3 to RELENG_4_8? Sorry folks - I'm
2003 Jun 17
2
xterm screen restore
when i exit more, vi, ... i like to have the window restored to the way it was before i entered more, vi, ... i used to effect this by a hack to the termcap data, but have lost the hack. what am i missing here? randy