similar to: Using form_tag_with_upload_progress

Displaying 20 results from an estimated 1200 matches similar to: "Using form_tag_with_upload_progress"

2006 May 25
4
How to add a migration with a plugin?
I''m working on a plugin that requires some database support to do its job (adding a model or two). I''d like the plugin to automatically add a migration once it is installed. Is there already a mechanism for this? If so, how do you do it? -- *Berin Loritsch* Owner *Work:* 571-215-7708 *Email:* bloritsch@d-haven.com <mailto:bloritsch@d-haven.com> *IM:*
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select field, such as <%= collection_select("job", "client_id" , @clients, "id", "name") %> with onChange="xxx" Anyone know how to make this work? Thank you, Scott -- Posted via http://www.ruby-forum.com/.
2006 Jul 27
2
ActiveRecord retrieval style? Lazy initialtization?
I''m using ActiveRecord for an Extract and Transform operation, so it is outside of its native environment of Rails. I am running into a problem with memory consumption when I retrieve large amounts of data. By large amounts I am talking about roughly 12,700 records that each have a one to many relationship with about 15 additional types of information. One of those types happens
2006 Mar 03
7
Workflow + Rails
Is there any project or solution for an easy integration of a WFE / WfMS into rails? I''m quite new to this topic, but I probably need a small subset of workflow patterns (or whatever the correct term is) only. Any pointers are welcome. -- Posted via http://www.ruby-forum.com/.
2006 Mar 04
13
file_column
Restricting size of an uploaded file, is how is that possible? If I do not want a user to upload a file larger than X bytes, can it easily be done? If I also would like restrict the types of files that can be uploaded, how may I do so? Thank you, Sharkie
2006 Mar 07
6
Flickr - Tutorial
So I''ve pretty much followed the steps in the video tutorial on RoR.com for creating a small app, to search for photos on flickr.com - all is good, and works as intended to.. How would I go about adding validation, so if no tags are specified it will fail. I know I have to use validates_presence_of :tags - but not in the controller.. so I tried to generate a model called
2006 Mar 02
4
Getting Acts_as_Paranoid to work with validates_uniqueness_of
Hello I''ve been using Acts_as_Parnoid for a while and it has been working well but I am now having a slight issue with it. I have a company table were I would like to use validates_uniqueness_of :company_name. This validation works if a company exists in the database and has not been deleted. However, I also would like the validates_uniqueness_of to work if a company has
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be alpha)? Does it affect performance much? Is there a way to get it to automatically process templates without having to call textilize? Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
5
Question about file_column plugin
Hi! File_column plugin saves uploaded files to "public/model/image/model_id/filename", if i understand it correctly. Does it mean that it creates new folder for every image? I have product (model) that has_many images (model). Is it possible to use (or modify) this plugin that it would save my images to different folder, so the id of the model_id part would be id of the product
2006 Feb 04
0
form_tag_with_upload_progress
hi all! i have a PictureController with an upload action: class PictureController < ApplicationController . . . upload_status_for :upload . . . def upload if params[:picture] @message = "File uploaded: " + params[:picture][:file].size.to_s picture = Picture.save(params[:picture]) session.update finish_upload_status "''#{@message}''" end
2006 Mar 08
3
ActiveRecord and Images
Not really a Rails question, but a "best practices" one. If I want to associate an image to every account in my application, is it better to insert the image file directly inside the db or to upload the image in public/images/ ? Also, if I want to associate a cover to a movie, what''s the best approach ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
I''m trying to upload a file, display the upload progress and then update a table with the newly uploaded file. Is there a way to specify a :success handler for form_tag_with_upload_progress such that I have access to the request.response data (in the way I can with link_to_remote)? The :finish JavaScript is being executed but because there is no request object, the table
2006 Mar 07
6
form_tag - directing to new target window
How do I use... <%= link_to "All Facilities", :action => ''fac_log_all'' %> if I add :target => "_new" that is just a parameter and not a directive. I just want reports to print into a separate window. How do I do that? It''s not clear at all to me Craig
2005 Jul 27
1
Upload Progress, Error in Ajax.PeriodicalUpdater
Hi, I''m using Upload Progress class of rails and geting this javascript error in js console: "*Ajax.PeriodicalUpdater is not a constructor*" The view have somethink like: <%= form_tag_with_upload_progress( {:action => ''create_gallery''}, { :name => ''new_gallery'', :begin =>
2006 Mar 07
1
Understanding ActionPack
So in order to user form_tag_with_upload_progress, it appears that I need stuff that''s in the following: actionpack/lib/action_view/helpers/upload_progress_helper.rb Do I have to do something specific to get access to this stuff or is it included automagically? Thanks, Wes Gamble -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m trying to display user input that will sometimes have code references in it. This strips out all tags. I would like for the tags to be displayed but not read as html. Thanks in advance! <%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %> charlie bowman recentrambles.com -- Posted via
2007 Mar 31
1
Setting a call to be recorded before Xfer?
I need to allow the company operator to decide whether to record a call. (Car dealership that needs to coach salespeople). They don't want to record every sales call, just for the purposes of coaching certain employees on an ad hoc basis. The situation is: a. Call comes in on PSTN PRI b. Call is routed to operator in dialplan c. Operator ascertains that its a sales call for a salesman in
2006 Jun 16
2
Javascript error?
Hi, I''m trying to get this progress bar plugin working, but I''m having some trouble. I''m running Apache 2.0.52 with mod_fcgid on Mac OS X. Everything seems to be working fine, but the progress bar simply doesn''t work. In my log I get: Multipart upload with progress (id: 1, size: 176731770) Finished processing multipart upload in 18.96244s but no requests in
2006 May 28
9
Railsmanual.org
Did anyone else catch the redesign? I don''t know who''s responsible, but it''s lookin better! Good job... -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/f9f92618/attachment.html
2006 Mar 06
20
How painful is the 1.0 -> 1.1 upgrade going to be?
Does anyone have a sense for how painful the 1.0 -> 1.1 upgrade is going to be for existing apps? I''m finishing up my first real RoR application with Rails 1.0. I can live with it staying at that level, but I really want to use the has_many :through attribute to clean up some of my code. I''m not particularly interested in edge Rails, mainly because the documentation for