On Thursday, January 21, 2016 at 11:16:40 PM UTC-5, fugee ohu wrote:
>
> This form raises undefined method `pictures_path' for 
> #<#<Class:0xaea3ad0>:0xbb9cb4c>
>
> <%= form_for(@picture, :html => { :multipart => true }) do |f| %>
>
>   <p>
>     <%= f.file_field :image %>
>   </p>
>
>   <p><%= f.submit %></p>
>
> <% end %>
>
>
>
And how does the file actually get uploaded? I have to add code to my 
controller to upload the file? If yes, what do i need the uploader for? 

-- 
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, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/79928906-e5f0-4d6c-97e1-60f519197252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to