search for: photo_control

Displaying 6 results from an estimated 6 matches for "photo_control".

2005 Sep 18
1
Timeout::Error (execution expired)
...:66:in `request'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:142:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:350:in `sizes'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:317:in `source'' /app/controllers/photo_controller.rb:62:in `update_from_flickr'' /app/controllers/photo_controller.rb:44:in `each'' /app/controllers/photo_controller.rb:44:in `update_from_flickr'' /app/controllers/photo_controller.rb:35:in `each'' /app/controllers/photo_controller.rb:35:in `update...
2006 Feb 23
7
How to set a relationship with a value from a selection list
...ection list that''s populated with all the available albums. <%= select("post", "album_id", Album.find_all.collect {|a| [a.name, a.id]}, {:include_blank => true}) %> This work in so much as I can see the albums being listed in the selection list. Then in my photo_controller I''m trying to set the relationship when the photo is saved in a method called ''create'' def create @photo = Photo.new(params[:photo]) @photo_file = PhotoFile.new(params[:photo_file]) @photo.photo_file = @photo_file @photo.album = @post.album_id @photo.blog_u...
2008 Mar 06
3
cache_sweeper
Hi, Why is cache_sweeper not a documented method? I was pretty sure it used to be, but I could be wrong. I can''t seem to find any information on it anymore in the online docs. As a side note, looking at the code for cache_sweeper it appears to only work with the :only option, not :except (ignores it)... what''s the reason for this? Thanks, Andrew
2013 Jun 28
1
[HELP PLEASE!] attachment_fu and aws-s3
...r: AWS::S3::PermanentRedirect in PhotoController#create The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. Rails.root: /home/patrick/my_project Application Trace | Framework Trace | Full Trace app/controllers/photo_controller.rb:12:in `create'' Can anyone help me with? Thanks! Patrick -- 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 unsubscribe from this group and stop receiving emails from it...
2006 Mar 20
11
has_many brings back ''uninitialized constant''
...file: class Photo_comment < ActiveRecord::Base belongs_to :Photo end >From here I''ll admit I''m a little lost as to how to procede. Right now I''m just wanting to view the comments (i''ll worry about adding comments next... but one step at a time). In my photo_controller.rb file I get the desired photo like this: @photos = Photo.get_photo(params[:photo]) On the view side for this, I have this line to display the photo: <img src="/photos/<%= @photos.the_order %>.jpg" /> To get the comments, I''ve been trying to do something like th...
2005 Aug 08
68
Pluralized Controller Names?
If I do: script/generate controller Photo I get a controller named photo_controller. OTOH, if I do: script/generate scaffold Photo I get a controller named photos_controller. (Note that the controller name is pluralized). I realize that I''m specifying the controller name explicitly in the first case, but it seems odd to me that the scaffold command generate...