hanklords/flickraw — Issue #36: Hi~ I have upload image problem
Author: alChaCC
Created: 2011-11-01 03:16:56+00:00
State: open

hello hanklords~

Thanks for your flickr lib ,
When I use upload method , I have a problem as below

ArgumentError (wrong number of arguments (1 for 0)):
app/controllers/news_controller.rb:72:in `upload_photo'

This is my upload.html.haml
= form_tag ({:action => :upload_photo},:multipart => true )do
= hidden_field_tag :token, @upload_info[:token]
= label_tag "Upload Photo"
= file_field_tag :photo
= submit_tag "Upload Photo"

And My controller is
def upload_photo
FlickRaw.api_key=FlickrawConfig.key
FlickRaw.shared_secret=FlickrawConfig.shared_secret
flickr.upload_photo params[:photo] ,:title => "Title", :description => "This is the description"

Sorry to bother you ,
If it is possible , maybe a easy demo will help novice like me ~ thanks

like youtube_it :
Example Rails 3 App
You can get an example how you can use youtube_it with Rails 3 here: github.com/chebyte/youtube_it_rails_app_example