How do i get the values for imageable_id and imageable_type inserted into a 
new picture object? i can put imageable_type as a hidden field, but 
imageable_id i don't know

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 %>
>
>
>

-- 
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/920d481a-fc83-443f-afb6-99e20e1863ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to