Ruby on Rails Thursday, August 22, 2013

Hello Tamouse,

Thank you so much for your reply,

Where trying $('#pic').attr('src', "<%= asset_path(wine.picture)%>");, I get the following error:

undefined local variable or method `wine' for #<#<Class:0x4231bdb0>:0x4311bb04>

I hope I did not forget to mention that. wine.picture is a dynamic variable.

Thanks in Advance,

Nick.

--
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+unsubscribe@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/54568202-f908-4a36-80fa-9df16f42231b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment