similar to: How to handle nested and not nested resource in an action's controller?

Displaying 20 results from an estimated 3000 matches similar to: "How to handle nested and not nested resource in an action's controller?"

2009 Nov 12
3
Got NoMethodError on Model's find method.
Hi All, I don''t know how this could happen. I got NoMethodError on running a simple Model''s find method. At first i have the same error for running find_all_by_country method where country is one of the model''s attributes. So, running a find method also doesn''t help. I have no problem running the methods on rails console. What should i check? Has anyone had a
2008 Jun 07
5
Can create record but can not update it => has_many through
Hi All, I have a problem using has_many through association. I can create a product without problem, but when i edit it, i got this NoMethodError: undefined method `reciters='' for #<Product:0xb71a77e8> Did i miss something to code? I provided the codes below. Please help Thanks, Dida product_controller.rb ====================== def create @product =
2008 Aug 26
1
upload_column NoMethodError
Hi all, I''m using uploadcolumn plugin for file uploading. Followed the README file. Put "upload_column :src_file" in my model file as instructed, and i got this NoMethodError for the upload_column. This is the full trace: /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in `method_missing'' app/models/speech.rb:2
2006 Apr 24
1
Upload Progress Bar not showing
Hi. I''m setting up an upload form for internal users of a Rails site, and I''m trying to use the Upload Progress Bar plugin from http://sean.treadway.info/demo/upload/. I followed the directions as set out in the Rails Wiki (http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar). Basically the problem is no progress bar or any upload information shows up. In WEBrick, I
2002 Mar 14
1
restart term in wine
Hi all,... what 'restart' term in wine? Since i've installed apps that need to reboot the windows. Thanks, Adinda Praditya
2010 Apr 24
2
problem using attachment_fu with S3
Hi, My S3 bucket is located in the US I have attachment_fu working when using file system storage I have sw-swf upload plugin working with my S3 account but I can not get attachment_fu to work with S3 storage. the error I get is : AWS::S3::RequestTimeout in Upload filesController#create Your socket connection to the server was not read from or written to within the timeout period. Idle
2010 Oct 25
0
Rails 3 -NoMethodError (undefined method `original_filename
Hello! I''m using Rails 3, Uploadify, to send images to S3. Right now all the images being uploaded to S3 have the MIME: application/octet-stream I''d like to fix that but I''m getting the following error: NoMethodError (undefined method `original_filename'' for #<ActiveSupport::HashWithIndifferentAccess:0x107c81998>): app/models/photo.rb:29:in
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my mistakes, this time I''m trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_controller.rb:28:in `new''
2006 Jul 06
0
big size file uploading problem w/IE
Hi, I''m now trying to develop application for big files exchanges by Webserver and Browser with rails. There is a browser dependent file uploading problem with Rails. Uploading file is issued from .rhtml like this. <%= form_tag({:action => "upload_file"}, {:multipart => "true"}) %> With IE ( 6.02900 ) a 5 meg file was sent but slowly and it took more
2008 Mar 17
1
Intel SATA controller (cmiiw) not recognized by Centos 5.1 installation?
Hi, there, I tried to install Centos 5.1 on a Dell Inspiron 530 box I just bought, but failed due to invalid drive. The installation did not recognize either the DVD nor the hard disk. Joseph from the community said it is likely that Centos can't recognize the controller -- Intel SATA controller (cmiiw). Did anyone solve this problem before? How did you do it? Here's the related
2008 Dec 08
1
How to upload file by ajax
Hey'' How to upload file with ajax in ROR? My code not working :( View file : <% form_remote_tag(:url => { :controller => ''Upload'', :action => ''uploadFile''}, :update => "result", :position => :bottom :html => {:multipart => true} ) do %> <p><label
2006 Jun 01
3
Image corrupted on upload
Hi, I''m using the below method to copy/upload a file. The outcome is an image with the proper dimensions but looks garbled and pixelated. I''m baffled as to what''s going on. What''s even weirder is this same function with the same image works for my colleague. He is using OS/10 and I am using Windows Media Center. Any ideas? # # destination is the
2005 Jun 16
4
sample, windows & vbr
Hi, I'm a newbie to audio compression. And I have several question about ogg. 1. How many bits a vorbis sample take ? does the sample size 16 bits ? like the mp3 ? CMIIW 2. How do a decoder recognize how many sample it takes in a second ? does it related with the code books ? 4. Does vorbis use VBR ? 3. What is function of the Windows ? and what is the output of the windows ? Thanks
2010 Oct 20
2
How do i use button_to_function
Hii all , I am trying to create a button that, when clicked on, calls a method in a controller . I am thinking that button_to_function is good to use for that i made htnl viwe like <h1>File Upload</h1> <p><label for="upload_file">Select File</label> : <%= file_field ''upload'', ''datafile'' %></p>
2009 Oct 12
0
Flash / Flex on Rails (Ruby AMF)
Hi All, I repost my message on RubyAMF group to you all because the group seems dead and i can''t get help. I hope anyone here has done Flash - Rails development can answer my question. I''m creating a Flash - Rails application. From what i know Super Simple Remote (AS3 classes) has been migrated to Guttershark since early 2008 and i have tried some tutorials even the one in
2008 May 15
3
Tape operation
Hi all, My only encounter with tape-backup was with Windows 2000. With it, when we backup things using windows' backup tool, it will create a 'catalog', then the catalog contains all the backup operations we do based on date. So, with this we can "append" many backups into one tape. Next time we want to restore a backup, we can choose what date available in that
2007 Jul 06
2
Issue using zaptel's dynamic spans.
Hi, Is there any mailing list specifically for zaptel-users ? If yes, then, sorry to bother you people, i could not locate it. Can anybody post a link to it ? If not, then i hope, this is the right place to ask zaptel related questions. I'm using vanilla zaptel 1.4.3 on custom Linux 2.6.15.1. I've have a Redfone FoneBridge2 (TDMoE) gateway which i want to use with the zap drivers. It
2007 Jan 18
5
Session IDs and SWFUpload
Hi I''m using SWFUpload in one of my applications, but it has one big shortcoming: it doesn''t maintain the session. Let me explain: The user has to login to the application, thus creating an authenticated session (cookie _session_id client side and the sessions table server side). However, when you use SWFUpload, the upload script is called with a new session
2017 Oct 24
1
[RFC] virtio-iommu version 0.5
Hi Jean, On Mon Oct 23, 2017 at 10:32:41AM +0100, Jean-Philippe Brucker wrote: > This is version 0.5 of the virtio-iommu specification, the paravirtualized > IOMMU. This version addresses feedback from v0.4 and adds an event virtqueue. > Please find the specification, LaTeX sources and pdf, at: > git://linux-arm.org/virtio-iommu.git viommu/v0.5 >
2016 Sep 16
2
SCEV cannot compute the trip count of Simple loop
> On Sep 16, 2016, at 1:56 PM, Kevin Choi via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > int mat[9][9][9]; > > for (p = (x+1) ; p < (x+3) ;p++) > > mat[x][p-1][i] = mat[x][p-1][i] + 5; > > } > The trip count of 2 should be valid for x in [0,6]. It is not clear to me why the trip count of 2 isn’t *always* valid. > If SCEV doesn't catch