search for: simply_rest

Displaying 18 results from an estimated 18 matches for "simply_rest".

2006 Jun 28
2
simply_restful plugin tests failing???
Has anyone successfully ran the simply_restful tests? Here is how I''m running the tests and the first error. I''m I missing something here? >rails test >cd test >rake rails:freeze:edge >./script/plugin install simply_restful >ruby vendor/plugins/simply_restful/test/routing_test.rb Loaded suite vendor/plugi...
2006 Jul 31
3
Simply_RESTful and Bulk Import URLs
...ctual bulk import. Here I was thinking of either: /people/;bulk_import (using a POST method) or /people/bulk_import (using a POST method). I''m getting a bit confused on how to think about this ''new'' REST/CRUD paradigm, especially in terms of URLs, and then using the simply_restful plugin to manage the named routes. Can somebody clear this up for me before my head explodes. Thanks Joerg -- Posted via http://www.ruby-forum.com/.
2006 Jul 30
1
custom routing in simply_restful
Is there information on how I can define custom paths/actions other than these: /users/new GET new /users/id;edit GET edit so for example I can have my own: /users/log_in GET log_in /users/id;process_log_in GET process_log_in So far I cannot find any documentations on these at all. -- Posted via http://www.ruby-forum.com/.
2006 Aug 10
6
Multiple sites using one data source
Hi, Just wondering if anyone has any suggestions as to the best way to provide access to the same data source for the (possible) creation of multiple web sites. I figure my options are: - Direct database access over tcp - ActionWebService - Wait for ActionResource I''ve done up some work with ActionWebService already, but I don''t think it''s going to work because it
2006 Jul 19
2
SimplyRestful bug?
...em with the routes: new_contact_url translates to: /employers/1/contacts/new ... so that works. But, contact_url(@contact) gives me /employers/3/contacts .... which is clearly wrong. It should give me something like /employers/1/contacts/3 Is this a bug? Or am I missing something? Routes and simply_restful work fine for me everywhere else. Thanks Joerg -- Posted via http://www.ruby-forum.com/.
2006 Jul 22
12
Community request - can someone show me REST?
I mentioned this in another thread, but I''ve got a formal request now. After reading tons of stuff about REST, I don''t really get it. I need to see an example. I''d like someone to write up an example blog app with these requirements - RESTful using the simply_restful plugin (or edge rails) - allows posting of comments to articles - has categories for posts No need for authentication. I have two questions that would be answered by that example app. The first is just how to use simply_restful in the first place. I also wonder how you''re supposed t...
2006 Jul 12
6
So what is REST? I don''t get how it fits in Rails
...this? I saw DHH''s slides where he said that you could have your app automatically respond with HTML, XML, atom, whatever. So far I''ve found tons of discussion on REST and CRUD in Rails, but I haven''t seen anything that actually shows me what it all is. There''s simply_restful, which apparently makes things easier...I don''t know what though. I''ve done a lot of reading, so I know what REST is, I just don''t know how people use it in Rails. If anyone has some examples and explanations, I''d really appreciate it. Pat
2006 Jul 09
1
REST Interface
Is the REST Controller (for calling APIs through the REST interface) already built-in ?? Or, I have to generate one -- generate controller rest ?? MSN id: ICEMANyears@netscape.net -- Posted via http://www.ruby-forum.com/.
2006 Jul 23
2
REST controller with up and down for model that acts_as_list
Hi, I have the following models class Department < ActiveRecord::Base has_many :products end class Product < ActiveRecord::Base belongs_to :department acts_as_list :scope => :department_id'' end When I look at a list of products for a particular department I have up and down buttons to re-order the products. Currently my controller is something like this class
2006 Aug 04
4
REST
...''s effort: http://www.xml.com/pub/a/2005/11/02/rest-on- rails.html?page=1 Or BenStiglitz''s effort: http://rails.techno-weenie.net/tip/2005/12/31/ accepting_xml_or_yaml_in_your_rest_api b) use the RESTful-Rails plugin c) use the simply_RESTful plugin Some plugin background: http://microformats.org/wiki/rest/rails Lelu''s knowledge of Rails on REST is pretty well tapped out at this point, which is unfortunate because she''s motivated me to write a web service that will serve up XML RESTfully. I''m not sur...
2006 Aug 08
2
Resources and pretty URLS
Using the brand-spanking new map.resources for REST goodness, is there a way to pass in additional parameters, or do I have to go back to standard routes. For example, is there a way to use the map.resources to response to urls like: /blog/2005/02/03/ => :controller => :blog, :action => :show, :year => 2005, :month => ''02'', :day => ''03''
2006 Aug 31
0
ActiveResource
.../prefix from post end @post.comments.create(:body => ''....'') @comment.post.title Feel free to poke around and let us know what you think. Keep in mind, ActiveResource isn''t a general XML web service framework. It''s merely the client version of simply_restful. Think of it as an added bonus for following the restful conventions. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/ra...
2006 Aug 30
0
Rubyists of Second Life Meeting on RESTful Routes | 08/31/2006
The virtual user group Rubyists of Second Life will meet this Thursday, August 31, and next Thursday, September 7, at 6:00 pm PST. This Thursday, Theodore Polonsky will be presenting on simply_restful and the new RESTful routes in Rails Core, and Polypus Watts will be presenting on DRP: evolutionary/social programming for interactive/design tasks in Ruby. Second Life is a virtual 3D world and society. Basic memberships are free. There are hefty bandwidth / computer hardware / graphics card...
2006 Aug 01
1
SimplyRestful
Hi, Is it SimplyRestful compatible with Rails 1.1.4 or Would I need edge Rails? -- Posted via http://www.ruby-forum.com/.
2006 Aug 06
1
Guide to new RESTful routing in Rails
Does anyone have any links to a comprehensive guide on the new routing in Edge Rails? I''m keen to integrate it into a new app and have read the Riding Rails post by Rick but would like to read a more comprehensive guide to its usage. -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi, A store front a customer wants to GET /product/5/show. But for the application this is really GET /cart_item/new/5 or even better /cart_item/new?cart_item[product_id]=5 When the customer clicks add_to_cart they POST /product/5/show so that the url doesn''t confuse the user when any validation errors occur. But for the applicaiton this should be POST
2006 Oct 12
7
Evil Scaffold
I read the Amy Hoy''s presentation on why scaffold is not a good thing for beginners. For admin application, is it ok to use scaffold? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Jul 19
12
[Slightly OT] POSTing data to a Rails App
Hi, I have a Windows program that collects data and would like to store this data in a database that is usually accessed through Rails. It was recommended that I try to "POST" the data to the Rails application. I''m running into some problems trying to format my POST string for the application. I''m trying to learn by interfacing to the TODO application (Four Days