Displaying 20 results from an estimated 10000 matches similar to: "FYI: Manuals Site"
2006 Aug 07
3
Monitoring Rails apps?
I just had an interesting meeting with developers from other parts of
my company. One of the things they said they really liked about Java-
based solutions was the availability of sys-admin tools to monitor
Java (probably J2EE) applications.
Nothing comes to mind in the RoR camp to cover this. I''m sure there
are plenty of generic tools for watching pings and log files, but is
2006 Jul 31
17
Ruby on Snails
I''ve been reading, hearing, and looking at blogs that state Ruby on
Rails is rather slow. Coming from a VB 6 world (thank you Microsoft for
killing VB because VB.NET is NOT VB) I was always told that VB was a toy
or too slow. Now, I''ll easily tell you that yes VB was not a great
language. It had it''s share of warts, like a lot of other languages I
might add, but
2006 Aug 01
8
Dumb views?
Hello again! I''ve another "what would you do in this situation" question.
You''ve got 6 controllers, one named base. The other 5 controllers extend
base. Currently they share one layout.
Your layout displays navigation. However, there are two actions inside base
for which you do not want navigation displayed (index, new).
Do you...
a) Add logic to your layout telling
2007 Jul 15
3
rejected form not handled
Hello,
I have a login form on /login.php which POSTs to /dorf1.php when access is
granted and to /login.php when it is denied.
require ''rubygems''
require ''mechanize''
agent = WWW:Mechanize.new()
login = agent.get("http://server/login.php")
form = login.forms.action("dorf1.php")
form.fields[2].value = "wronguser" # login
2007 Jan 27
7
Getting elements from a web page
I am new to Mechanize and was wondering if there was a built-in method
to get the elements that are on the page that are not part of a form.
A couple of examples would be my banking site lists my entries and I
want them to go into an array so that I can handle them.
Or another site I use, does some categorization for me and I would like
to manipulate it and present it differently to a user.
2006 Aug 14
2
Rails Monitoring, reprise
Last week I posted a question about monitoring Rails applications.
Basically, the java folks at my business cited one of their reasons
for sticking with Java is it''s monitoring tools. After picking some
ears, I found out that the one we''re looking at most is JBoss
Operations Network. And I have to say, it''s pretty neat.
2006 Sep 18
2
BUG: Possible issue with escaped hrefs
I noticed an interesting problem today when scripting against a web
app. The application contained a link in it that used %20 instead of
spaces. After running mechanize through the Charles debugging proxy
I found that mechanize was converting %20 to %2520 (double escaping
the %20).
This appears to happen under both 0.5.4 and 0.6.0.
Here''s a simple set of files that demonstrate
2006 Aug 04
2
MacOS + darwinport + rubygems
Hi,
Installing ruby (following wiki recommandations) with darwinport, I have
the following error when I want to install rails gem:
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'': no such file to load -- sources (LoadError)
from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
from
2007 Jul 23
4
Design ideas
I''m trying to use mechanize against a site that has four fields in the
form. However, those four fields have to be filled in order.
So putting something in field one, populates the second field drop down.
So I''m thinking that I''ll probably have to call the page multiple times?
What sort of things should I be doing to figure out how to interact
with this page.
2006 Nov 02
5
Adding fields to a form
Is there a decent way to add a field to a form before posting it? I
haven''t tried using HPricot manipulations just yet, since I can''t
ever find really solid docs on hpricot....
Form#[]= doesn''t work because it first searches only pre-existing
fields. I''m investigating how to write a patch now.
But I thought maybe someone here might have an idea.
2006 Sep 26
7
Interesting mechanize difficulty
I found an interesting page today that I was trying to script
against. The server returns a 404 with content and the page just
works normally in firefox despite the 404. Mechanize raises an
exception on it though.
I''m working on a test case now.
2008 Mar 11
8
Mechanize#get vs Mechanize#fetch_page
So I found myself wanting to call Mechanize#get with a hash for
arguments like this:
WWW::Mechanize.new(''http://api.flickr.com/services/rest/'', {:method =>
''flickr.auth.getFrob''... })
Granted, it looks like this isn''t supported but it led me to what
looks like a bug. Namely that get calls fetch_page(abs_uri, request,
cur_page, &block)
2009 Jun 25
2
Bad Form?
Hi,
This is my first post, I wanted to ask a quick question about "Bad Form" --
rather, am I doing something with Mechanise I shouldn''t be doing?
Here''s the long and short of it - I am using Mechanize with Cucumber and
RSpec to test a *ahem* Perl XML web service.. talk about technology soup,
but I have it working quite well.
I have an example project on GitHub that
2007 Jul 02
6
Basic auth bug in 0.6.9
I haven''t spent the time to get a proper test case for this yet, but
there appears to be a bug in the basic_auth code for mechanize
0.6.9. I''ve attached a CSV (from Charles) that illustrates the problem.
Basically when running with basic_auth, there''s a failed request
that''s followed up by a successful request. That last POST is a
agent.submit(form)
2006 Jul 28
2
Slowness on PUT requests
I''ve been noticing about a 2 second pause between PUT requests when
running either webrick or mongrel. GET, LIST and DELETE all work
great. I tested this by using curl to make a lot of continuous requests.
Even if I remove everything from the controller method and just
replace it with render(:nothing => true) I still get the lag. So I
don''t think it''s
2006 Aug 15
5
Set up a default route
Phlip wrote:
> Can I fix it by adding a view called ''inventories''?
That worked, because I have a sufficiently late version of MySQL.
Next question. What does "Set up a default route" mean?
When I read...
http://wiki.rubyonrails.com/rails/pages/Routes
...it reminds me of the Apache documentation for mod_rewrite. I hope
someone appreciates the candor of my
2008 Mar 15
4
[PATCH] Get requests with non-html referers
Hey, Aaron. Looks like that get with hash params patch you checked in
had some side effects. Specifically, you''re testing if a referer is a
Page (mechanize.rb:171), but the referer could also be a
WWW::Mechanize::File. Like if the last page loaded was xml. Here''s a
patch that addresses the issue.
Thanks again,
Mat
-------------- next part --------------
A non-text
2007 Jul 24
3
Jruby + Rhino = Javascript support?
Hey Aaron, I''m just thinking out loud here, but have you considered
the possibility of using the Rhino [1] library to implement
javascript support in mechanize? It''d create a jruby dependency for
that feature, but still. Just thought I''d bring it up while I was
thinking about it.
-Mat
[1] http://www.mozilla.org/rhino/
2006 Jul 31
3
Calling Image File
I''ve this small test app where I''m saving a user profile picture in a
subdirectory under "public" folder. Now when a user uploads a picture -
a unique directory is created under his id and then his/her image is
stored there. Now while retrieving the image I only get the path name
and nothing else. How can I get the image shown in the browser...HELP
PLEASE!!!
--
2008 Mar 10
2
Mechanize for multi-part form post
Hi,
I''m interested in using Mechanize as a way around manual multipart
form creation. But the API is really centered around the idea of a
form built from a page. I''d love to see a syntax like:
response = agent.post(''http://www.mydomain.com/upload'',
:image => File.new(file),
:title => "My image",
:description => "an image