railsdav - help

3 views
Skip to first unread message

tom

unread,
Jan 1, 2010, 11:02:19 PM1/1/10
to Ruby on Rails: Core
hi, not sure if
a) this is the right spot
b) railsdav is still "in use" or other "plugins" are preferred

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

Ryan Bigg

unread,
Jan 3, 2010, 8:16:16 AM1/3/10
to rubyonra...@googlegroups.com
Hi Tom,

the correct place for this would be on the rubyonrails-talk mailing list. This list is for Ruby on Rails core discussion. For help and assistance, check out the rubyonrails-talk mailing list.

2010/1/2 tom <toma...@gmail.com>

--

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.





--
Ryan Bigg

tom

unread,
Jan 3, 2010, 10:17:28 AM1/3/10
to rubyonra...@googlegroups.com
thx!

Rick DeNatale

unread,
Jan 3, 2010, 11:02:07 AM1/3/10
to rubyonra...@googlegroups.com
On Sun, Jan 3, 2010 at 8:16 AM, Ryan Bigg <radarl...@gmail.com> wrote:
> Hi Tom,
> the correct place for this would be on the rubyonrails-talk mailing list.
> This list is for Ruby on Rails core discussion. For help and assistance,
> check out the rubyonrails-talk mailing list.

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

tom

unread,
Jan 3, 2010, 11:30:59 AM1/3/10
to rubyonra...@googlegroups.com
yeah - thx for ur input. i see the dilema. not very motivating since
webdav is still important, at least i think so. i just spent a few
hours with railsdav, havent gone through the whole thing yet since its
a little "confusing". but i hope it will make sense soon.

for now i guess i just have to follow the tickets / changes.

thx rick

Reply all
Reply to author
Forward
0 new messages