goal: to use webdav
i installed railsdav according to the guide on:
http://liverail.net/railsdav
i added
#controller
act_as_railsdav , basedir > public
def webdav #gets called via the routes.rb
res=get_resource_for_path(params[:info_path]) #tried fixed path, eg:
"/tmp/test.txt"
......
end
#route
map. connect "mydav/*info_path" , controller>..., action>webdav
>> problem is the whole thing throws an WebDavErrors::ForbiddenError error in the get_resource_for_path function, but all the file-permissions are fine on the test.txt...
im not sure how the controller-action should look like to make
everything happen, so im open to everything. tutorials are rare...
thx for any pointer!
tom
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
That's very true, but...
As far as I know, the various plugins/patches to allow writing webdav
apps in rails are all getting rather long in the tooth and probably
haven't stayed up to all the changes in Rails. One of the issues with
webdav is that it adds additional method types to http which Rails
doesn't understand.
I submitted a patch to allow controlled addition of http methods to
the rails stack some 7 months ago
https://rails.lighthouseapp.com/projects/8994/tickets/2809-patch-allowed-controlled-addition-of-new-http-methods
But it seems to have escaped notice. It's probably not still up to date.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
for now i guess i just have to follow the tickets / changes.
thx rick