similar to: REST webservice client

Displaying 20 results from an estimated 2000 matches similar to: "REST webservice client"

2006 Apr 13
1
Model is not a class
I''m trying to specify a model in a controller, but rails gives me "Account is not a class", where Account is my model name ... This is my model: class Account < ActiveRecord::Base validates_presence_of :email, :email_confirmation, :username, :password, :password_confirmation validates_format_of :email, :with =>
2006 Feb 14
1
authentication and session variables
Hi *, I''m looking at typo authentication, and was asking myself if it''s correct to put in a session variable a user object which has_many posts ... Just because I''m rolling my own authentication system and want to know what''s the best way to handle this issue (other than using a generator or a plugin, which I''d prefer not to use). -- Nicholas
2006 Apr 24
0
design question for a web service client
I have a module that queries a web service and returns an xml document (sometimes more than one). I''ve put the module under lib, and created a model to use the resulting xml documents. Obviously the document needs to be parsed with rexml, and return a ruby data structure to the controller that can be used in various ways in my views. Would you implement all the specialized parsing
2006 Mar 21
0
INTERVAL datatype
Really simple question: how do I use an INTERVAL datatype with migrations ? I need it to represent a song duration. TIA, -- Nicholas Wieland nicholas_wieland@yahoo.it ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
2006 Mar 08
3
ActiveRecord and Images
Not really a Rails question, but a "best practices" one. If I want to associate an image to every account in my application, is it better to insert the image file directly inside the db or to upload the image in public/images/ ? Also, if I want to associate a cover to a movie, what''s the best approach ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it
2006 Jul 31
5
ActionWebService API
Hi *, I need to pass a hash to a webservice, so I defined my API with: api_method :search, :expects => [{ :tags => :string, :assignment => :string, :resource => :string, :lesson_plan => :string, :subject => :string, :all_types => :string }], :returns => [[Resource]] when I try to test the webservice with scaffold the
2006 Aug 17
4
Unit Tests and lib/
Hi *, I have a few modules in lib/ and I use them mostly in my models. I''d like to add a few unit tests and run them with rake with all other tests of my app: where do I have to write them ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 21
3
ActionMailer doesn''t send any mail
I''ve configured actionmailer following the documentation, adding to environment.rb everything for using my mail account on yahoo using deliver_* methods to send a mail. I can see the mail in development.log and everything seems fine, but no mails so far. Is there a place where can I see what the server answered, or something to look at to solve the problem ? I have no clue,
2006 Jul 26
1
how do I change color to an highlight effect ?
This is my code: <%= form_remote_tag :url => { :action => "forgot_account" }, :update => "result", :complete => visual_effect(:highlight, "result", :duration => 2, :startcolor => "#c8e673", :endcolor => "#9db55d") %> If I remove colors to the effect everything works, but with this code it renders on another
2006 Aug 15
1
Interval datatype in migrations
How can I use an interval datatype inside migrations ? execute ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/1c262694/attachment.html
2005 Sep 28
1
MeetMe error
I have install Flash Operator Panel but Asterisk show this message: WARNING[3564]: pbx.c:1650 pbx_extension_helper: No application 'Meetme' for extension (conferences, 101, 1) ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
2005 Sep 29
2
Don't call
I have set up extension.conf and sip.con with default parameter of UNIVOICE server, but Asterisk show this message when I call a number: Sep 29 11:34:52 WARNING[4179]: chan_sip.c:1899 create_addr: No such host: univoice,Ttr Sep 29 11:34:52 NOTICE[4179]: app_dial.c:1109 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) == Everyone is
2006 Jun 13
1
Routes question
Hi *, I have something like map.connect ''people/:username'', :controller => ''account'', :action => ''index'' in my routes.rb and obviously if the user isn''t logged it defaults to the login screen. I''d like to be able to fetch the :username and display it in the opposite input field inside my login page, but I
2006 Nov 04
0
Using <=> in models
Hi *, I''m going mad because I''m not able to implement a custom sort on an array of models. The order must be by type, where type are custom strings, so Subject > LessonPlan > Assignment > Resource and if the type is the same by date using a datetime field (created_at). def <=>(other) if self["type"] == "Subject" return +1
2006 Jun 11
0
Account location plugin
Hi *, I''d like to know from users of the Account location plugin if it works with webrick without adding all the subdomains to /etc/hosts. I''m on OS X. I would also be glad to hear experiences using this plugin. ngw -- Nicholas Wieland nicholas_wieland@yahoo.it Chiacchiera con i tuoi amici in tempo reale!
2005 Jun 19
1
ext3 offline resizing
Hi all, I want to setup a linux workstation with FC4 and with all the partitions (except for /boot) under LVM to be able to resize them in future. I don't need online resizing, I can shutdown the system and reboot with the rescuecd when needed. I have done some test on this configuration and I have sverals doubts: If i format a partition with the resize_inode feature enabled and I resize it
2005 Oct 17
1
Maxxtro ups
Hello all, I bought a (very) cheap maxxtro 600VA line interactive ups and i was trying to make it work with nut. Since I thought it was a simple contact closure ups, I tried all genericups drivers but none worked. Some more information about the ups: I connect it with a usb cable (but it also has a serial port) which is seen as a usb to serial converter: USB HID v1.00 Gamepad [Cypress
2006 Mar 13
1
Constrained least squares
Is there a function in R for constrained linear least squares? I used the matlab function LSQLIN: my aim is to obtain non-negative regression coefficients which sum 1. Thanks in advance, domenico vistocco ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
2005 Mar 02
1
using subdomains as account keys
I finally managed to use subdomains as account keys, just as in tadalist. Now I have an "account" variable in all my controllers, and was thinking about what implications I''m going to have on security, because the accounts table contains all account crypted passwords (of course). Is it secure or not ? David ? :) -- checking for life_signs in -lKenny... no Oh my god, make (1)
2007 Feb 24
1
Bug in TMail ?
I''m sending mails to a rails app, and I''m having a weird issue fetching the email.from header. I will paste the whole email and show what email.from returns. ####### Received mail: Return-Path: <nicholas.wieland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Delivered-To: unknown Received: from mail.tochunky.org (75.126.89.28) by adreadedsunnyday.local with POP3; 24 Feb