similar to: Upload

Displaying 20 results from an estimated 200 matches similar to: "Upload"

2012 Mar 27
4
render :js => "window.close();" wont work
when i try to do the following in a action render :js => "window.close();" wont work it still response in the browser,but the window wont close. i dont know why.thx! -- *愿爱与喜悦心与你同在! 石岩敬上 大连东软信息学院 计算机系软件工程应用方向 Dalian NEUSOFT Institute of Information 中国-大连市软件园路8号 邮编:116023 **Mail:hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org*
2012 Apr 19
7
install Rails from terminal
I have been having trouble install Rails from the terminal on my new MacBook. I have tried to find a solution on both google and youtube, but I have not find a solution to the problem $ rails -v Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. $ sudo gem install rails
2012 Apr 14
2
How to implement sory-by links?
Hello people. I have an app which lists Offers from different Vendors. I want to implement "sort by" links and I''ll do this using scopes in my Offer model. But how should I implement the functionality in the controllers/router? Should I use a member route along with a new controller action (eg. "expiring", or "most_expensive") or just use param queries?
2012 Mar 12
4
how to design a api?
hi,everyone. now i start to design a api. the url like this http://localhost:3000/api?seckey=123&&post_id=1 the visitor need a seckey to access auth.and get info via json. so i dont think thats a good api. i need your answers.thx -- 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
2012 Mar 17
7
Error installing json.........
hi I have installed ruby 1.9.3p125 (2012-02-16) [i386-mingw32] rails 3.2.2 windows 7 I have tried to create a rails project by using the command from command line rails new firstapp the following is the output... Using tilt (1.3.3) Using sprockets (2.1.2) Using actionpack (3.2.2) Using mime-types (1.17.2) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.4) Using actionmailer
2012 Mar 23
7
gsub
hi, im getting tired on this one. i want to replace all forwardslashes with backwardslashes. irb: r = "C:/RAILS/" r.gsub("/", "\\") or r.gsub("/") {(''\''} both give me: "C:\\RAILS\\" how can i use gsub to display only one "\"? regards -- You received this message because you are subscribed to the Google Groups
2006 Jan 15
4
file_field vs. file_field_tag
Hi, The documentation doesn''t make it clear why both file_field and file_field_tag are both useful. What is the reason for having two instead of just one of these? Thanks, Peter
2007 Jul 08
1
file_field_tag and rjs
Hello Is it possible to add and remove file_field_tags on the fly on a form using only rails code and rjs? If so can someone provide a solution. -- 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
2007 Feb 09
7
Upload image without rmagic
I need a way to upload an image and display it without using any of the plugins that use rmagic. I have used the plugins (file_column, fleximage) which both use rmagic and gave me problems (never got fleximage to work) Thanks in advance - K --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Aug 02
3
Upload forms--where is the file object?
Hi All, I''ve been trying to create an upload form page that will take an uploaded file, and save it to a directory on the server. I''ve tried following a couple of posts on this list, and the HowTo from here: http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles Here is the code in my view: <%= start_form_tag ( {:action => "upload"}, { :mulipart => true }
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All, I''m trying to use a form to upload a photo that I will save using attachment_fu. I''m very new to Facebookr so I apologize if this is covered somewhere, but I''m kind of stumped. Here''s what I''m doing now: <% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id => params[:id] }, :html => {
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems sogood but i cant find any docs about it, if someone here using it can give some references or working examples about the plugin that will be excellent. So what you wanna rails today? -- Posted via http://www.ruby-forum.com/.
2006 Mar 08
19
Creating multiple rows with one form
Hello. I''ve been trying this out for the past two days and I can''t seem to get it. I''m going to have a page where you can upload x amount of images at once. Lets say 10 images need to be uploaded, all with a caption. I''d like to have a browse button to choose the file, then the caption. Now, if I put 10 of them in one form, fill them all out and submit, I get
2008 Feb 04
2
attachment_fu and form_tag for multiple models?
hi, i''ve got a page where i''m trying to save the user''s profile information and an image of the user, but i''m having trouble with using attachment_fu and the form_tag method. now i know attachment_fu isn''t designed for form_tag but am really hoping someone has a solution for this as frankly i''m stumped. here''s the form_tag part in
2011 Feb 18
1
why 'Template missing' error with form_tag?
ROR newbie here... I''m trying to build a form to upload a CSV file, then parse and store the data. I have debugged this code up this point, but now when I browse to my csv file, and click Upload, I get this error: "Missing template uploads/process_file.html.erb in view path..." Here is my view (in /uploads/new.html.erb) <% form_tag ({:action =>
2010 Jun 15
3
RoutingError
hi, can anyone help me. i want to create an url to invoke create action of a controller. routes.rb has the routes. But i am getting error at line 23. i have @user variable. user_contact_path(@user.id) I want generate url as : users/3/contacts to invoke contacts controller''s create action ---------------------------------------------------------------------------------
2006 Feb 27
2
Upload & Parse CSV
Hi All I was hoping you could help me. I need the ability to upload a large quantity of data via CSV - via an upload form. The CSV file then needs parsing and the data entering into the relevant module. Does anyone have experience of this or perhaps knows of a posting, generator, existing code or any help at all? I''ve been looking but not come across anything so far. I can do this
2006 Jul 26
5
code for uploading files to the filesystem instead of db
Does anyone have any standard code for uploading files to the filesystem? I''ve got code already for uploading images to the database but I''d prefer to store the files on the filesystem. In particular I need to know how to (a) ensure a file has been selected in the file_field (b) how to extract the filename from the file_field (c) how to actually move the file from client to
2006 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys, I am trying to pass the parameters for the file being upload, but the params[] are not being passed. Ive read through some posts and realize this is an issue with RoR. I read through some of the posts and someone suggested using: http://svn.kylemaxwell.com/form_remote_upload/trunk/ I tried to install it, and although I thought I installed it correctly, it doesn''t work.
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ? My form looks like this: <%= form_remote_tag :url => { :action => ''do_image_upload'' }, :html => { :enctype => ''multipart/form-data'' } %> <%= file_field ''image'', ''file_data'', :size => 32 %> <%= submit_tag