similar to: ActiveRecord after save new and old values

Displaying 20 results from an estimated 400 matches similar to: "ActiveRecord after save new and old values"

2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugged so far that I know that @current_consultant.id contains the correct value. Any tips? cheers
2006 Jun 14
5
InstantRails Lost connection to MySQL server
Hiall, I just tried out InstantRails version 1.3a. After a virgin install and filling the fresh mysql db with my app schema, I tried runningthe app with webrick, only to see the infamous "Lost connection to mysql server" for every action. What is it that I''m doing wrong? I also have mysql 5 installed on my machine, but the service is stopped while experimenting with
2006 May 01
7
ActiveRecord and Database Views
Hiall, If I have say 10 tables that i would like to wrap up in 1 view to manipulate data inside these tables, do I then need 10 model.rb files for all 10 tables plus 1 for the view, or do I just need 1 model.rb file for the view ? cheers Martin
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and image_tag that accepts a name, this seems to be solely used for making whole images into links
2006 May 18
6
Form actions with additional parameters
Hiall, I want to give the action of a form an additional parameters but can''t figure out how to do it. My code looks like this <%= start_form_tag :action => ''create'', next_step => true %> <%= render :partial => ''user_form'' %> <%= render :partial => ''community_form'' %> <%= submit_tag
2006 May 14
6
file and directory layout below app/models
Hiall, Is it possible to organize my model files below app/models into subfolders? E.g. I would like to put admin related models into their own subfolder. This kind of structuring works for controllers and views (scaffolding creates the right subfolder-model mappings), but app/models always stays flat. I''d really like to be able to group my code into logical, well packages :-) Yes, I
2006 Jun 12
6
Storing "money" in databases
Hiall, I''m wondering what''s common practice when dealing with money values stored in databases. I like the idea of storing all the values as integers, i.e. all the values in eurocents not euros. Then I need to multiply all values the users enter by 100 before storing them in the database. Now the question is, what''s the most efficient and dryest way to do this?
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
2005 May 12
3
Sarbanes-Oxley headaches
Hi there, With the new scrutinization by auditors on account policies and auditing, how can Samba be SOX compliant? Using 3.0.14a-sernet on Suse 9.1 - ldapsam Specifically, a couple of things seem to be lacking: 1) Logon/Logoff times are not being recorded The last logon time recorded in my ldap entries are pre-nt4 migration. 2) Do the Audit Policy values in user manager have any effect? Are
2006 May 10
8
dynamic setting of username and password in database.yml
Hello I''ve now read a lot about application-level authentication in Rails, but I need to do database-level authentication. The reason is that my database needs to have the current_user (database current_user, not current_user defined in an ActiveRecord Model) set to execute triggers for automatically updating audit tables. So it is not enough to have a session check against a User
2013 Jan 29
1
Fast AGI library/support for C & C++
Dear All, Is there anyone who is having FastAGI support for C & C++? We do have FastAGI working for the JAVA and rest of the language / script. But I am unable to find FastAGI for C/C++. Please let us know how to write FastAGI using C/C++. Thanks in Advance, Kashyap -------------- next part -------------- An HTML attachment was scrubbed... URL:
2004 May 14
2
Fwd: [ISN] Voice Over IP Can Be Vulnerable To Hackers, Too
Hope this isn't too far OT, but its relevant to us. From isn.attrition.org >http://www.informationweek.com/story/showArticle.jhtml?articleID=20300851 > >By W. David Gardner >TechWeb News >May 13, 2004 > >As voice over IP sweeps across the high-tech landscape, many IT >managers are being lulled into a dangerous complacency because they >look upon Internet phoning
2018 Aug 11
1
[trees-plugin] - Dovecot index gets corrupted, when using maildir and recievend and accessing mail at the same time
Quoting Joseph Tam <jtam.home at gmail.com>: > Another privacy plugin that assumes the server operator is unmotivated or > respects your privacy anyways, and won't just skim your password right off > the top to look at your mail. A vault with steel walls and a dirt floor. *SIGH* As usual, you're right on the money, Joseph. I used to let things like this
2001 Nov 29
2
animations?
Is there a method for creating "animations" using R. Or is there another piece of software (unix perferrably) that can generate a "movie" from many ps/eps/gif/jpg files? Thanks, Jeff. Jeff D. Hamann Hamann, Donald and Associates PO Box 1421 Corvallis, Oregon USA 97339-1421 Bus. 541-753-7333 Cell. 541-740-5988 jeff_hamann at hamanndonald.com www.hamanndonald.com
2001 Dec 15
1
subset error message
Hello everybody, I'm trying to subset a data frame "foo", which looks like this: sent cond raw V1 10 2 A 614 7 11 2 A 724 6 12 2 A 641 5 13 2 A 665 9 33 5 B 510 7 34 5 B 659 7 35 5 B 607 6 37 5 B 467 8 38 5 B 586 9 39 5 B 523 10 57 8 C 858 8 58 8 C 513 9 59 8 C
2006 May 17
1
Experiences with ModelSecurity
Hiall, I would be very interested in your opinions on the ModelSecurity plugin by Bruce Perens. http://perens.com/FreeSoftware/ModelSecurity/Tutorial.html Some time ago, I read on a few pages that it is the way to go, on this list however, I didn''t read much about it. Apart from it''s security level, quoted from comments in source code: # FIX: At the moment we only support
2006 Apr 25
1
Changing Windows Passwords
I have 6 domain controllers that were running samba-tng using openldap, Six months ago I converted one of the controllers to Samba3.0.20 and exported my ldap information to be compatible with Samba, every works fine. Specifically I could change passwords at the local windows machine. Two weeks ago I converted my other 5 controllers to Samba3.0.21b everything works except changing passwords at
2006 Jul 23
2
constructing a dataframe from a database of newspaper articles
I am hoping for some assistance with formatting a large text file which consists of a series of individual records. Each record includes specific labels/field names (a sample of 1 record (one of the longest ones) is below - at end of post. What I want to do is reformat the data, so that each individual record becomes a row (some cells will have a lot of text). For example, the column
2001 Nov 30
4
Script editor for R on Linux
Hi all, Could you point me to a script editor in Linux that will allow me to a somewhat easy pasting of section(s) of an R script or function into R for execution? Something like WinEdt+RWinEdt macro in R for Windows? (My time is a bit pressed. I haven't succeeded in my attempts to install ESS for XEmacs. No doubt due to my confusion and lack of competence. I am abandoning it for the
2006 Apr 27
5
Realtime Form Validation Plugin Available
Granted, I''m still very much a newbie, but after reading an article on AJAX that basically states at one point that just because you can use AJAX doesn''t always mean you should, I have to ask: Why bother contacting the server (even if it is an insignificant amount of bandwidth) to validate the sanity of form data (unless you''re actually validating against something in