similar to: Upload file with url parameter

Displaying 20 results from an estimated 200 matches similar to: "Upload file with url parameter"

2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using CalendarHelper works fine. Then I tried to test using rake command which gave me the following error. Why does these messages appear evenif the application owrks fine. ------------------------------ Error Messags -------------------------------------- /usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
2011 Aug 31
5
3.1rc8 - posting files in a test no longer works
A previously working test, that posted a file object no longer works in the latest 3.1. The test looks like this: params[:media][:new_attachment] = File.open("#{Rails.root}/test/data/ less_than_100.png") post :create, params In the controller, I obviously expect params[:media][:new_attachment] to be a File object - and it used to be. Now it looks like #inspect has been called on the
2012 Mar 04
4
How to retrieve a FileBlob from 'ActionDispatch::Http::UploadedFile' instance?
I have used ''remotipart'' gem to upload files asynchronously to server side. The instance passed to the server side is of ''UploadedFile'' . The Rails API mentions all the methods( like read(), open() ) and attributes for the class, however I am not sure how to retrieve the File and store it on the database. The documentation hardly says anything. Googling
2006 Jan 05
4
testing file uploads
Hi all, I was wondering about the class used when rails receives file uploads. Sometimes it appears to be a File, and other times it is a StringIO. Also it has methods such as original_filename that don''t appear to belong to either of these classes. I ask because I''m trying to work out how to test my fil upload related models and controllers. Is there some standardised way of
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there, I posted this issue <https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at the carrierwave-group, but I''m beginning to think this rather is a rails-issue than a problem with carrierwave. The problem''s this: I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my article_controller i
2008 Jul 04
9
file upload
is there any link for step by step guide in file upload in database ... im follwing the link http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm.. which shows file upload into folder not in database ..pls help.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2018 May 08
2
help with json data from the web into data frame in R
Hello I am able to construct a url that points to some data online in the JSON format. See an example at [0]. I would like to work with this data as a dataframe in R. I know that there is a package for handling json data [1] but it assumes the data is in a local file but It is not clear to me how to request the data from the web in an R script and get the json data converted into a data frame
2009 Sep 14
2
Set a select box with default value selected
I am relating to the book & subject example mentioned in the tutorial mentioned here: http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-examples.htm There is a file that goes like show_subjects.html.erb and it will list all the books for that particular subject we''ve selected. Suppose if there were no books to show for the subject we can ideally show a corresponding message
2008 Jun 15
5
Ruby on Rails 2.1 Tutorial
Hi, I have put all the basic things in place and you will find it a working tutorial for Ruby on Rails 2.1. http://www.tutorialspoint.com/ruby-on-rails-2.1/ I have covered Model, Controller and Views in detail and you will find a nice example on scaffolding. If you like this tutorial then please share it with others....Oh yes...if you have any feedback then please definitely send it to me.
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field = form_for (Clip.new), :html => {:multipart => true} , :remote => true , do |f| = f.hidden_field :user_id, {:value => current_user.id} = f.text_field :name = f.text_area :description = f.file_field :image = f.submit I18n.t(:add) generating the html code <form accept-charset="UTF-8"
2009 Mar 28
1
Image uploading - upload_column
Hai I am using upload_column for uploading images. Trying to do the user registration. For the first time when the user tries to upload image it works fine. But when try to update the image an error undefined method `process!'' for #<UploadColumn::UploadedFile:0x6838424> occurs. in my view I set the :multipart=>true. and in controller in the edit action @user =
2008 Jun 18
1
Ruby on Rails 2.1 Unit Testing
Hi, Just introduced few more chapters in my Ruby on Rails 2.1 tutorial. Most interesting one is Unit Testing of RoR Applications. Just go through it and send me your comments. http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htm Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
Hi. I have a simple application and I want to add a file upload functionality. How can I write a spec? Here''s my try. # directory structure app: - controller.rb - controller.spec.rb - files: [] - fixtures: [test_file.png] # controller.spec.rb require ''rack/test'' require ''controller'' module MyHelpers def app Sinatra::Application end end
2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
Im having an issue that seems to only happen when trying to use a transaction. Ive used transactions many times in the past and Im at a loss as to why im getting the stack level too deep problem. SystemStackError - stack level too deep: actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:70:in `'' I have a StackOveflow with more detail -
2018 May 08
2
help with json data from the web into data frame in R
I?ve been tinkering and discovered that the link I need to read json data from is ?https? and there is a certificate warning that I have to click through from a browser. That might be my issue. Is there any way in the json package to tell it to ignore self-signed cert errors in a url? -Rich From: Eric Berger [mailto:ericjberger at gmail.com] Sent: Tuesday, May 08, 2018 11:31 AM To: Evans,
2010 Aug 12
2
session
I tried to understand what a "session" means in Ruby on Rails, and found this site: http://www.tutorialspoint.com/ruby-on-rails/rails-session-cookies.htm But, really, I couldn''t get the idea well yet. Can you just explain what "session" means mire further? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to
2018 May 08
0
help with json data from the web into data frame in R
Hi Rich, Take a look at the function fromJSON found in the rjson package. Note that the Usage in the help page: ?fromJSON names the second argument 'file' but if you look at the description the argument can be a URL. HTH, Eric On Tue, May 8, 2018 at 6:16 PM, Evans, Richard K. (GRC-H000) < richard.k.evans at nasa.gov> wrote: > Hello > > I am able to construct a url that
2012 Jun 08
1
[Rails 3.2.5] Rails: unit test fixture_path : fixture_file_upload cannot find the file ...
I am trying to perform a test unit, using FactoryGirl include ActionDispatch::TestProcess FactoryGirl.define do factory :article do ....... photo { fixture_file_upload ''/files/test.jpg'', ''image/jpg'' } end end IN mt test_helper.rb I defined the fixture_path def fixture_path File.dirname(__FILE__) + "/fixtures/" #
2009 Oct 27
2
fsockopen-method in ROR
Hi, PHP has ''fsockopen''-function to create a socket connection. With what function I can create this connection in ROR? Thanks im Advance -- Posted via http://www.ruby-forum.com/.
2017 Oct 30
1
run r script in r-fiddle
Note that, looks like r-fiddle runs R 3.1.2.