When clicking on the "?" link to get to the file upload form, I get an error screen and this in the production log: ActionController::RoutingError (no route found to match "/wiki/files/myfile.pdf" with {:method=>:get}): I checked routes.rb and :web/files/:id is there, file_controller.rb is in app/controllers/, and wiki/files is created under instiki/public/ ... so not sure why Rails is complaining. Any ideas? Thanks! -- Brice Ruth, FCD Software Engineer, Madison WI -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20080417/34e11299/attachment.html
Brice Ruth wrote:> When clicking on the "?" link to get to the file upload form, I get an > error screen and this in the production log: > > ActionController::RoutingError (no route found to match > "/wiki/files/myfile.pdf" with {:method=>:get}): > > I checked routes.rb and :web/files/:id is there, file_controller.rb is > in app/controllers/, and wiki/files is created under instiki/public/ > ... so not sure why Rails is complaining. > > Any ideas? > > Thanks! > > -- > Brice Ruth, FCD > Software Engineer, Madison WIyes. dont use the dot.> ------------------------------------------------------------------------ > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users
Hmm, ok - so like myfile_pdf? But then it apparently will *save* as myfile_pdf, and purportedly download as such, too ... so how will that lead to a valid download for users? Apache won''t send the right mime-type and there won''t be a valid file extension to infer the file contents, either ... right? On Fri, Apr 18, 2008 at 4:11 AM, Kristian Weston <kris.weston at gmail.com> wrote:> Brice Ruth wrote: > > When clicking on the "?" link to get to the file upload form, I get an > > error screen and this in the production log: > > > > ActionController::RoutingError (no route found to match > > "/wiki/files/myfile.pdf" with {:method=>:get}): > > > > I checked routes.rb and :web/files/:id is there, file_controller.rb is > > in app/controllers/, and wiki/files is created under instiki/public/ > > ... so not sure why Rails is complaining. > > > > Any ideas? > > > > Thanks! > > > > -- > > Brice Ruth, FCD > > Software Engineer, Madison WI > > yes. dont use the dot. > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >-- Brice Ruth, FCD Software Engineer, Madison WI -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20080418/ba53f3f0/attachment.html
Brice Ruth wrote:> Hmm, ok - so like myfile_pdf? But then it apparently will *save* as > myfile_pdf, and purportedly download as such, too ... so how will that > lead to a valid download for users? Apache won''t send the right > mime-type and there won''t be a valid file extension to infer the file > contents, either ... right? > > On Fri, Apr 18, 2008 at 4:11 AM, Kristian Weston > <kris.weston at gmail.com <mailto:kris.weston at gmail.com>> wrote: > > Brice Ruth wrote: > > When clicking on the "?" link to get to the file upload form, I > get an > > error screen and this in the production log: > > > > ActionController::RoutingError (no route found to match > > "/wiki/files/myfile.pdf" with {:method=>:get}): > > > > I checked routes.rb and :web/files/:id is there, > file_controller.rb is > > in app/controllers/, and wiki/files is created under instiki/public/ > > ... so not sure why Rails is complaining. > > > > Any ideas? > > > > Thanks! > > > > -- > > Brice Ruth, FCD > > Software Engineer, Madison WI > > yes. dont use the dot. > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org <mailto:Instiki-users at rubyforge.org> > > http://rubyforge.org/mailman/listinfo/instiki-users > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org <mailto:Instiki-users at rubyforge.org> > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > -- > Brice Ruth, FCD > Software Engineer, Madison WI > ------------------------------------------------------------------------ > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-usersno idea - looks like that bit is broken