similar to: ActiveRecord, can it save more than one row at a time????

Displaying 20 results from an estimated 1000 matches similar to: "ActiveRecord, can it save more than one row at a time????"

2006 Jun 16
3
ActiveRecord, using sql functions for some attributes
Hi. I need to use functions INET_ATON, INET_NTOA for IP address retrieving. Is it possible to make this transparently (without custom SQL for saving, updating and retrieving)?
2006 Mar 02
4
LDAP and Rails ???
Hi, We want to start a new website, and we want to use our existing authentication system which is LDAP. Can someone tell me where I can find the information about how to use LDAP in rails ??? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________
2006 Mar 16
3
image doesn''t show (rhtml path???)
Hi, we try to show an image which is not inside the rails framework, and we are not able to see the image!!!! does someone know how to do this??? our rails is installed on /opt/rails/project1/, so inside "project1" we have all the rails directory like "app", "public", etc.) our image is on the "/usr/images/" so in our link on the rhtml. we use a link
2006 Mar 08
4
scrollbar doesn''t show on the right place when using partial( )
Hi, I''m using partial() to connect ours pages togother, however, one of the partials is larger than the other, when it happens, instead of create a scrollbar on the browser, a scrollbar appears at the end of the partial, since the partial is in the middle of the web site. it isn''t really good... So does some one know how to remove the scrollbar on the partial and put it on the
2006 Apr 25
2
how can I access a class variable outside of the class???
Hi we wanted to access a class varaible from outside of the same class, like class klass @@var1 end we found out we can not use the class variable like this: klass.var1 we have to create a class function like class klass @@var1 def var1 return @@var1 end end If anyone know how to access a class variable directly without passing by a function??? Thanks you very much
2006 Apr 27
3
HELP!!!! What is the CGIXXXX.YYY stored in /tmp/ ?????
Hi, We have a website which loads a data file and then create a html file (according to the data file) with more than thousand of combobox at a time (on the same page). The first time we load that page, everything seems fine. all combobox have been created. But when we load a second data file (not the same) the system seems to create some tempoary files which contains the first choice of the
2006 Jun 05
7
":database_manager =>CGI::Session::MemoryStore" doesn''t work properly...???
Hi, We are try to use the "database_manager =>CGI::Session::MemoryStore" for the session management. our website has a lot of "redirect_to". while the website is running under webrick, everything is fine. But when we run the system under aprache/fcgi. the redirect_to seems doesn''t work anymore with the option "MemoryStore" does anyone have the same
2006 Mar 10
1
how can I add a new fct to the class Hash
Hi, We use a lot of "hash" in our program and we want to add a new function to the class, does someone know how to do this???? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
2006 Mar 24
1
upload a file to server???
Hi, We would like to upload a file to the server, like user chooses a file with a browse button, then click on a OK button, then the browser send the file to the server, does anyone know how to do it in rails? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (no validation callbacks etc etc) takes an average of 0.05 seconds to create, at least according to Benchmark.realtime{200.times{Message.create(:from => "me@here.com", :message_type => ''email'', :subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200 That''s a little slower than
2006 Apr 12
13
rhtml produces so many white places?????
Hi, I have a rhtml file that uses some ruby code inside, there are not too ruby codes, but it repeats itself thousands of time. I find out each time when the ruby code execute, it will produce the html code correctly. But the produced html will conseved the "format" of the rhtml, and it adds a lot no used white space!!!! example : toto.rhtml <body> <table> <% data.each{
2006 Apr 24
1
using helper which is placed outside of /app/helpers????
Hi, WE wanted to load a helper outside of app/helpers. Actually our helpers is placed in lib/commoncode/ for the ruby classes, we can simply use require "commoncode/myclass", but we can not do the same things with the helpers, we try: helper ''commoncode/ourhelpername'' -> error helper :commoncode/ourhelpername -> error Does someone know how to do this???
2006 Apr 03
1
why ruby GC can take only 8 meg of memory????
Hi, As I understand, the GC of Ruby can take only max. 8 meg of memory. So I wonder if there is some reason behide this or it is simply a hardecode feature???? and if I want to increase the memeory, how should I do this??? Thanks you very much!!!! Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/
2006 Feb 02
8
How to get all selected rows in the mutli-selection listbox?
Hi, I have created a multiple selection listbox with rails, when I try to get the rows selected by user, rails send back only the first one, how can I get the other selected rows???? I created the listbox with the following function: select_tag("form__list1", options_for_select(["A","B","C","D"], selected = "A"), html_options =
2006 Mar 01
9
ajax doesn''t show at the right place
Hi, I use link_to_remote to create a link to trigger an ajax, things work fine, a new rhtml is created, however, the newly created rhtml doesn''t replace my old zone, it shows instead on top of my old zone...Does someone know why??? my code is like <table> <tr><td colspan="2"><a href="#" onclick="new Ajax.Updater(''zone1'',
2006 Mar 01
4
link_to_remote, doesn''t receives params?????
Hi, I''m using link_to_remote to trigger an ajax zone, but depends on a varaible, the new zone has different features. before I has a button inside a form. so when I click on the button, I get the value of the variable inside "params". but since I use link_to_remote now, I don''t get any value from params anymore.... Is there some way I can get the data inside a form
2006 Apr 06
2
using select() to relate tables
I''m sorry to be asking trivial questions, but I''m new to RoR and am hooked :), so I''m very impatient to get things up and running. given two related tables, "pcs" and "venues" (venues have many PC''s and each PC belongs to one venue only) I can use a select() to present venue names in the "new PC" form along with other PC details to
2006 Feb 06
3
where should I start? If I want to use dataschemas with postgresql?
Hi, How should I use Activerecord to map to a database schemas with Psotgresql? Where can I find the infomation about how to use schemas in Rails? Thanks you very much Saiho __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Jul 05
3
splitting a story with double-spaced para''s
Quick question - if i want to separate a long string of text, separated by single carriage returns, into an array of paragraphs, I can use the following code: paragraphs = article.content.split("\n") The "\n" means a carriage return, as far as I can tell. If I wanted to take text, that had been written using the more common double carriage returns, into an array of
2006 Apr 06
6
select method
The documentation states as an example: select("post", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] }, { :include_blank => true }) could become: <select name="post[person_id]"> <option></option> <option value="1" selected="selected">David</option> <option