similar to: Mechanize and file_column

Displaying 20 results from an estimated 90 matches similar to: "Mechanize and file_column"

2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
I can run this code just fine in irb, but when I run it in rails script/console, I get an error: >> res = agent.submit(search_form, search_form.buttons.first) ArgumentError: one hash required from /home/jwoods/NetBeansProjects/activista/vendor/rails/ actionmailer/lib/../../actionpack/lib/../../activesupport/lib/ active_support/core_ext/string/interpolation.rb:85:in `%''
2006 Jul 30
1
FileColumn - Validate Before Saving
file_column is great -- but I need a way to run through the validations (ie: validates_file_format_of) before saving. That is, when a user first uploads an image it is displayed in the view but not ''saved'' until they click the ''Save'' button on the form. I want to display an error message/disable the ''Save'' button if the file they just
2006 Mar 15
2
Route for any image?
I want to create a route for any image. This is in order to create an email report explaining what the missing image is. I could create a route for each directory that currently has images in it but wanted something more general like: map.connect "/**/*.gif", :controller => ''image_handler'', :action => ''handle_image'' Which doesn''t
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given (ex. in form) url instead of uploading it manualy? I know: http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions require ''open-uri'' Attachment.find_first.filename = open(url) if not working as expected... what is interesting is that: >> @a =
2003 Mar 06
2
anova subhypotheses
Hello all, A really noddy question for you all: I''m trying without success to do some subhypothesis testing. Using simple anova model, with a toy dataset from a book. I have four factors A,B,C,D, and wish to test mu_C = mu_D. This is what I have tried: > contrasts(infants$group,how.many=1) <- c(0,0,1,-1) > contrasts(infants$group) [,1] A 0 B 0 C 1
2012 Jul 23
2
Mechanize::Agent#post_connect_hook response != Mechanize#parse response
I''m working through an idea for a db-backed cache for Mechanize#get(). The idea is to use a Mechanize::Agent#post_connect_hook to cached any fetch data, and create a subclass of Mechanize::Agent#get() that checks the cache before calling super. I want to store the un-parsed (raw) page in the db, and call Mechanize#parse when there''s a cache hit, something along these lines:
2006 Mar 22
0
www::mechanize help
I installed the gem for WWW::Mechanize and the installer said it installed successfully. I tried to create a test ruby script to see if it works and i get this error: mechanize-test.rb:1:in `require'': no such file to load -- mechanize (LoadError) from lib/tasks/mechanize-test.rb:1 Am i doing something wrong? What is the proper way to require external classes in ruby?
2008 Jan 15
0
mechanize 0.7.0 Released
mechanize version 0.7.0 has been released! * <http://mechanize.rubyforge.org/> The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: #
2007 Nov 14
0
Hpricot & mechanize fail to parse page after redirect1q
Hi everyone, My quest with mechanize/Hpricot continues :) Something extremely strange happened today - some simple working code broke down, and i can''t figure out why. I am trying to access a piratebay.org search page, which does a redirect to a relative url like this: original link: http://thepiratebay.org/s/?page=0&orderby=3&q=football+manager+2008&searchTitle=on redirects
2007 Jul 27
0
mechanize 0.6.10 Released
mechanize version 0.6.10 has been released! * <http://mechanize.rubyforge.org/> The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: #
2007 May 08
1
the website ban me when I use mechanize to grab its content, how to solve it?
Dear all, I keep grab photos from one website. At first I show them the default user agent (WWW-Mechanize). But obviously they don''t like this behavior and ban the user agent WWW-Mechanize. So I have to forge an IE user agent. It works for some time. But the website administrator seemed to detect my behavior and banned me again. This time I can not bypass it by simply modifying the user
2007 Apr 15
0
mechanize 0.6.8 Released
mechanize version 0.6.8 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: = Mechanize
2007 Mar 28
0
mechanize 0.6.7 Released
mechanize version 0.6.7 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: = Mechanize
2007 Feb 26
1
some Mechanize objects never garbage collected?
Greetings, I''m using Mechanize to scrap dozens of pages and have noticed the size of my ruby process keeps growing. I set Mechanize.max_history to 0 with no effect on the memory use. I wrote a little test to show the objects left on the heap after mechanizing a single page and then doing a garbage collection. Sample list appended below. I can supply the test code if it helps.
2007 Feb 27
0
mechanize 0.6.5 Released
mechanize version 0.6.5 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: =
2006 Oct 11
0
Mechanize: save and cancel doesn''t work in JSPWiki: Firefox header
This the header from Firefox to the JSPWiki server when submitting the form. There is also the redirect, but I only copied the POST. POST /coswiki/Edit.jsp?page=OldWikiNewWikiDiff HTTP/1.1 Host: tns-fbu-22-091.corp.telenor.no:880 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Accept:
2006 Sep 11
0
mechanize lists
On Mon, Sep 11, 2006 at 09:04:49AM -0400, Mat Schaffer wrote: > I noticed that my message is the first post to mechanize- > users at rubyforge.org. Should I post to devel? That looks empty too, > but I thought I''d check if you were only watching the devel list and > not the users list. Hey Mat, this is definitely a bug in mechanize. If you add this to your script, it
2008 Mar 12
0
mechanize 0.7.3 Released
mechanize version 0.7.3 has been released! * <http://mechanize.rubyforge.org/> The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: #
2006 Feb 28
0
acts_as_taggable and mechanize
Hi, I''m trying to use both acts_as_taggable and mechanize (WWW::Mechanize) gems in my app. The problem is that when I do require ''mechanize'' in the app, acts_as_taggable throws the following error. undefined method `table_name'' for Struct::Tag:Class coming from .../gems/acts_as_taggable-1.0.4/lib/taggable.rb:150 However it works fine if I don''t
2011 Jan 18
2
how to get captcha image with mechanize ?
Hey, how to get captcha image with mechanize ? the image is not a static picture, it''s a stream, a text-model. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/bf9a58ff/attachment.html>