similar to: help getting plugin to work

Displaying 20 results from an estimated 1000 matches similar to: "help getting plugin to work"

2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list, I am trying to override the post_form method of Net::HTTP so that it does something before actually doing the post. I tried the following in environments/development.rb module Net class HTTP alias_method_chain :post_form, :intercept def post_form_with_intercept(url, params) # Do something before post logger.info(''About to post at
2010 Nov 18
1
Facing problems with YUI 2 grids, nesting does not work as expected (example markup inside)
Hey, thank you for reading this post, maybe you can help me. I am trying to nest grids, but it does not work, see my lines (extracted and shorten): Just copy, save as html, and then you''ll see what I mean: the orange solid bordered list items should be in the red dotted list container, but that''s not the case. Can you help me with this? <html> <head>
2007 Jul 06
0
Removing One Element From a Serialized Form
Hi all, I''m trying to serialize a form with the exception of one specific element. Serializing the form in a hash (without pulling out specific elements) works: <li> <%= link_to_remote ''(Save)'', {:url => post_path(@post), :with => "$ (''post_form'').serialize(true)" }, :method => :put %> </li> The generated code
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this: @lang = params[''lang''] || ''en'' @errors = request.raw_post @feed_stats = Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang=" + @lang), @errors) render :text => @feed_stats However whenever I run this I get an error message: undefined method `post_form'' for Net::HTTP:Class
2010 May 17
2
"end of file" error for "net/https"
Hi, I have written following code:- It is working fine for http protocol. But whenever I am doing for https I getting an error "end of file reached". Can anyone tell me what is wrong with the code? def email_to_friend require ''net/http'' require "net/https" require ''uri'' #res =
2006 Aug 03
8
beginning a statistics application
Hi all, I need to write an application that gets data from a database and plots it on a graph. I am familiar with java and know that I could do it with jfreechart - however I am excited by RoR and would like to write the application with RoR instead. Is it possible to write it in RoR? Chris -- Posted via http://www.ruby-forum.com/.
2007 Sep 22
2
How to fire an event when the page completes loading?
I''m looking for an event handler in Prototype (or plain old JavaScript) similar to onContentReady() in the YUI library: (see http://developer.yahoo.com/yui/examples/event/event-timing.html) How can I implement this? If I''m not mistaken, my testings showed the document.onLoad() happens too early (as soon as the page loads it fires, even before some dom elements are on the page
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
Hi everyone! Im trying to install mechanizer from http://github.com/tenderlove/mechanize. I`ve clone the project into /tmp folder. When I do rake inside the folder /tmp/mechanizer it gives me this error: mac159180:mechanize renatosis$ rake (in /private/tmp/mechanize) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w -Ilib:bin:test:. -e ''require "rubygems";
2007 May 30
3
how to create a simple DHTML dialog
I am looking to create a simple dialog window like this on a page: http://developer.yahoo.com/yui/examples/container/simpledialog/2.html I know scriptaculous comes with Rails, not YUI, but I can''t find anything similar there. Is there any shortcut to doing this with existing plugins or core stuff?, or must I download another toolkit? thanks Sam
2009 Jun 05
1
Slow/unpredictive response of post_form from rails lib
Hi friends, I''m facing a very strange problem... I consume a webservice from within my rails app. I''ve written a thin wrapper around the webservice using Net::HTTP.post_form However, when calling the API from within my controllers, the API calls randomly fail, complaining about timeout. But - when I wrote a simple iterative test (500 iterations), calling the same webservice
2006 Nov 04
0
Net::HTTP.post_form got 200 but no INSERT INTO. How come? How to fix this?
Hello, I''m playing around with net/http and open-uri Ruby Libraries.. I''m trying to post to my own rails simple new action method. Here''s my irb : irb(main):013:0> res = Net::HTTP.post_form(URI.parse("http://localhost:3002/blog2/new"), {"commit" => "Save", "signature_id" => "", "signature_content"
2006 Nov 30
0
Query string based on the selection in HTTP POST
I want to generate the query string based on the options selected. For example it could be www.test.com/search?id=1 or www.test.com/search?id=1&zip=60008. How could I achieve this using http::POST? I tried the following, which didn''t work url = "{''id'' => 1, ''zip'' => 60008}" res =
2006 Jan 18
5
Ruby and charting
Hi- I need to create simple charts on the fly - I had used JFreeChart in the past with inJ2EE apps. Is there any equivalent here for Ruby. My charting needs are simple: just line charts. Also if anyone has done this, pls let me know how I should go about in doing it. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 29
0
Trouble with firefox and AJAX
I''ve been creating my own message board in rails as a learning exercise. I''m currently trying to implement posting using AJAX, so the topic page as a whole doesn''t need reloading. What I''ve written works as epected in IE6 and Safari, but the AJAX call fails silently in Firefox 1.5 -- although the server has logged the request, the "success" callback
2006 Feb 11
1
graphics de stats
salut je cherche des plugs pour rails pour afficher des graphes de stats. merci pour votre aide -- Posted via http://www.ruby-forum.com/.
2009 Aug 24
0
r23 committed - Changed build.xml to use correct directory slashes
Revision: 23 Author: ajturner Date: Sun Aug 23 19:48:12 2009 Log: Changed build.xml to use correct directory slashes http://code.google.com/p/mapstraction/source/detail?r=23 Modified: /trunk/build.xml ======================================= --- /trunk/build.xml Sun Aug 16 17:18:10 2009 +++ /trunk/build.xml Sun Aug 23 19:48:12 2009 @@ -75,7 +75,7 @@ </path> <sequential>
2012 Feb 16
3
Mechanize::ResponseCodeError: 500
> Excuse me if my issue is a little bit application-specific. I need > Mechanize to submit bunch of data from our server to an online reservation > system. The url is https://secure.mdausa.org/donate/ > It works in my browser however using mechanize following error appears: > > /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in > `fetch'':
2006 Jul 27
5
Dreamhost working deploy.rb? Can anyone post/send me a copy?
Hi, Just trying to get Capistrano working to Dreamhost. I''m hitting a permissions issue on the reaper file at the moment. Has anyone a copy of the capistrano DEPLOY.RB file they could post or send me a copy of please? Thanks Greg -- Posted via http://www.ruby-forum.com/.
2008 Jan 14
3
Reading HTTP Request parameters
Hello I''ve a client which send this request to a mongrel HTTPHandler : res=Net::HTTP.post_form(URI.parse(''http://localhost:3000/test''),{"a"=>1,"b"=>2}) But in the handler I can''t read the parameters one by one, I can read the entire String only : class Serveur class MyHandler < Mongrel::HttpHandler def process(req, resp)
2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
Hello- With a database filled with several customers'' datasets, I thought it would be a nice feature of my app''s backend interface to be able to extract (and optionally delete) the data from a single customer. It would then also be nice to rebuild that data from the stored info. What''s a good way to do this efficiently? If all the ":dependent => true"