[Rails] Geneaology Tree

2010-07-24 Thread Mamadou Touré
Hi Folks, I want to develop a Geneaology tree application for my family, but I'm just wondering if there is an easy way to represent the tree (branches etc...) in html. ? Suggestion for a tool tec... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: render :js is something that can be used in place of the render :update. Which means, the request type should be XHR and not HTTP... in simple words, the render :js will only work for Ajax requests. If you want something of this sort for the normal HTTP requests... it can

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: You need to use Ajax there. Instead of form_for you will need to use form_remote_for. regards, Sur http://crimson9.com Thanks Sur, it works, but I need one more thing. When I hit the submit button, this will trigger process that creates the xdp files, but with this

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: Correct it %= form_remote_for :some_symbol, :url = the_url_youve_given, :loading = $('any_uniq_indicator_id').show(), :complete = $('any_uniq_indicator_id').hide() % In complete, it should be hide() regards, Sur http://crimson9.com Thanks a lot Sur, it works

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: You are welcome I am glad it helped you :) Vous êtes les bienvenus Je suis content que vous avez aidé :) regards, Sur http://crimson9.com Merci ;-)) We say Je suis content de vous avoir aidé instead of 'que vous avez aidé' anyway, your french is good ;-)) --

[Rails] render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
Hi Folks, I use render :js = alert('Test !') in my modele, but instead of having the alert displayed, the browser try to donload a file containing this string : render :js = alert('Test !'). Do you know why I the browser behaves such a way ? Regards -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
Sorry, in the text before I made a mistake, please read ''in my controller'' instead of ''my model'' -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
Marnen Laibow-Koser wrote: Marnen Laibow-Koser wrote: Mamadou Touré wrote: Hi Folks, I use render :js = alert('Test !') in my modele, In your *model*? render doesn't go there. OK, just saw your correction. but instead of having the alert displayed, the browser try to donload

[Rails] Re: render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
This should work. In fact, it sounds like it *is* working -- it's sending the text to the browser just like it should. What it may not be doing properly is setting the MIME type. Can you check the MIME type of the response? end Best, -- Marnen Laibow-Koser

[Rails] Re: render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
AS/400 isn't a language... (FWIW, my first professional programming job was working in RPG on an AS/400. I'm better now, thanks. :) ) -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Yeah of course I know AS/400 is not a language (the language I used on AS/400 were

[Rails] Re: render :js = alert('Test !')

2010-07-20 Thread Mamadou Touré
, that's why I just ''copy-paste'' code from other ruby application. Ooooh. That's really bad. You need to learn the basics of the language a bit better, I think. Yeah I started 4 months ago to learn Ruby (using books such Ruby on Rails bible, Railspace). Right now I`m involved in some

[Rails] render :update do |page| issue

2010-07-19 Thread Mamadou Touré
Hi Folks, I'm trying to render a partial from my controller, but nothing happens. What's wrong ? Heres are my controller, views, and partials 1 - Controller : def generer render :update do |page| page.replace_html( message_div, :partial = files_list)

[Rails] Re: system(AcroRd32.exe )

2010-07-17 Thread Mamadou Touré
Colin Law wrote: 2010/7/16 Mamadou Tour� li...@ruby-forum.com: Hi, Is there a way to start Acrrobat reader on my local desktop by a ruby application running on the server by launching : system(AcroRd32.exe I believe not, that will run it on the server. Would you want a website to be

[Rails] Re: Re: system(AcroRd32.exe )

2010-07-17 Thread Mamadou Touré
Colin Law wrote: 2010/7/17 Mamadou Touré li...@ruby-forum.com: All the ruby and erb code is run on the server.  Javascript is run in the browser of course. Colin Hi Colin, What I really need is to run the command system(AcroRd32.exe ), and not the system(del *.*). so Maybe, I'll try

[Rails] find_with_ferret doesn't return a SearchResults objetc

2010-07-17 Thread Mamadou Touré
Hi folks, I have the following statement in my ruby class @users = User.find_with_ferret(query, { :page = params[ :page ], :per_page = 10 }), But once I run the program, @users.class gives me an Array instead of ActsAsFerret::SearchResults. Is that normal ? -- Posted via

[Rails] Re: Re: Re: system(AcroRd32.exe )

2010-07-17 Thread Mamadou Touré
Colin Law wrote: But why do you want to do it on the users PC? You say that 'I' need to do that, not 'the user' needs to do that. Generally anything that 'I' need to do must be run on the server. Why can you not do the manipulation on the server? Not that I know about XDP at all.

[Rails] Re: find_with_ferret doesn't return a SearchResults objetc

2010-07-17 Thread Mamadou Touré
Mamadou Touré wrote: Hi folks, I have the following statement in my ruby class @users = User.find_with_ferret(query, { :page = params[ :page ], :per_page = 10 }), But once I run the program, @users.class gives me an Array instead of ActsAsFerret::SearchResults. Is that normal ? I dont

[Rails] system(AcroRd32.exe )

2010-07-16 Thread Mamadou Touré
Hi, Is there a way to start Acrrobat reader on my local desktop by a ruby application running on the server by launching : system(AcroRd32.exe ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: Re: Re: Installing Ferret

2010-07-05 Thread Mamadou Touré
Markus Zywitza wrote: What devKit should I download ? do you have the link please ? http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z Thanks Markus, I'll try it tonight and I'll let you know. Regards -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Re: Re: Installing Ferret

2010-07-05 Thread Mamadou Touré
Mamadou Touré wrote: Markus Zywitza wrote: What devKit should I download ? do you have the link please ? http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z Thanks Markus, I'll try it tonight and I'll let you know. Regards 1000 thanks Markus

[Rails] Re: Re: Installing Ferret

2010-07-04 Thread Mamadou Touré
Markus Zywitza wrote: Download and unzip the current devkit into your ruby directory. It contains all necessary MinGW-tools for compiling native extensions. -Markus 2010/7/3 Marnen Laibow-Koser li...@ruby-forum.com: Hi Markus, What devKit should I download ? do you have the link please ?

[Rails] How to user PDF::Toolkit.pdftk ?

2010-07-02 Thread Mamadou Touré
Hi, I tried to fill a PDF fill template with an xdp file by using PDF::Toolkit.pdftk(C:/pdf/fic2028.xdp, fill_form, C:/pdf/fic2028.pdf) But I got the following error Errno::ENOENT (No such file or directory - pdftk C:/pdf/fic2028.xdp fill_form C:/pdf/fic2028.pdf - dont_ask) I don't know, I

[Rails] Installing Ferret

2010-07-02 Thread Mamadou Touré
Hi, I try to install the ferret gem (in my windows 7), I got this : gem install ferret -v 0.11.6 --source http://gems.rubyforge.org/ Building native extensions. This could take a while... ERROR: Error installing ferret: ERROR: Failed to build gem native extension. C:/ruby/bin/ruby.exe

[Rails] Re: Installing Ferret

2010-07-02 Thread Mamadou Touré
Bob Nadler wrote: I've never used ferret, but a quick google search turned up this: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/2def3b3133bb0ab According to that thread you should try version 0.11.5 -- Bob 2010/7/2 Mamadou Tour� li...@ruby-forum.com: Hi Bob, I

[Rails] Re: Send_data

2010-06-30 Thread Mamadou Touré
Marnen Laibow-Koser wrote: Mamadou Touré wrote: [...] Thanks Marnen, Unfortunately I have to hav each file on its own, I must not merge them in on single file. Is there a way to simulate several requests in order to loop through the array ? Even if there were, the browser

[Rails] Re: Re: Send_data

2010-06-30 Thread Mamadou Touré
Peter De Berdt wrote: On 30 Jun 2010, at 18:13, Mamadou Touré wrote: that your website was randomly downloading files without my consent. Why can't you just provide several download links for the files? Or create a zip or tar archive? So is there another way to merge my xdp file to my pdf

[Rails] Re: Send_data

2010-06-29 Thread Mamadou Touré
Michael Pavling wrote: On 28 June 2010 21:45, dieinzige dieinz...@me.com wrote: what the hell are u doing, if u have file, u can simplify get link to user, What if the OP needs users to be logged in to view files? Or complete some other approval process. Not much sense having them accessible

[Rails] Re: Send_data

2010-06-29 Thread Mamadou Touré
Marnen Laibow-Koser wrote: Mamadou Touré wrote: [...] I'm having the file displayed now, but the other issue that I'm facing now is : I have several files to open, I put them in an array that I loop through, but only the last file is opened: What's wrong ? arr.each do |form

[Rails] Send_data

2010-06-28 Thread Mamadou Touré
I want to display a pdf on my browser bu using send_data(File.read(FILE_PATH + FILE_NAME), :type = 'application/pdf',:disposition = 'inline', :filename = FILE_NAME) But nothing happens. Do you know why ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: Send_data

2010-06-28 Thread Mamadou Touré
Peter De Berdt wrote: On 28 Jun 2010, at 17:56, Mamadou Touré wrote: I want to display a pdf on my browser bu using send_data(File.read(FILE_PATH + FILE_NAME), :type = 'application/pdf',:disposition = 'inline', :filename = FILE_NAME) But nothing happens. Do you know why ? Serving it via

[Rails] how to pass params to button_to_remote ?

2010-06-18 Thread Mamadou Touré
Hi folks, I have a form that I populate, and then submit with button_to_remote, but I would like to have all my fileds that I populated passed as parameters (like the params hash) with to my controller. How would you do that ? Reagrds -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] ruby/lib/ruby/site_ruby/1.8/rubygems.rb:270:in `activate': u

2010-06-16 Thread Mamadou Touré
Hi folks, I'm getting the following error while trying to start the Webrick serve on a old project that I just checked out from our svn. Could you tell me what's wrong ? ruby/lib/ruby/site_ruby/1.8/rubygems.rb:270:in `activate': undefined method `map' for nil:NilClass (NoMethodError) -- Posted

[Rails] Re: before_filter exception being ignored

2010-06-15 Thread Mamadou Touré
Pale Horse wrote: I am, as stated in the subject, having an issue with a before_filter exception being ignored by the application. My Customer Controller: http://pastie.org/1005487 My Application Controller: http://pastie.org/1005490 I have a link to a forgotten_password action