I have successfully installed the paperclip and immecake on my system, and the files are being uploaded correctly, their The size is being changed and it is being saved to the correct folders.
I try to display those views in my thoughts:
Customer llog.url (: medium)%> <% = image_tag @
No images have been displayed. When I go straight to the URL of the image, I get:
Routing error is not matching the route "/images/assets/logos/1/medium/corplogo.jpg" {: method = & Gt; With: Get}
This is a local server still running on development and windows. My forms are multiple:
& lt;% form_for @customer ,: url = & gt; {: Action = & gt; "Update" ,: id = & gt; @ Client} ,: html = & gt; {: Multipurpose = & gt; True,: ID = & gt; "Myform"}. F | & Gt%;
------ Dev Server ------
Processing Application Controller # Index (127.0.0.1 for 2010-09-27 04:38 : 33) [GET] parameter: {"1285570273" => zero}
Action Controller :: routing error (no path matching "/images/assets/logos/1/medium/corplogo.jpg "{: Method =>: get}}: haml (3.0.15) rail / / Lib / sass / plugin / rack.rb: 41: `In call '
saves rendering / layout (not_found)
------ model ---- -
is_tatched_file: logo ,: url = & gt; "Property / logo /: id /: style /: bassname extension:",: path = & gt; ": Rails_root / public / property / logo /: id /: style /: bassname .: extension" ,: styles = & gt; {: Medium = & gt; "300x300";,: thumb = & gt; "100x100 & gt;" }
I got an answer to the problem, and this URL is in the announcement model. Instead of
:
: url = & gt; "Property / logo /: id /: style /: base name extension should be
:
: url = & gt; "/assets/logos/:id/:style/:basename.ua.extension"
Comments
Post a Comment