search for: get_photo

Displaying 3 results from an estimated 3 matches for "get_photo".

Did you mean: get_photos
2006 Jul 21
1
What''s wrong with this code?
I''m trying to interface with the flickr API to pull my photos into my site. I don''t want to use the "flickr.rb" gem, I''d like to do it the other way so I can learn (plus I had trouble loading the gem on my server). Anyway, here''s what I have: #Application.rb controller def get_response(path, http) request = Net::HTTP::Get.new(path)
2010 Apr 05
5
paperclip question
...ate the thumb images and big images from actual uploaded images. There are many images already uploaded by the users. Now I want to create small images from the original uploaded image. For the newly uploaded images its working fine but how can I do the same for already uploaded image?? if photo.get_photo(:small).nil? end what the code I can write inside or any other way I can do the same?? Thanks, Ramu. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF...
2006 Mar 20
11
has_many brings back ''uninitialized constant''
...t;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 this: <% for a_comment in @photos.photo_comment %> <p><%=...