Displaying 20 results from an estimated 140 matches similar to: "Resotolog-1.2 - RESTful blog example (was Community request - can someone show me REST? )"
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
2006 Sep 10
11
Using partials with Markaby
I''m trying to use a partial from within Markaby. I haven''t been able to
figure out how to access a parameter passed into the partial. Here''s the
code I''m using:
h1 "Create a new note"
if @note
render :partial => ''form/errors'', :record => @note
end
...
(that snippet, as well as the partial is stolen shamelessly from Restolog
2001 Mar 27
4
Running Wine as a user
Hi
I've used Wine for some time now, compiled from source, from root with no problems. I now wish to run it regularly as an ordinary user.
Unfortunately it's refusing to run because "the socket is not owned by you", or words to that effect. After the socket is created under /home/user/.wine/... I can give it user permissions and Wine will start, but if I stop Wine and
2007 Sep 04
2
specing helpers fails on restful routes
Hi,
I am trying to spec helper methods in a Rails project, but it seems
the specs fail with the error:
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
if the restful routes helper are used either in spec files, or the helper file.
What can I be doing wrong? Or how can I fix this.
Thanks!
--
Surendra Singhi
http://ssinghi.kreeti.com,
2007 Mar 09
1
Specifying RESTful Routes
What would be the proper way to specify this route?
ActionController::Routing::Routes.draw do |map|
map.resource :recipes
end
Would the specification go into recipes_controller_spec? Also, what
methods are available for testing RESTful routes (i.e. GET, POST, PUT,
DELETE)?
2006 Nov 04
0
RESTful controller naming conventions
It is my understanding that originally controller names where singular.
In all the examples of RESTful controllers the names have been
pluralized.
So what is the new convention? Singular or plural controller names?
Leevi Graham
Front End Developer - User Interface Designer
www.leevigraham.com | Skype Me: leevi_graham
MSN Messenger: info@leevigraham.com
Download My VCard
--------------
2006 Aug 02
0
Simply RESTful deletion
Evening all! I''m playing around with the new Simply RESTful plugin, and
I''ve got a question about the *_url methods.
>From what I understand, given a Page model, there are three _url methods
provided:
- page_url
- new_page_url
- edit_page_url
I''m a bit disturbed that there are only three, but that aside...
To delete a resource, I would say:
2006 Aug 02
1
Use Non CRUD with Simply RESTful
Hey guys,
I''m trying out the new RESTful bits in Edge Rails, and am having a bit
of trouble wrapping my brain around certain things. For instance, say I
have a page that is separated into sections with tabs at the top. I want
to replace divs on the page with RJS.
Now typically before I''d have a method on the controller that rendered
an RJS template to accomplish this.
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 Jun 30
2
Simply Restful: Can''t create update forum
Views
<code>
<% form_for :user, @user, :url => { :action => "update" }, :method =>
:put do |f| %>
...
<% end %>
</code>
Outputs
<code>
<form action="/users/1" method="post">
...
</code>
It sends post instead of put. I don''t see any hackish hidden put stuff
in the form either.
--
Posted via
2006 May 10
1
RESTful Web Services
Hi, could someone post a good link explaining exactly what these are, and
why I should care about them?
Thanks,
Tim Case
tim@karmacrash.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060510/76274e95/attachment.html
2006 Mar 08
0
RESTful tutorial
Hi,
I started dabbling with Ruby a little while ago and for a hobby project
I''d like to build a web service with a view to later building a Ruby/GTK
client to use the service.
I want to learn about REST too so it seems to me that Rails looks like a
sensible way forward - the URIs it generates are already quite RESTful
and it looks like it''d deal with a lot of the mundane
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new
link_to_remote helper?
something like:
<%= link_to_remote h(user.name),
:update => "div_id",
:url => user_url(user) %>
of course, that doesn''t work.
i have also been trying things like:
:url => controller.asset_host +
2010 Feb 18
1
restful route paths... has something changed?
So I have this
resources :forums do
resources :topics
end
But when I try to do this:
<%= forum_topics_path(1, 2) %>
I get:
/forums/1/topics.2
Why the dot? Expecting a slash
This is rails3.. so maybe I am doing it wrong to what I''m used to
cheers for any info!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Oct 26
0
Composite Keys on RESTful Routes
I am building an app with existing controllers/actions, using
traditional rails routes. I recently started moving over to RESTful
routes and have hit a snag. Now I am reconsidering my whole effort
and may go back to the original, more flexible, map.connect method.
My problem is, one of the resources has composite keys. The keys are
both strings as well, and can include dots. Here''s
2007 Aug 24
1
ActiveMerchant Paypal IPN and RESTful design
Hello,
I''m trying to go all REST of my application. But i''ve come to one problem.
How do i do payment, using IPN, in a RESTful way?
right now i have an Payments controller. With 2 actions.
action "new" shows a page with a paypal button.
action "paypal_ipn" is where paypal sends its notifications.
How would i go about doing this in a REST environment?
Thank
2007 Feb 05
2
Restful table column sorting with pagination
Anyone able to implement table column sorting and pagination with
Restful routes?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To
2007 Jul 23
0
any restful client other than active_resource?
Hi,
I am trying to consume a restful resource.
I tried active_resource with rails 1.2.3, but it doesn''t work.
so I assume that it only works with Edge Rails.
Is there any other ruby-based restful client available?
Thanks.
Yaxm.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2008 Sep 08
0
uninitialized constant error with restful authentication
I''m trying to set up restful authentication with Rails 2.1.0 on Mac OS X
Leopard, and I had to comment out RAILS_GEM_VERSION in the environment
file to install the plugin from technoweenie. Now I''m trying to follow
along in a tuturial, and I''m stuck on this:
1. $ ruby script/generate scaffold Role rolename:string
2.
2007 Sep 18
0
Help with RESTful named url options
I''ve found quite a few posts on the subject, but no satisfactory
answers. Maybe Rails just doesn''t support this yet.
How do I create a url with a named RESTful route that also has
parameters?
I want to write this:
link_to_remote "Show Details", {:url => item_url(@item, :details =>
1), :method => :get}
And get this:
<a href="#"