Displaying 20 results from an estimated 800 matches similar to: "Arrays of objects as parameters to webservices"
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello,
I''m using Jamis Buck''s recipe to do integration tests on an
application, but I got a nil.recycle! error while doing a webservice
call.
This is the situation.
def test_uploading_data
invoke :upload, data
invoke :upload, even_more_data
real_user_session = new_session_as @real_user
real_user_session.press_magic_button_to_enable_more_uploads
invoke :upload,
2006 Mar 18
9
How do I write this SQL the Rails way?
I''m trying to find all the unique bill_number, status records in Bills
table. I can do it with a find_by_sql statement like this:
@records = Bill.find_by_sql( "select distinct bill_number, status
from bills
group by bill_number, status;")
How would I rewrite it using ''find :all
2006 Feb 23
1
HABTM testing - fixtures not loading?
Hi,
I have a strange problem with testing classes which have a HABTM
relation. It seems that while running my tests with rake the fixture for
the association table is not loaded - as a result I get a failure on a
test which simply checks the number of associated elements - it says
it''s 0 although there should be one. The weird thing is that when I run
the tests with rcov
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code:
physician.name.sub(/''/, "\\''")
I''m trying to substitute a single quote with a backslash and a single
quote. This seems pretty simple right? Well, someone kick me and
tell me why it''s not :)
Here''s what I''m getting if the
2006 Apr 20
1
fit testing, FitNesse
Hello,
this is a typical "how do you do it in Rails" question :) I would like
to incorporate fit testing into a RoR app and I''d like to hear your
recommendations on how to do it. In the ideal world I would like all the
table test definitions and implementations stored in svn together with
the app, ability to run the tests with a rake task + a hook to FitNesse,
so that
2005 Dec 30
4
soap4r 1.5.5 seems to break actionWebService tests
Hi,
I just upgraded to soap4r 1.5.5, and now all my Rails Functional tests
for the action_web_services fail as follows, any ideas what I did wrong?
Thanks
TypeError: can''t modify frozen object
/usr/local/lib/ruby/1.8/xsd/qname.rb:78:in `name=''
/usr/local/lib/ruby/1.8/soap/rpc/element.rb:118:in `set_param''
2006 Mar 24
2
Return all rows, split then show uniques
I''m returning some rows from a tags database that look like this:
ID WORDS
1. apple banana pear
2. banana melon
3. apple peach lime
What I want to do with that data is use the .split method to divide them
into separate values in an array, then use the .uniq method to return a
unique list of the words like so:
apple, banana, pear, melon, peach, lime
So in my controller I
2006 Mar 22
9
render partial from withit mail template
Hi,
I''m trying to include a partial in an email template but it throws me this:
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #12):
11:
12: <%= render :partial => ''footer'' %>
I guess email views are a little different from normal ones as they
don''t seem to have a access to a proper controller (?)
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
Hello.
I hope this is the right place to describe my problem ?
After upgrading to Rails version 1.1.2 from rails version 1.0.0, Web
Service functional tests seem broken.
I upgraded rails (as the root user / administrator) with:
# gem update rails --include-dependencies
then I upgraded my application (as myself) with:
? rake rails:update
% rake rails:update:configs
After these steps,
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the
Agile book. The code as written in the book yields 2 errors:
test_find_product_by_id(BackendControllerApiTest):
XMLParserError: syntax error
Anyone hit this yet and get it to work?
Thanks.
Ken
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Nov 24
2
advanced search with ferret?
Hello,
I''m a novice to ferret, so far only used it via acts_as_ferret. My
question is about a recommended pattern for an ''advanced search'', which
would be searching by all fields of a model and some fields from related
models, with range search, expression search and wildcards. The kind of
search in which a user is presented with a huge form that allows them to
set
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and
undefined method error. Can I even use these methods within a model? I
tried to use auto_link and it failed too. What am I doing wrong?
Furthermore, would it be recommended I format text before saving it to
the database? Advantages or disadvantages?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 03
15
How should I pick a random entry from the database?
Hi guys. Total newbie here. I''ve been doing web stuff since 1996 but
only began the foray into scripting last year. I haven''t got my skull
completely 360 degrees around OOP yet. It''s just me here (in Japan) and
there are no Ruby groups in my area (never mind any in English).
I''ve got a database table - real simple: question, answer, and id fields
- and I
2006 Mar 14
2
no such file to load -- login_system
I''m hoping someone can help me out here. My application works fine
locally using webrick. One I upload to my shared server space I get an
application error saying rails has failed to start.
The log file production.log reads as follows:
MissingSourceFile (no such file to load -- login_system):
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__''
2006 Mar 30
2
A few problems after installation
Hello, I just installed RoR on my server together with cPanel. On port
3000 there is the Rails welcome page. Could you tell me how I can change
the home page directory? Currently, the home page directory is
/home/username/public_html, but I''d like to use RoR''s home directory
instead.
I also have another problem: I put .rthml files and instead of the web
server parsing it,
2006 Mar 31
6
how to access a hash within a hash in ruby?
Simple question:
I know how to access a data field in a hash by doing
hash_name[datafield_name].
But what if the datafield itself is a hash? I tried a couple of
variations but nothing seems to be working and tutorials do not go into
such details.
Is there a simple way or should I create separate instances?
-Chris
--
Posted via http://www.ruby-forum.com/.
2005 Sep 06
1
error_messages_for - different controllers, one view [revisited]
Hi there,
some time ago there were two posts on this subject on this list:
One way that might satisfy the elegence factor is to treat your
> comment controller as a component in this case, calling
> render_component within your post controller where you need to process
> the comment.
>
> http://manuals.rubyonrails.com/read/chapter/73
>
> There are a few ways you could do
2006 Mar 10
3
External controller code
Hey,
we like to realize a RoR project with a huge amount of controller code.
What is the best way to handle that.
Is there a similar mechanism for helper as for views or a way to
include/load external code?
Otmar Tschendel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/789a3fad/attachment.html
2006 Feb 22
3
is there really a restart task in switchtower? How do you invoke it?
I just created a new rails project "test".
I then did "switchtower --apply-to ~/user/test test"
I then moved into test and tried "rake restart" and got:
kfelkins@lurch:~/user/test$ rake restart
(in /home/kfelkins/user/test)
rake aborted!
Don''t know how to build task ''restart''
I see restart in deploy. Can restart be invoked from the
2006 Mar 14
1
ActionMailer Error - Please Help!
I''m trying to send an email to myself when someone comments on my site.
Here''s my code, if you don''t mind, could you tell me if you see
something wrong?
#environment.rb
# Include your application configuration below
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:domain =>