similar to: Securing database from your provider?

Displaying 20 results from an estimated 3000 matches similar to: "Securing database from your provider?"

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
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
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:
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 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 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
2007 Jul 12
4
Backgroundrb needs a new maintainer.
Hello All- Is there anyone out there that wants to take over as maintainer of the backgroundrb project? I feel bad because I know lots of folks use it but I absolutely do not have time to work on it anymore :(. I''m looking for a new maintainer, I would give you all the access to the project you need and try to help you come up to speed on the codebase. If anyone is
2007 Jun 09
7
create 2 fk referencing the same table
Hi everyone! I have a problem with defining 2 fk referencing the same table. I have a Program table and a Team table. The Program should have an away team and a home team fk. From my understanding, "the fk column should be named after the class of the target table, converted to lowercase, with _id appended". But, in my case, I have 2 fk referencing the same table. How can I do this?
2007 Jul 28
19
Harry Potter 5 - The order of the Phoenix
*Harry Potter 5 <http://www.gobsmack.info/Harry-Potter/>* *The Order of the Phoenix* *Harry Potter and His friends * ** *Wallpapers, Story and Video download* *Harry Potter 5 - The Order of the Phoenix<http://www.gobsmack.info/Harry-Potter/> * --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2010 Apr 14
3
PGError: duplicate key
I''m running a rails 2.3.5 / ruby 1.8.7 / postgresql 8.4.2 app and have just run into a curious problem. I have several tables that are initialized with data from csv files and I''ve noticed that, when I try to add new data to any of these tables via Table.new I get a PGError on duplicate key. For example: MIGRATION: class CreateNumbers < ActiveRecord::Migration def self.up
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
2007 May 29
22
Rails doesn't scale because RI/transactions in app not db!!!
Not that I have your attention! :P I''ve been having a discussion with a respected colleague here: http://phpbuilder.com/board/showthread.php?t=10340411 (Rails vs. PHP) He''s basically saying that Rails won''t be able to scale because referential integrity and tranactions are done in the application rather than the database. Please read the referenced thread for much more
2006 Jul 10
18
Deleting join association of has_many :through
I''m trying to use has_many :through, since my join model deserves being more than just an intersection table. But when I try to break the association, the break only seems "temporary": Let''s say my two tables are Users and Colors, and the join model is Favorites. user = Users.find(1) user.colors.length >> 2 c = user.colors.first >> #<Color:....>
2010 Sep 18
3
max-age/header problems with nginx
0 down vote favorite I notice that in my production enviornment (where I have memcached implemented) in see a cache-control - max-age header in firebug, anytime I am looking at an index page (posts for example). Cache-Control max-age=315360000 In my dev environment that header looks like following. Cache-Contro private, max-age=0, must-revalidate As far as I know I have not done anything
2006 May 10
12
What to do with HUGE instance variables in Rails?
I''m learning rails and I can succesfully use the following things in the controller: @var1 = Var.find :all @var2 = Var2.find :all Problem is that the DB has about 260,000 lines which considerably slows everything down if I load everything in @var1. Isn''t there a way to load those items progressively? I treat them separately (e.g. no interactions between them) in the program so
2006 May 29
3
Hiding HTML Markup
Hi, THis may be a simple question. I am trying to hide some HTML markup language depending on a value. So for example I have the following in an RHTML file: <%if session[:role]=="Administrator" %> <label><Strong>Administration</strong></label><br> <%= link_to("Users", :controller=>"Users",:action=>"list")
2006 Apr 21
6
How access to the tables whitout a model
i have a table called Products whit a model product, but in the view i need show the category od the product, but whitout a model of categories... -- Posted via http://www.ruby-forum.com/.