I need to pass path to file through URL e.g. path_to_file/file.mov so URL will be something like this http://localhost:3000/file_manager/del_media_file/path_to_file%45file.mov i found function to CGI::escape and CGI::unescape to convert special characters. But it ignores "." so i receiv "file" instead of "file.mov" inside params hash how can i fix it? -- 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 unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
anonymous -- wrote:> I need to pass path to file through URL > > e.g. > path_to_file/file.mov > > so URL will be something like this > http://localhost:3000/file_manager/del_media_file/path_to_file%45file.mov > > i found function to CGI::escape and CGI::unescape to convert special > characters. But it ignores "." so i receiv "file" instead of "file.mov" > inside params hash > > how can i fix it?he.. i solve this problem using Base64 -- 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 unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---